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

Unified Diff: pkg/compiler/lib/src/parser/member_listener.dart

Issue 2385643003: Fixes in dart2js parser to be able to parse files without the diet-parser (Closed)
Patch Set: Created 4 years, 3 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/compiler/lib/src/parser/member_listener.dart
diff --git a/pkg/compiler/lib/src/parser/member_listener.dart b/pkg/compiler/lib/src/parser/member_listener.dart
index c21f4931ae0c224d5aa418c8271b8307e02c92d2..17ecce0c26704e491632e89f52b8ddd2cf58bbb1 100644
--- a/pkg/compiler/lib/src/parser/member_listener.dart
+++ b/pkg/compiler/lib/src/parser/member_listener.dart
@@ -147,11 +147,7 @@ class MemberListener extends NodeListener {
}
void endMetadata(Token beginToken, Token periodBeforeName, Token endToken) {
- popNode(); // Discard arguments.
- if (periodBeforeName != null) {
- popNode(); // Discard name.
- }
- popNode(); // Discard node (Send or Identifier).
+ super.endMetadata(beginToken, periodBeforeName, endToken);
Siggi Cherem (dart-lang) 2016/09/30 22:28:07 note: this will keep the metadata node in the stac
pushMetadata(new PartialMetadataAnnotation(beginToken, endToken));
}
}

Powered by Google App Engine
This is Rietveld 408576698