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

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

Issue 10001008: Many type fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
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);
}
}

Powered by Google App Engine
This is Rietveld 408576698