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

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

Issue 1559123002: Clean up resynthesis of typeArguments. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 12 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 d5639fbf8f9682ad83e2d9dfa4f57c3157d250d8..5a76e6193dd112b092ced6b889bd7b57ecdd57b0 100644
--- a/pkg/analyzer/lib/src/dart/element/type.dart
+++ b/pkg/analyzer/lib/src/dart/element/type.dart
@@ -195,11 +195,14 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType {
/**
* Initialize a newly created function type to be declared by the given
- * [element], with the given [name].
+ * [element], with the given [name] and [typeArguments].
+ *
+ * TODO(paulberry): set [typeParameters] and [boundTypeParameters] properly.
*/
- FunctionTypeImpl.elementWithName(Element element, String name)
- : prunedTypedefs = null,
- super(element, name);
+ FunctionTypeImpl.elementWithNameAndArgs(
+ Element element, String name, List<DartType> typeArguments)
+ : this._(element, name, null, typeArguments,
+ const <TypeParameterElement>[], const <TypeParameterElement>[]);
/**
* Initialize a newly created function type to be declared by the given
@@ -1107,11 +1110,14 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
/**
* Initialize a newly created type to be declared by the given [element],
- * with the given [name].
+ * with the given [name] and [typeArguents].
*/
- InterfaceTypeImpl.elementWithName(ClassElement element, String name)
+ InterfaceTypeImpl.elementWithNameAndArgs(
+ ClassElement element, String name, List<DartType> typeArguments)
: prunedTypedefs = null,
- super(element, name);
+ super(element, name) {
+ this.typeArguments = typeArguments;
+ }
/**
* Initialize a newly created type to have the given [name]. This constructor
« 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