Chromium Code Reviews| Index: lib/compiler/implementation/tree/nodes.dart |
| =================================================================== |
| --- lib/compiler/implementation/tree/nodes.dart (revision 10864) |
| +++ 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; |
| @@ -206,6 +207,7 @@ |
| if (name !== null) name.accept(visitor); |
| if (superclass !== null) superclass.accept(visitor); |
| if (interfaces !== null) interfaces.accept(visitor); |
| + if (body !== null) body.accept(visitor); // what about typeParameters? |
|
ahe
2012/08/17 06:43:37
Please visit them :-)
If you'd rather not, please
messick
2012/08/17 17:16:40
Visiting
|
| } |
| bool get isInterface() => beginToken.stringValue === 'interface'; |
| @@ -1678,7 +1680,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; |