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

Unified Diff: pkg/kernel/lib/text/ast_to_text.dart

Issue 2778223002: Add primitive to create closures and use it for closure conversion (Closed)
Patch Set: Follow common pattern for AST nodes with References in ClosureCreation Created 3 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 | « pkg/kernel/lib/binary/tag.dart ('k') | pkg/kernel/lib/transformations/closure/converter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/text/ast_to_text.dart
diff --git a/pkg/kernel/lib/text/ast_to_text.dart b/pkg/kernel/lib/text/ast_to_text.dart
index bb7dd93afa4afd9506fcd6294b6209699a0954d9..03f7fa6382646163e47475975ef80690ae46503e 100644
--- a/pkg/kernel/lib/text/ast_to_text.dart
+++ b/pkg/kernel/lib/text/ast_to_text.dart
@@ -1021,6 +1021,18 @@ class Printer extends Visitor<Null> {
writeSymbol(')');
}
+ visitClosureCreation(ClosureCreation node) {
+ writeWord('MakeClosure');
+ writeSymbol('<');
+ writeNode(node.functionType);
+ writeSymbol('>');
+ writeSymbol('(');
+ writeMemberReference(node.topLevelFunction);
+ writeComma();
+ writeExpression(node.contextVector);
+ writeSymbol(')');
+ }
+
visitDeferredImport(DeferredImport node) {
write('import "');
write('${node.importedLibrary.importUri}');
« no previous file with comments | « pkg/kernel/lib/binary/tag.dart ('k') | pkg/kernel/lib/transformations/closure/converter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698