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

Unified Diff: pkg/front_end/lib/src/fasta/parser/parser.dart

Issue 2767543003: Add begin events for const and new expressions. (Closed)
Patch Set: Created 3 years, 9 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/front_end/lib/src/fasta/parser/listener.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/parser/parser.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart
index 516ad61e9024d34db655c7895af28e80a9be0489..e0940c89a4dd6a5f8ebfa8ff504ebcc17e307a9e 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -3015,9 +3015,10 @@ class Parser {
Token parseNewExpression(Token token) {
Token newKeyword = token;
token = expect('new', token);
+ listener.beginNewExpression(newKeyword);
token = parseConstructorReference(token);
token = parseRequiredArguments(token);
- listener.handleNewExpression(newKeyword);
+ listener.endNewExpression(newKeyword);
return token;
}
@@ -3036,9 +3037,10 @@ class Parser {
if (identical(value, '<')) {
return parseLiteralListOrMapOrFunction(token, constKeyword);
}
+ listener.beginConstExpression(constKeyword);
token = parseConstructorReference(token);
token = parseRequiredArguments(token);
- listener.handleConstExpression(constKeyword);
+ listener.endConstExpression(constKeyword);
return token;
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/listener.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698