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

Unified Diff: pkg/analyzer/lib/src/generated/parser.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/parser.dart
diff --git a/pkg/analyzer/lib/src/generated/parser.dart b/pkg/analyzer/lib/src/generated/parser.dart
index e040afdd0ec0be797d96f04c3ec117a14ef59dc5..2e5bca214d79e8ecb542d8ad8eb44e24ea7f385f 100644
--- a/pkg/analyzer/lib/src/generated/parser.dart
+++ b/pkg/analyzer/lib/src/generated/parser.dart
@@ -1681,10 +1681,9 @@ class IncrementalParser {
// tokens.
//
if (originalEnd < originalStart) {
- oldNode =
- new NodeLocator.con1(originalStart).searchWithin(originalStructure);
+ oldNode = new NodeLocator(originalStart).searchWithin(originalStructure);
} else {
- oldNode = new NodeLocator.con2(originalStart, originalEnd)
+ oldNode = new NodeLocator(originalStart, originalEnd)
.searchWithin(originalStructure);
}
//
@@ -5580,11 +5579,11 @@ class Parser {
Token rightParenthesis = _expect(TokenType.CLOSE_PAREN);
Statement body = parseStatement2();
if (loopVariable == null) {
- return new ForEachStatement.con2(awaitKeyword, forKeyword,
+ return new ForEachStatement.withReference(awaitKeyword, forKeyword,
leftParenthesis, identifier, inKeyword, iterator,
rightParenthesis, body);
}
- return new ForEachStatement.con1(awaitKeyword, forKeyword,
+ return new ForEachStatement.withDeclaration(awaitKeyword, forKeyword,
leftParenthesis, loopVariable, inKeyword, iterator,
rightParenthesis, body);
}
@@ -7663,7 +7662,7 @@ class Parser {
*/
void _reportErrorForNode(ParserErrorCode errorCode, AstNode node,
[List<Object> arguments]) {
- _reportError(new AnalysisError.con2(
+ _reportError(new AnalysisError(
_source, node.offset, node.length, errorCode, arguments));
}
@@ -7676,7 +7675,7 @@ class Parser {
if (token.type == TokenType.EOF) {
token = token.previous;
}
- _reportError(new AnalysisError.con2(_source, token.offset,
+ _reportError(new AnalysisError(_source, token.offset,
math.max(token.length, 1), errorCode, arguments));
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698