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

Unified Diff: pkg/analyzer/lib/src/generated/testing/ast_factory.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
Index: pkg/analyzer/lib/src/generated/testing/ast_factory.dart
diff --git a/pkg/analyzer/lib/src/generated/testing/ast_factory.dart b/pkg/analyzer/lib/src/generated/testing/ast_factory.dart
index 00ee216400dca150f932b7df8266b495f25fe732..6125a9cbbe3cfbde68f0e4aaa335f8311ea657cf 100644
--- a/pkg/analyzer/lib/src/generated/testing/ast_factory.dart
+++ b/pkg/analyzer/lib/src/generated/testing/ast_factory.dart
@@ -368,15 +368,16 @@ class AstFactory {
fieldFormalParameter(null, null, identifier);
static ForEachStatement forEachStatement(DeclaredIdentifier loopVariable,
- Expression iterator, Statement body) => new ForEachStatement.con1(null,
- TokenFactory.tokenFromKeyword(Keyword.FOR),
- TokenFactory.tokenFromType(TokenType.OPEN_PAREN), loopVariable,
- TokenFactory.tokenFromKeyword(Keyword.IN), iterator,
- TokenFactory.tokenFromType(TokenType.CLOSE_PAREN), body);
+ Expression iterator, Statement body) =>
+ new ForEachStatement.withDeclaration(null,
+ TokenFactory.tokenFromKeyword(Keyword.FOR),
+ TokenFactory.tokenFromType(TokenType.OPEN_PAREN), loopVariable,
+ TokenFactory.tokenFromKeyword(Keyword.IN), iterator,
+ TokenFactory.tokenFromType(TokenType.CLOSE_PAREN), body);
static ForEachStatement forEachStatement2(
SimpleIdentifier identifier, Expression iterator, Statement body) =>
- new ForEachStatement.con2(null,
+ new ForEachStatement.withReference(null,
TokenFactory.tokenFromKeyword(Keyword.FOR),
TokenFactory.tokenFromType(TokenType.OPEN_PAREN), identifier,
TokenFactory.tokenFromKeyword(Keyword.IN), iterator,
« no previous file with comments | « pkg/analyzer/lib/src/generated/static_type_analyzer.dart ('k') | pkg/analyzer/lib/src/generated/testing/element_factory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698