Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: pkg/analyzer_experimental/test/generated/ast_test.dart

Issue 17932005: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Disable resolver tests Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_experimental/test/generated/ast_test.dart
diff --git a/pkg/analyzer_experimental/test/generated/ast_test.dart b/pkg/analyzer_experimental/test/generated/ast_test.dart
index bd06fba69e5360b619c1ad499a3069f3f904a7cc..d05096e93475c4e37587e567228c0c3d2224eccc 100644
--- a/pkg/analyzer_experimental/test/generated/ast_test.dart
+++ b/pkg/analyzer_experimental/test/generated/ast_test.dart
@@ -404,6 +404,7 @@ class ASTFactory {
* resolved to the type of the given element.
*
* <b>Note:</b> This method does not correctly handle class elements that have type parameters.
+ *
* @param element the element defining the type represented by the type name
* @return the type name that was created
*/
@@ -594,6 +595,7 @@ class SimpleIdentifierTest extends ParserTestCase {
/**
* Return the top-most node in the AST structure containing the given identifier.
+ *
* @param identifier the identifier in the AST structure being traversed
* @return the root of the AST structure containing the identifier
*/
@@ -735,7 +737,7 @@ class BreadthFirstVisitorTest extends ParserTestCase {
String source = EngineTestCase.createSource(["class A {", " bool get g => true;", "}", "class B {", " int f() {", " num q() {", " return 3;", " }", " return q() + 4;", " }", "}", "A f(var p) {", " if ((p as A).g) {", " return p;", " } else {", " return null;", " }", "}"]);
CompilationUnit unit = ParserTestCase.parseCompilationUnit(source, []);
List<ASTNode> nodes = new List<ASTNode>();
- BreadthFirstVisitor<Object> visitor = new BreadthFirstVisitor_14(nodes);
+ BreadthFirstVisitor<Object> visitor = new BreadthFirstVisitor_15(nodes);
visitor.visitAllNodes(unit);
EngineTestCase.assertSize(59, nodes);
EngineTestCase.assertInstanceOf(CompilationUnit, nodes[0]);
@@ -753,9 +755,9 @@ class BreadthFirstVisitorTest extends ParserTestCase {
});
}
}
-class BreadthFirstVisitor_14 extends BreadthFirstVisitor<Object> {
+class BreadthFirstVisitor_15 extends BreadthFirstVisitor<Object> {
List<ASTNode> nodes;
- BreadthFirstVisitor_14(this.nodes) : super();
+ BreadthFirstVisitor_15(this.nodes) : super();
Object visitNode(ASTNode node) {
nodes.add(node);
return super.visitNode(node);
@@ -1952,6 +1954,7 @@ class ToSourceVisitorTest extends EngineTestCase {
/**
* Assert that a `ToSourceVisitor` will produce the expected source when visiting the given
* node.
+ *
* @param expectedSource the source string that the visitor is expected to produce
* @param node the AST node being visited to produce the actual source
* @throws AFE if the visitor does not produce the expected source for the given node

Powered by Google App Engine
This is Rietveld 408576698