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

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

Issue 10917170: Improve handling of built-in identifiers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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: dart/lib/compiler/implementation/tree/nodes.dart
diff --git a/dart/lib/compiler/implementation/tree/nodes.dart b/dart/lib/compiler/implementation/tree/nodes.dart
index 35c5ca4370e8305d479f02e526358142c4bf926e..9cc59532946740808c755eac82d62c4c52e2969c 100644
--- a/dart/lib/compiler/implementation/tree/nodes.dart
+++ b/dart/lib/compiler/implementation/tree/nodes.dart
@@ -706,8 +706,8 @@ class LiteralBool extends Literal<bool> {
LiteralBool asLiteralBool() => this;
bool get value {
- if (token.value == Keyword.TRUE) return true;
- if (token.value == Keyword.FALSE) return false;
+ if (token.stringValue === 'true') return true;
+ if (token.stringValue === 'false') return false;
(this.handler)(token, "not a bool ${token.value}");
}

Powered by Google App Engine
This is Rietveld 408576698