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

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

Issue 2769113004: Setup type and modifiers of local variables on creation. (Closed)
Patch Set: Address review comments. 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
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 38b20a2bc6040b34748a555c040649c676a0fdc6..ac4ebe779b2e105eab366c51666eef8b35e587e2 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -3250,9 +3250,9 @@ class Parser {
Token parseVariablesDeclarationMaybeSemicolon(
Token token, bool endWithSemicolon) {
int count = 1;
- listener.beginVariablesDeclaration(token);
token = parseModifiers(token);
token = parseTypeOpt(token);
+ listener.beginVariablesDeclaration(token);
token = parseOptionallyInitializedIdentifier(token);
while (optional(',', token)) {
token = parseOptionallyInitializedIdentifier(token.next);
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_variable_builder.dart ('k') | tests/language/language_kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698