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

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

Issue 10836351: Parse metadata, but ignore it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments 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/listener.dart
diff --git a/dart/lib/compiler/implementation/scanner/listener.dart b/dart/lib/compiler/implementation/scanner/listener.dart
index ad888baf8ea3c02db4b460170cb371c143059fc0..fb2e87c22cd3087a24896ce7cba5dd7e5571f08c 100644
--- a/dart/lib/compiler/implementation/scanner/listener.dart
+++ b/dart/lib/compiler/implementation/scanner/listener.dart
@@ -195,6 +195,12 @@ class Listener {
void endMethod(Token getOrSet, Token beginToken, Token endToken) {
}
+ void beginMetadata(Token token) {
+ }
+
+ void endMetadata(Token beginToken, Token endToken) {
+ }
+
void beginOptionalFormalParameters(Token token) {
}
@@ -575,6 +581,11 @@ class ElementListener extends Listener {
addScriptTag(scriptTag);
}
+ void endMetadata(Token beginToken, Token endToken) {
+ var send = popNode(); // Qualified (Send or Identifier).
+ // TODO(ahe): Don't discard metadata.
+ }
+
void endClassDeclaration(int interfacesCount, Token beginToken,
Token extendsKeyword, Token implementsKeyword,
Token endToken) {

Powered by Google App Engine
This is Rietveld 408576698