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

Unified Diff: lib/binary/ast_to_binary.dart

Issue 2439043002: Introduce Substitution class and Supertype class. (Closed)
Patch Set: Created 4 years, 2 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/binary/ast_from_binary.dart ('k') | lib/class_hierarchy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/binary/ast_to_binary.dart
diff --git a/lib/binary/ast_to_binary.dart b/lib/binary/ast_to_binary.dart
index 853a53a527acc69379cc2085ffcf38b31387b2b0..7f7c3927612ace3ea88863427d03b832618b37f4 100644
--- a/lib/binary/ast_to_binary.dart
+++ b/lib/binary/ast_to_binary.dart
@@ -870,6 +870,17 @@ class BinaryPrinter extends Visitor {
}
}
+ visitSupertype(Supertype node) {
+ if (node.typeArguments.isEmpty) {
+ writeByte(Tag.SimpleInterfaceType);
+ writeClassReference(node.classNode);
+ } else {
+ writeByte(Tag.InterfaceType);
+ writeClassReference(node.classNode);
+ writeNodeList(node.typeArguments);
+ }
+ }
+
visitFunctionType(FunctionType node) {
if (node.requiredParameterCount == node.positionalParameters.length &&
node.typeParameters.isEmpty &&
« no previous file with comments | « lib/binary/ast_from_binary.dart ('k') | lib/class_hierarchy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698