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

Unified Diff: lib/compiler/implementation/tree/nodes.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 | « lib/compiler/implementation/scanner/listener.dart ('k') | tests/co19/co19-leg.status » ('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 71326fb607522bb2a342cc502a76c4d3aca8024f..2074ddc0bdcb282fa71d4dd06298783fd695ea64 100644
--- a/lib/compiler/implementation/tree/nodes.dart
+++ b/lib/compiler/implementation/tree/nodes.dart
@@ -141,6 +141,7 @@ class Node implements Hashable {
Send asSend() => null;
SendSet asSendSet() => null;
Statement asStatement() => null;
+ StringNode asStringNode() => null;
StringInterpolation asStringInterpolation() => null;
StringInterpolationPart asStringInterpolationPart() => null;
StringJuxtaposition asStringJuxtaposition() => null;
@@ -744,6 +745,8 @@ class StringQuoting {
class StringNode extends Expression {
abstract DartString get dartString();
abstract bool get isInterpolation();
+
+ StringNode asStringNode() => this;
}
class LiteralString extends StringNode {
« no previous file with comments | « lib/compiler/implementation/scanner/listener.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698