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

Unified Diff: lib/compiler/implementation/scanner/parser.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
« no previous file with comments | « lib/compiler/implementation/scanner/listener.dart ('k') | lib/compiler/implementation/tree/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/scanner/parser.dart
diff --git a/lib/compiler/implementation/scanner/parser.dart b/lib/compiler/implementation/scanner/parser.dart
index 33fa404e16ba65fb54a7878e28f2fee21e3df6d6..05fe2cf63b9e3ad623fb91049200e9650f61b20d 100644
--- a/lib/compiler/implementation/scanner/parser.dart
+++ b/lib/compiler/implementation/scanner/parser.dart
@@ -429,10 +429,13 @@ class Parser {
Token parseClass(Token token) {
Token begin = token;
listener.beginClassDeclaration(token);
+ int modifierCount = 0;
if (optional('abstract', token)) {
- // TODO(ahe): Notify listener about abstract modifier.
+ listener.handleModifier(token);
+ modifierCount++;
token = token.next;
}
+ listener.handleModifiers(modifierCount);
token = parseIdentifier(token.next);
token = parseTypeVariablesOpt(token);
Token extendsKeyword;
« no previous file with comments | « lib/compiler/implementation/scanner/listener.dart ('k') | lib/compiler/implementation/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698