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

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

Issue 1131423002: Clean up many generated constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comment change Created 5 years, 7 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
« no previous file with comments | « pkg/analyzer/test/generated/all_the_rest_test.dart ('k') | pkg/analyzer/test/generated/element_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/ast_test.dart
diff --git a/pkg/analyzer/test/generated/ast_test.dart b/pkg/analyzer/test/generated/ast_test.dart
index 64ead75b326578056b1429ebf9e0abb5b70043fa..e28505842f7761ba42e9b246b02a5b8975d75dc0 100644
--- a/pkg/analyzer/test/generated/ast_test.dart
+++ b/pkg/analyzer/test/generated/ast_test.dart
@@ -922,7 +922,7 @@ class NodeLocatorTest extends ParserTestCase {
}
void test_searchWithin_null() {
- NodeLocator locator = new NodeLocator.con2(0, 0);
+ NodeLocator locator = new NodeLocator(0, 0);
expect(locator.searchWithin(null), isNull);
}
@@ -937,7 +937,7 @@ class NodeLocatorTest extends ParserTestCase {
CompilationUnit unit = ParserTestCase.parseCompilationUnit(r'''
class A {}
class B {}''');
- NodeLocator locator = new NodeLocator.con2(1024, 1024);
+ NodeLocator locator = new NodeLocator(1024, 1024);
AstNode node = locator.searchWithin(unit.declarations[0]);
expect(node, isNull);
}
@@ -946,14 +946,14 @@ class B {}''');
CompilationUnit unit = ParserTestCase.parseCompilationUnit(r'''
class A {}
class B {}''');
- NodeLocator locator = new NodeLocator.con2(0, 0);
+ NodeLocator locator = new NodeLocator(0, 0);
AstNode node = locator.searchWithin(unit.declarations[1]);
expect(node, isNull);
}
void _assertLocate(CompilationUnit unit, int start, int end,
Predicate<AstNode> predicate, Type expectedClass) {
- NodeLocator locator = new NodeLocator.con2(start, end);
+ NodeLocator locator = new NodeLocator(start, end);
AstNode node = locator.searchWithin(unit);
expect(node, isNotNull);
expect(locator.foundNode, same(node));
@@ -2154,7 +2154,7 @@ class ToSourceVisitorTest extends EngineTestCase {
}
void test_visitForEachStatement_variable() {
- _assertSource("for (a in b) {}", new ForEachStatement.con2(null,
+ _assertSource("for (a in b) {}", new ForEachStatement.withReference(null,
TokenFactory.tokenFromKeyword(Keyword.FOR),
TokenFactory.tokenFromType(TokenType.OPEN_PAREN),
AstFactory.identifier3("a"), TokenFactory.tokenFromKeyword(Keyword.IN),
@@ -2163,7 +2163,7 @@ class ToSourceVisitorTest extends EngineTestCase {
}
void test_visitForEachStatement_variable_await() {
- _assertSource("await for (a in b) {}", new ForEachStatement.con2(
+ _assertSource("await for (a in b) {}", new ForEachStatement.withReference(
TokenFactory.tokenFromString("await"),
TokenFactory.tokenFromKeyword(Keyword.FOR),
TokenFactory.tokenFromType(TokenType.OPEN_PAREN),
« no previous file with comments | « pkg/analyzer/test/generated/all_the_rest_test.dart ('k') | pkg/analyzer/test/generated/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698