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

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: TODO added 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..993c3c7f9e1ae2e9339bdbef52982af4b95ab59c 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,9 +1164,9 @@ class NodeListener extends ElementListener {
null, ',');
NodeList typeParameters = popNode();
Identifier name = popNode();
- pushNode(new ClassNode(name, typeParameters, null, supertypes,
- defaultClause, interfaceKeyword, null, body,
- endToken));
+ pushNode(new ClassNode(Modifiers.EMPTY, name, typeParameters, null,
+ supertypes, defaultClause, interfaceKeyword, null,
+ body, endToken));
}
void endClassBody(int memberCount, Token beginToken, Token endToken) {
« no previous file with comments | « lib/compiler/implementation/scanner/class_element_parser.dart ('k') | lib/compiler/implementation/scanner/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698