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

Unified Diff: lib/compiler/implementation/compile_time_constants.dart

Issue 9976004: Allow all different string-literals in map literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add description. 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 | « no previous file | lib/compiler/implementation/scanner/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/compile_time_constants.dart
diff --git a/lib/compiler/implementation/compile_time_constants.dart b/lib/compiler/implementation/compile_time_constants.dart
index 4d47b96d62fb344250774770fae086da3d5475c0..d660d9e1694c2c339138bdead8ae01a1561743a9 100644
--- a/lib/compiler/implementation/compile_time_constants.dart
+++ b/lib/compiler/implementation/compile_time_constants.dart
@@ -739,7 +739,7 @@ class CompileTimeConstantEvaluator extends AbstractVisitor {
link = link.tail) {
LiteralMapEntry entry = link.head;
Constant key = evaluate(entry.key);
- if (!key.isString() || entry.key.asLiteralString() === null) {
+ if (!key.isString() || entry.key.asStringNode() === null) {
MessageKind kind = MessageKind.KEY_NOT_A_STRING_LITERAL;
compiler.reportError(entry.key, new ResolutionError(kind, const []));
}
« no previous file with comments | « no previous file | lib/compiler/implementation/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698