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

Unified Diff: pkg/analyzer/lib/src/dart/element/type.dart

Issue 1569923002: Fix some corner cases of resynthesizing generic function types. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/type.dart
diff --git a/pkg/analyzer/lib/src/dart/element/type.dart b/pkg/analyzer/lib/src/dart/element/type.dart
index 03c361d8fe1815d3686e0b962296c22ec350d5ef..9c357daca7c50e2f51c6fc26f60de4d2d79d81ed 100644
--- a/pkg/analyzer/lib/src/dart/element/type.dart
+++ b/pkg/analyzer/lib/src/dart/element/type.dart
@@ -200,9 +200,9 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType {
* Initialize a newly created function type to be declared by the given
* [element], with the given [name] and [typeArguments].
*/
- FunctionTypeImpl.elementWithNameAndArgs(
- Element element, String name, List<DartType> typeArguments)
- : this._(element, name, null, typeArguments, true);
+ FunctionTypeImpl.elementWithNameAndArgs(Element element, String name,
+ List<DartType> typeArguments, bool isInstantiated)
+ : this._(element, name, null, typeArguments, isInstantiated);
/**
* Initialize a newly created function type to be declared by the given
@@ -369,6 +369,11 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType {
return new List<DartType>.from(typeArguments.skip(skipCount));
}
+ /**
+ * Return `true` if this type is the result of instantiating type parameters.
+ */
+ bool get isInstantiated => _isInstantiated;
+
@override
Map<String, DartType> get namedParameterTypes {
LinkedHashMap<String, DartType> namedParameterTypes =
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698