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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart

Issue 1001793002: dart2js: Add support for do/while loops to the CPS backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Ummm, semicolon? Created 5 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
Index: pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
index 10aa6add1ac06b2cf565c2418fd057b66f6b254c..34cd076d3c0941f0a6eec0baa1e8520d82735286 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
@@ -9,8 +9,9 @@ import '../util/util.dart';
import 'cps_ir_nodes.dart';
/// A [Decorator] is a function used by [SExpressionStringifier] to augment the
-/// output produced for a node. It can be provided to the constructor.
-typedef String Decorator(Node node, String s);
+/// output produced for a node or reference. It can be provided to the
+/// constructor.
+typedef String Decorator(node, String s);
/// Generate a Lisp-like S-expression representation of an IR node as a string.
class SExpressionStringifier extends Indentation implements Visitor<String> {
@@ -22,12 +23,12 @@ class SExpressionStringifier extends Indentation implements Visitor<String> {
SExpressionStringifier([this.decorator]) {
if (this.decorator == null) {
- this.decorator = (Node node, String s) => s;
+ this.decorator = (node, String s) => s;
}
}
String access(Reference<Definition> r) {
- return decorator(r.definition, namer.getName(r.definition));
+ return decorator(r, namer.getName(r.definition));
}
String visitParameter(Parameter node) {
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698