Chromium Code Reviews| Index: lib/compiler/implementation/tree/nodes.dart |
| diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart |
| index d279076354351064a57fbd44e8030b453e374360..712ae7a9705f2eaddfc5fc1641acff0436b83516 100644 |
| --- a/lib/compiler/implementation/tree/nodes.dart |
| +++ b/lib/compiler/implementation/tree/nodes.dart |
| @@ -912,7 +912,7 @@ class Operator extends Identifier { |
| } |
| class Return extends Statement { |
| - final Expression expression; |
| + final Node expression; |
| final Token beginToken; |
| final Token endToken; |
| @@ -922,6 +922,8 @@ class Return extends Statement { |
| bool get hasExpression => expression !== null; |
| + String get firstTokenStringValue => beginToken.stringValue; |
|
ahe
2012/10/09 10:51:37
You don't need this, you should have an accessor t
Lasse Reichstein Nielsen
2012/10/09 11:51:26
Done.
|
| + |
| accept(Visitor visitor) => visitor.visitReturn(this); |
| visitChildren(Visitor visitor) { |