| Index: lib/compiler/implementation/tree/nodes.dart
|
| diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
|
| index 2074ddc0bdcb282fa71d4dd06298783fd695ea64..22216db12817c2036a8f47c1ce3993237dc4b9a1 100644
|
| --- a/lib/compiler/implementation/tree/nodes.dart
|
| +++ b/lib/compiler/implementation/tree/nodes.dart
|
| @@ -622,9 +622,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);
|
| }
|
| @@ -641,9 +641,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);
|
| }
|
| @@ -1376,7 +1376,7 @@ class SwitchCase extends Node {
|
| }
|
| return const EmptyLink<Token>();
|
| }
|
| - return recursiveGetCases(token, expressions);
|
| + return recursiveGetCases(token, expressions.nodes);
|
| }
|
| }
|
|
|
|
|