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

Unified Diff: lib/compiler/implementation/scanner/class_element_parser.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/class_element_parser.dart
diff --git a/lib/compiler/implementation/scanner/class_element_parser.dart b/lib/compiler/implementation/scanner/class_element_parser.dart
index 70655d4a5a37f2d53e205ac4e40330d13e015bf2..3df84de91320ada46f0363b25f30d8f7800bfc49 100644
--- a/lib/compiler/implementation/scanner/class_element_parser.dart
+++ b/lib/compiler/implementation/scanner/class_element_parser.dart
@@ -11,7 +11,7 @@ class ClassElementParser extends PartialParser {
class PartialClassElement extends ClassElement {
final Token beginToken;
final Token endToken;
- Node cachedNode;
+ ClassNode cachedNode;
PartialClassElement(SourceString name,
Token this.beginToken,
@@ -56,6 +56,8 @@ class PartialClassElement extends ClassElement {
Token position() => beginToken;
+ Modifiers get modifiers => cachedNode.modifiers;
Johnni Winther 2012/10/10 10:30:36 This didn't work. Added a TODO instead.
+
bool isInterface() => beginToken.stringValue === "interface";
PartialClassElement cloneTo(Element enclosing, DiagnosticListener listener) {
« no previous file with comments | « lib/compiler/implementation/dart_backend/utils.dart ('k') | lib/compiler/implementation/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698