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

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

Issue 1526243002: Introduce code to resynthesize element models from summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/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 6acbd8919b87c3709c43b718903f68cf74c3c4be..4268f1ce5ccdbba8bd20f95e3644d7f8f168d5e1 100644
--- a/pkg/analyzer/lib/src/dart/element/type.dart
+++ b/pkg/analyzer/lib/src/dart/element/type.dart
@@ -195,6 +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].
+ */
+ FunctionTypeImpl.elementWithName(Element element, String name)
+ : prunedTypedefs = null,
+ super(element, name);
+
+ /**
+ * Initialize a newly created function type to be declared by the given
* [element].
*/
FunctionTypeImpl.forTypedef(FunctionTypeAliasElement element,
@@ -1098,6 +1106,14 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
: super(element, element.displayName);
/**
+ * Initialize a newly created type to be declared by the given [element],
+ * with the given [name].
+ */
+ InterfaceTypeImpl.elementWithName(ClassElement element, String name)
+ : prunedTypedefs = null,
+ super(element, name);
+
+ /**
* Initialize a newly created type to have the given [name]. This constructor
* should only be used in cases where there is no declaration of the type.
*/

Powered by Google App Engine
This is Rietveld 408576698