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

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

Issue 2762863002: Issue 28580. Relax instantiate to bounds. (Closed)
Patch Set: 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
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 bd764d409841bab943ea72506f3eabaa8bd4def5..73f09c312803cbd43f08686ab6321eb1fb9dedc8 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -1294,8 +1294,7 @@ class _ReferenceInfo {
InterfaceTypeImpl type =
new InterfaceTypeImpl.elementWithNameAndArgs(element, name, () {
if (typeArguments == null) {
- if (libraryResynthesizer.summaryResynthesizer.strongMode &&
- instantiateToBoundsAllowed) {
+ if (libraryResynthesizer.summaryResynthesizer.strongMode) {
InterfaceType instantiatedToBounds = libraryResynthesizer
.summaryResynthesizer.context.typeSystem
.instantiateToBounds(element.type) as InterfaceType;
@@ -1320,8 +1319,7 @@ class _ReferenceInfo {
if (numTypeArguments == numTypeParameters) {
typeArguments =
_buildTypeArguments(numTypeArguments, getTypeArgument);
- } else if (libraryResynthesizer.summaryResynthesizer.strongMode &&
- instantiateToBoundsAllowed) {
+ } else if (libraryResynthesizer.summaryResynthesizer.strongMode) {
FunctionType instantiatedToBounds = libraryResynthesizer
.summaryResynthesizer.context.typeSystem
.instantiateToBounds(element.type) as FunctionType;

Powered by Google App Engine
This is Rietveld 408576698