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

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

Issue 10990108: Handle modifiers (abstract) on class nodes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment Created 8 years, 2 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: lib/compiler/implementation/scanner/listener.dart
diff --git a/lib/compiler/implementation/scanner/listener.dart b/lib/compiler/implementation/scanner/listener.dart
index 2c74e0cf351a864d5fbd59150fd0dcb6f14e1499..b0b4857f961f4bbe2448a98ab778efc909e8981b 100644
--- a/lib/compiler/implementation/scanner/listener.dart
+++ b/lib/compiler/implementation/scanner/listener.dart
@@ -1137,8 +1137,10 @@ class NodeListener extends ElementListener {
TypeAnnotation supertype = popNode();
NodeList typeParameters = popNode();
Identifier name = popNode();
- pushNode(new ClassNode(name, typeParameters, supertype, interfaces, null,
- beginToken, extendsKeyword, body, endToken));
+ Modifiers modifiers = popNode();
+ pushNode(new ClassNode(modifiers, name, typeParameters, supertype,
+ interfaces, null, beginToken, extendsKeyword, body,
+ endToken));
}
void endCompilationUnit(int count, Token token) {
@@ -1162,7 +1164,7 @@ class NodeListener extends ElementListener {
null, ',');
NodeList typeParameters = popNode();
Identifier name = popNode();
- pushNode(new ClassNode(name, typeParameters, null, supertypes,
+ pushNode(new ClassNode(null, name, typeParameters, null, supertypes,
defaultClause, interfaceKeyword, null, body,
endToken));
}

Powered by Google App Engine
This is Rietveld 408576698