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

Unified Diff: pkg/kernel/lib/binary/ast_to_binary.dart

Issue 2778223002: Add primitive to create closures and use it for closure conversion (Closed)
Patch Set: Skip context param in closure type construction, rather than remove it 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
Index: pkg/kernel/lib/binary/ast_to_binary.dart
diff --git a/pkg/kernel/lib/binary/ast_to_binary.dart b/pkg/kernel/lib/binary/ast_to_binary.dart
index 2c87df570979b7c95ebca030b559d3357531f6bd..ed41a5080a7fbea09f81db8454be70e1f4788363 100644
--- a/pkg/kernel/lib/binary/ast_to_binary.dart
+++ b/pkg/kernel/lib/binary/ast_to_binary.dart
@@ -751,6 +751,13 @@ class BinaryPrinter extends Visitor {
writeNode(node.vectorExpression);
}
+ visitClosureCreation(ClosureCreation node) {
+ writeByte(Tag.ClosureCreation);
+ writeMemberReference(node.topLevelFunctionReference.asMember);
asgerf 2017/03/31 12:08:43 Please use: writeReference(node.topLevelFunctionRe
Dmitry Stefantsov 2017/03/31 12:40:18 Thanks! Done.
+ writeNode(node.contextVector);
+ writeNode(node.functionType);
+ }
+
writeStatementOrEmpty(Statement node) {
if (node == null) {
writeByte(Tag.EmptyStatement);

Powered by Google App Engine
This is Rietveld 408576698