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

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

Issue 10821101: Support cascade receivers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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/language/language.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 5ebb8a7147fd5bdfad85be648acd87dbf6cd7ef2..fab71ed94d21b275d2dadfe8a795d45a738f4e1c 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -233,7 +233,12 @@ class Unparser implements Visitor {
if (node.receiver !== null) {
visit(node.receiver);
if (op === null) {
- sb.add('.');
+ CascadeReceiver asCascadeReceiver = node.receiver.asCascadeReceiver();
+ if (asCascadeReceiver !== null) {
+ add(asCascadeReceiver.cascadeOperator.value);
+ } else {
+ sb.add('.');
+ }
} else if (isCheck) {
sb.add(' ');
}
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698