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

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

Issue 2798603003: Implement parsing of metadata on local variables. (Closed)
Patch Set: Created 3 years, 8 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 ecf6fc15339d4f334ec5a4e9a6b0bb794b508bf3..dcbca9c5aaeac562b581544de8609be04650f0d6 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -3309,6 +3309,7 @@ class Parser {
Token parseVariablesDeclarationMaybeSemicolon(
Token token, bool endWithSemicolon) {
int count = 1;
+ token = parseMetadataStar(token);
token = parseModifiers(token);
token = parseTypeOpt(token);
listener.beginVariablesDeclaration(token);

Powered by Google App Engine
This is Rietveld 408576698