Index: pkg/analyzer/lib/src/generated/constant.dart |
diff --git a/pkg/analyzer/lib/src/generated/constant.dart b/pkg/analyzer/lib/src/generated/constant.dart |
index 8d4de8ec85a4338c55205d060cb2eb2aaf793a36..db35618bd5e82e027f513f08ea46d02605224150 100644 |
--- a/pkg/analyzer/lib/src/generated/constant.dart |
+++ b/pkg/analyzer/lib/src/generated/constant.dart |
@@ -1734,7 +1734,7 @@ class ConstantVisitor extends UnifyingAstVisitor<DartObjectImpl> { |
elementType = type; |
} |
} |
- InterfaceType listType = _typeProvider.listType.substitute4([elementType]); |
+ InterfaceType listType = _typeProvider.listType.instantiate([elementType]); |
return new DartObjectImpl(listType, new ListState(elements)); |
} |
@@ -1774,7 +1774,7 @@ class ConstantVisitor extends UnifyingAstVisitor<DartObjectImpl> { |
} |
} |
InterfaceType mapType = |
- _typeProvider.mapType.substitute4([keyType, valueType]); |
+ _typeProvider.mapType.instantiate([keyType, valueType]); |
return new DartObjectImpl(mapType, new MapState(map)); |
} |