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

Unified Diff: frog/leg/compile_time_constants.dart

Issue 9360039: Create values for literal Strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add removed line again. Created 8 years, 10 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 | tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/compile_time_constants.dart
diff --git a/frog/leg/compile_time_constants.dart b/frog/leg/compile_time_constants.dart
index c4122e57b77447ec3bcd9c60ccf34abb5e6b9797..686a36a06c0f434098a1a9c19d3d0e0daf955641 100644
--- a/frog/leg/compile_time_constants.dart
+++ b/frog/leg/compile_time_constants.dart
@@ -96,6 +96,7 @@ class CompileTimeConstantHandler extends CompilerTask {
if (value is num) return "$value";
if (value === true) return "true";
if (value === false) return "false";
+ if (value is SourceString) return value.stringValue;
floitsch 2012/02/14 10:40:57 The string must be escaped. Please also add a smal
// TODO(floitsch): support more values.
compiler.unimplemented("CompileTimeConstantHandler.getJsCodeForVariable",
« no previous file with comments | « no previous file | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698