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

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: Created 8 years, 3 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 545688c29179752ebfd51910d1736b4624e3fba8..2b11807c00d22a89185d6e18208cbb43c628b588 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,
@@ -58,6 +58,8 @@ class PartialClassElement extends ClassElement {
Token position() => beginToken;
+ Modifiers get modifiers() => cachedNode != null ? cachedNode.modifiers : null;
ahe 2012/10/09 12:47:35 It should be an error to call this method without
Johnni Winther 2012/10/09 14:04:57 Done.
+
bool isInterface() => beginToken.stringValue === "interface";
PartialClassElement cloneTo(Element enclosing, DiagnosticListener listener) {
ahe 2012/10/09 12:47:35 What?
Johnni Winther 2012/10/09 14:04:57 Removed.
« 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