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

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

Issue 9802023: Correctly handle constness for list and map literals inside bodies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add TODOs. Created 8 years, 9 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/tree/nodes.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/unparser.dart
diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
index f831c1a6139547cec7394faf5b16fe5e4ade2d27..83f32bd714e4ae95b755a9760e35d25e955c5c4a 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -130,12 +130,14 @@ class Unparser implements Visitor {
}
visitNewExpression(NewExpression node) {
+ // TODO(ahe): handle 'const'.
add(node.newToken.value);
sb.add(' ');
visit(node.send);
}
visitLiteralList(LiteralList node) {
+ // TODO(ahe): handle 'const'.
if (node.type !== null) {
sb.add('<');
visit(node.type);
@@ -305,6 +307,7 @@ class Unparser implements Visitor {
}
visitLiteralMap(LiteralMap node) {
+ // TODO(ahe): handle 'const'.
if (node.typeArguments !== null) visit(node.typeArguments);
visit(node.entries);
}
« no previous file with comments | « lib/compiler/implementation/tree/nodes.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698