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

Unified Diff: lib/compiler/implementation/tree/nodes.dart

Issue 10834374: Add a field to ClassNode that holds a NodeList of its members. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/unparser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/tree/nodes.dart
===================================================================
--- lib/compiler/implementation/tree/nodes.dart (revision 11072)
+++ lib/compiler/implementation/tree/nodes.dart (working copy)
@@ -186,6 +186,7 @@
final TypeAnnotation superclass;
final NodeList interfaces;
final NodeList typeParameters;
+ final NodeList body;
// TODO(ahe, karlklose): the default keyword is not recorded.
final TypeAnnotation defaultClause;
@@ -196,7 +197,7 @@
ClassNode(this.name, this.typeParameters, this.superclass, this.interfaces,
this.defaultClause, this.beginToken, this.extendsKeyword,
- this.endToken);
+ this.body, this.endToken);
ClassNode asClassNode() => this;
@@ -207,6 +208,7 @@
if (typeParameters !== null) typeParameters.accept(visitor);
if (superclass !== null) superclass.accept(visitor);
if (interfaces !== null) interfaces.accept(visitor);
+ if (body !== null) body.accept(visitor);
}
bool get isInterface() => beginToken.stringValue === 'interface';
@@ -1679,7 +1681,7 @@
final Token onKeyword;
final Token catchKeyword;
- CatchBlock(this.type, this.formals, this.block,
+ CatchBlock(this.type, this.formals, this.block,
this.onKeyword, this.catchKeyword);
CatchBlock asCatchBlock() => this;
« no previous file with comments | « lib/compiler/implementation/scanner/listener.dart ('k') | lib/compiler/implementation/tree/unparser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698