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

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: Address comments. 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
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | lib/compiler/implementation/tree/unparser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | lib/compiler/implementation/tree/unparser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698