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

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

Issue 2936503002: Support metadata on local variables. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | tests/language/language_dart2js.status » ('j') | 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 5ac645576724d077fea9a372776fc326cb3c3042..42c8f456f4cbb2b5f8d090e106360e994ac9c1cf 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -2491,6 +2491,8 @@ class Parser {
return parseExpressionStatementOrConstDeclaration(token);
} else if (token.isIdentifier) {
return parseExpressionStatementOrDeclaration(token);
+ } else if (identical(value, '@')) {
+ return parseVariablesDeclaration(token);
} else {
return parseExpressionStatement(token);
}
« no previous file with comments | « no previous file | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698