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

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

Issue 2721623002: Let parser handle factory modifiers. (Closed)
Patch Set: Handle factory modifiers correctly in dart2js. Created 3 years, 10 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/node_listener.dart
diff --git a/pkg/compiler/lib/src/parser/node_listener.dart b/pkg/compiler/lib/src/parser/node_listener.dart
index 55a698ea95396910272d399cb5068145434896b8..f427fd599bc87c66835cf9c414f9647d5008d0ef 100644
--- a/pkg/compiler/lib/src/parser/node_listener.dart
+++ b/pkg/compiler/lib/src/parser/node_listener.dart
@@ -864,6 +864,7 @@ class NodeListener extends ElementListener {
AsyncModifier asyncModifier = popNode();
NodeList formals = popNode();
Node name = popNode();
+ popNode(); // Discard modifiers. They're recomputed below.
// TODO(ahe): Move this parsing to the parser.
int modifierCount = 0;

Powered by Google App Engine
This is Rietveld 408576698