| Index: lib/compiler/implementation/tree/nodes.dart
|
| diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
|
| index 7bb165d10a1aae3893977d03c7cafd6da486b52e..f43005561fe3bb36c01ec209713dd00b4af0966c 100644
|
| --- a/lib/compiler/implementation/tree/nodes.dart
|
| +++ b/lib/compiler/implementation/tree/nodes.dart
|
| @@ -626,9 +626,9 @@ class LiteralInt extends Literal<int> {
|
|
|
| int get value() {
|
| try {
|
| - Token token = this.token;
|
| - if (token.kind === PLUS_TOKEN) token = token.next;
|
| - return Math.parseInt(token.value.slowToString());
|
| + Token valueToken = token;
|
| + if (valueToken.kind === PLUS_TOKEN) valueToken = valueToken.next;
|
| + return Math.parseInt(valueToken.value.slowToString());
|
| } catch (BadNumberFormatException ex) {
|
| (this.handler)(token, ex);
|
| }
|
| @@ -645,9 +645,9 @@ class LiteralDouble extends Literal<double> {
|
|
|
| double get value() {
|
| try {
|
| - Token token = this.token;
|
| - if (token.kind === PLUS_TOKEN) token = token.next;
|
| - return Math.parseDouble(token.value.slowToString());
|
| + Token valueToken = token;
|
| + if (valueToken.kind === PLUS_TOKEN) valueToken = valueToken.next;
|
| + return Math.parseDouble(valueToken.value.slowToString());
|
| } catch (BadNumberFormatException ex) {
|
| (this.handler)(token, ex);
|
| }
|
| @@ -1380,7 +1380,7 @@ class SwitchCase extends Node {
|
| }
|
| return const EmptyLink<Token>();
|
| }
|
| - return recursiveGetCases(token, expressions);
|
| + return recursiveGetCases(token, expressions.nodes);
|
| }
|
| }
|
|
|
|
|