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

Unified Diff: pkg/analyzer/lib/src/summary/resynthesize.dart

Issue 2010143002: Resynthesize some more types lazily. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/analyzer/lib/src/summary/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index 298c20d09b3c049e71268404f87f6028896b82fb..631fe571580ecfaa86baaf05856d6584a0a739dd 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -1812,12 +1812,6 @@ class _UnitResynthesizer {
} else if (!libraryResynthesizer.isCoreLibrary) {
classElement.supertype = typeProvider.objectType;
}
- classElement.interfaces = serializedClass.interfaces
- .map((EntityRef t) => buildType(t, classElement))
- .toList();
- classElement.mixins = serializedClass.mixins
- .map((EntityRef t) => buildType(t, classElement))
- .toList();
// TODO(scheglov) move to ClassElementImpl
correspondingType.typeArguments = classElement.typeParameterTypes;
classElement.type = correspondingType;
@@ -2444,8 +2438,6 @@ class _UnitResynthesizer {
functionTypeAliasElement.parameters = serializedTypedef.parameters
.map((p) => buildParameter(p, functionTypeAliasElement))
.toList();
- functionTypeAliasElement.type =
- new FunctionTypeImpl.forTypedef(functionTypeAliasElement);
unitHolder.addTypeAlias(functionTypeAliasElement);
// TODO(scheglov) remove this after delaying parameters and their types
currentTypeParameters.removeLast();
@@ -2614,9 +2606,6 @@ class _UnitResynthesizer {
*/
void buildVariableCommonParts(
VariableElementImpl element, UnlinkedVariable serializedVariable) {
- element.type = buildLinkedType(serializedVariable.inferredTypeSlot,
- element.typeParameterContext) ??
- buildType(serializedVariable.type, element.typeParameterContext);
buildVariableInitializer(element, serializedVariable.initializer);
}
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698