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

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

Issue 2780513004: [Kernel] Remove code from the old type propagation. (Closed)
Patch Set: Remove empty status file section 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/ast_from_binary.dart ('k') | pkg/kernel/lib/text/ast_to_text.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cef4a846697c761d08e09a67d69346ebe9fcd194..2c87df570979b7c95ebca030b559d3357531f6bd 100644
--- a/pkg/kernel/lib/binary/ast_to_binary.dart
+++ b/pkg/kernel/lib/binary/ast_to_binary.dart
@@ -122,17 +122,6 @@ class BinaryPrinter extends Visitor {
}
}
- void writeOptionalInferredValue(InferredValue node) {
- if (node == null) {
- writeByte(Tag.Nothing);
- } else {
- writeByte(Tag.Something);
- writeClassReference(node.baseClass, allowNull: true);
- writeByte(node.baseClassKind.index);
- writeByte(node.valueBits);
- }
- }
-
void writeLinkTable(Program program) {
List<CanonicalName> list = <CanonicalName>[];
void visitCanonicalName(CanonicalName node) {
@@ -376,7 +365,6 @@ class BinaryPrinter extends Visitor {
writeUriReference(node.fileUri ?? '');
writeAnnotationList(node.annotations);
writeNode(node.type);
- writeOptionalInferredValue(node.inferredValue);
writeOptionalNode(node.initializer);
_variableIndexer = null;
}
@@ -426,7 +414,6 @@ class BinaryPrinter extends Visitor {
writeVariableDeclarationList(node.positionalParameters);
writeVariableDeclarationList(node.namedParameters);
writeNode(node.returnType);
- writeOptionalInferredValue(node.inferredReturnValue);
writeOptionalNode(node.body);
_labelIndexer = oldLabels;
_switchCaseIndexer = oldCases;
@@ -917,7 +904,6 @@ class BinaryPrinter extends Visitor {
writeByte(node.flags);
writeStringReference(node.name ?? '');
writeNode(node.type);
- writeOptionalInferredValue(node.inferredValue);
writeOptionalNode(node.initializer);
// Declare the variable after its initializer. It is not in scope in its
// own initializer.
« no previous file with comments | « pkg/kernel/lib/binary/ast_from_binary.dart ('k') | pkg/kernel/lib/text/ast_to_text.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698