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

Unified Diff: pkg/compiler/lib/src/serialization/modelz.dart

Issue 1856953003: Test closed world model after deserialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 8 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/compiler/lib/src/serialization/keys.dart ('k') | pkg/compiler/lib/src/universe/class_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/serialization/modelz.dart
diff --git a/pkg/compiler/lib/src/serialization/modelz.dart b/pkg/compiler/lib/src/serialization/modelz.dart
index dc6ede2ad788a04d6d153792e6dd75df82d3026f..7c02c7a07ff7ed1af5af18c28b1c871869cf4c34 100644
--- a/pkg/compiler/lib/src/serialization/modelz.dart
+++ b/pkg/compiler/lib/src/serialization/modelz.dart
@@ -747,7 +747,6 @@ abstract class FunctionTypedElementMixin
}
abstract class ClassElementMixin implements ElementZ, ClassElement {
-
InterfaceType _createType(List<DartType> typeArguments) {
return new InterfaceType(this, typeArguments);
}
@@ -779,11 +778,6 @@ abstract class ClassElementMixin implements ElementZ, ClassElement {
bool get hasLocalScopeMembers => _unsupported('hasLocalScopeMembers');
@override
- bool implementsFunction(CoreClasses coreClasses) {
- return _unsupported('implementsFunction');
- }
-
- @override
bool get isEnumClass => false;
@override
@@ -827,6 +821,7 @@ class ClassElementZ extends DeserializedElementZ
DartType _supertype;
OrderedTypeSet _allSupertypesAndSelf;
Link<DartType> _interfaces;
+ FunctionType _callType;
ClassElementZ(ObjectDecoder decoder)
: super(decoder);
@@ -860,6 +855,7 @@ class ClassElementZ extends DeserializedElementZ
_allSupertypesAndSelf =
new OrderedTypeSetBuilder(this)
.createOrderedTypeSet(_supertype, _interfaces);
+ _callType = _decoder.getType(Key.CALL_TYPE, isOptional: true);
}
}
}
@@ -901,6 +897,12 @@ class ClassElementZ extends DeserializedElementZ
@override
bool get isUnnamedMixinApplication => false;
+
+ @override
+ FunctionType get callType {
+ _ensureSuperHierarchy();
+ return _callType;
+ }
}
abstract class MixinApplicationElementMixin
« no previous file with comments | « pkg/compiler/lib/src/serialization/keys.dart ('k') | pkg/compiler/lib/src/universe/class_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698