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

Unified Diff: dart/lib/compiler/implementation/scanner/parser.dart

Issue 10869013: Reify partial metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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: dart/lib/compiler/implementation/scanner/parser.dart
diff --git a/dart/lib/compiler/implementation/scanner/parser.dart b/dart/lib/compiler/implementation/scanner/parser.dart
index 112ca051eb74299fe83552b52880cc27b8c183f6..521d45371c94711e3aa222cc310bd120e918c610 100644
--- a/dart/lib/compiler/implementation/scanner/parser.dart
+++ b/dart/lib/compiler/implementation/scanner/parser.dart
@@ -60,12 +60,17 @@ class Parser {
return token;
}
+ /**
+ * Parse
+ * [: ('@' qualified (‘.’ identifier)? (arguments)?)* :]
+ */
Johnni Winther 2012/08/22 13:25:20 The stated grammar describes a sequence of metadat
ahe 2012/08/22 13:36:47 See below.
Johnni Winther 2012/08/22 13:48:56 I think the comment describes parseMetadataStar wh
ahe 2012/08/22 13:53:10 Correct. Thank you, I couldn't see it.
ahe 2012/08/22 14:15:55 Done.
Token parseMetadata(Token token) {
listener.beginMetadata(token);
Token atToken = token;
assert(optional('@', token));
token = parseIdentifier(token.next);
token = parseQualifiedRestOpt(token);
+ token = parseQualifiedRestOpt(token);
Johnni Winther 2012/08/22 13:25:20 Why call this twice? It doesn't the stated grammar
ahe 2012/08/22 13:36:47 qualified is: identifier ('.' identifier)? So wh
Johnni Winther 2012/08/22 13:48:56 Ahhh!
token = parseArgumentsOpt(token);
listener.endMetadata(atToken, token);
return token;
« no previous file with comments | « dart/lib/compiler/implementation/scanner/listener.dart ('k') | dart/tests/compiler/dart2js/metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698