| Index: pkg/kernel/lib/binary/ast_from_binary.dart
|
| diff --git a/pkg/kernel/lib/binary/ast_from_binary.dart b/pkg/kernel/lib/binary/ast_from_binary.dart
|
| index 11d49a2aa67a47527b4fdc59f980e30c37c4efe6..64563eb27bd79e1f7c6b6f89ac18e8fa7c6f0ca0 100644
|
| --- a/pkg/kernel/lib/binary/ast_from_binary.dart
|
| +++ b/pkg/kernel/lib/binary/ast_from_binary.dart
|
| @@ -133,16 +133,6 @@ class BinaryBuilder {
|
| return string.isEmpty ? null : string;
|
| }
|
|
|
| - InferredValue readOptionalInferredValue() {
|
| - if (readAndCheckOptionTag()) {
|
| - Reference baseClass = readClassReference(allowNull: true);
|
| - BaseClassKind baseClassKind = BaseClassKind.values[readByte()];
|
| - int valueBits = readByte();
|
| - return new InferredValue.byReference(baseClass, baseClassKind, valueBits);
|
| - }
|
| - return null;
|
| - }
|
| -
|
| bool readAndCheckOptionTag() {
|
| int tag = readByte();
|
| if (tag == Tag.Nothing) {
|
| @@ -453,7 +443,6 @@ class BinaryBuilder {
|
| var annotations = readAnnotationList(node);
|
| debugPath.add(node.name?.name ?? 'field');
|
| var type = readDartType();
|
| - var inferredValue = readOptionalInferredValue();
|
| var initializer = readExpressionOption();
|
| int transformerFlags = getAndResetTransformerFlags();
|
| debugPath.removeLast();
|
| @@ -465,7 +454,6 @@ class BinaryBuilder {
|
| node.fileUri = fileUri;
|
| node.annotations = annotations;
|
| node.type = type;
|
| - node.inferredValue = inferredValue;
|
| node.initializer = initializer;
|
| node.initializer?.parent = node;
|
| node.transformerFlags = transformerFlags;
|
| @@ -582,7 +570,6 @@ class BinaryBuilder {
|
| var positional = readAndPushVariableDeclarationList();
|
| var named = readAndPushVariableDeclarationList();
|
| var returnType = readDartType();
|
| - var inferredReturnValue = readOptionalInferredValue();
|
| int oldLabelStackBase = labelStackBase;
|
| labelStackBase = labelStack.length;
|
| var body = readStatementOption();
|
| @@ -595,7 +582,6 @@ class BinaryBuilder {
|
| positionalParameters: positional,
|
| namedParameters: named,
|
| returnType: returnType,
|
| - inferredReturnValue: inferredReturnValue,
|
| asyncMarker: asyncMarker,
|
| dartAsyncMarker: dartAsyncMarker)
|
| ..fileOffset = offset
|
| @@ -1127,7 +1113,6 @@ class BinaryBuilder {
|
| int flags = readByte();
|
| return new VariableDeclaration(readStringOrNullIfEmpty(),
|
| type: readDartType(),
|
| - inferredValue: readOptionalInferredValue(),
|
| initializer: readExpressionOption(),
|
| isFinal: flags & 0x1 != 0,
|
| isConst: flags & 0x2 != 0)
|
|
|