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

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

Issue 2935993002: Implement metadata on methods and fields. (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
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 42c8f456f4cbb2b5f8d090e106360e994ac9c1cf..489ecd44e5a6055ba63885207cf394157d1977f0 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -44,6 +44,7 @@ import '../fasta_codes.dart'
codeInvalidInlineFunctionType,
codeInvalidSyncModifier,
codeInvalidVoid,
+ codeMetadataTypeArguments,
codeNoFormals,
codeNonAsciiIdentifier,
codeNonAsciiWhitespace,
@@ -590,6 +591,9 @@ class Parser {
token = parseIdentifier(token.next, IdentifierContext.metadataReference);
token =
parseQualifiedRestOpt(token, IdentifierContext.metadataContinuation);
+ if (optional("<", token)) {
+ reportRecoverableErrorCode(token, codeMetadataTypeArguments);
+ }
token = parseTypeArgumentsOpt(token);
Token period = null;
if (optional('.', token)) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/lib/src/fasta/source/diet_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698