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

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

Issue 1445273002: Revert "Use FunctionElementImpl for inline function type parameters" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/generated/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/element.dart
diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
index 7793d0d0b524d4ee4f7bf215e0c1805e7eeb3b73..aac31823a42d03287c7d6ceb162b07f42e723b92 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -4514,15 +4514,6 @@ class FunctionElementImpl extends ExecutableElementImpl
_visibleRangeOffset = offset;
_visibleRangeLength = length;
}
-
- /**
- * Set the parameters defined by this type alias to the given [parameters]
- * without becoming the parent of the parameters. This should only be used by
- * the [TypeResolverVisitor] when creating a synthetic type alias.
- */
- void shareParameters(List<ParameterElement> parameters) {
- this._parameters = parameters;
- }
}
/**
@@ -4829,6 +4820,24 @@ class FunctionTypeAliasElementImpl extends ElementImpl
return null;
}
+ /**
+ * Set the parameters defined by this type alias to the given [parameters]
+ * without becoming the parent of the parameters. This should only be used by
+ * the [TypeResolverVisitor] when creating a synthetic type alias.
+ */
+ void shareParameters(List<ParameterElement> parameters) {
+ this._parameters = parameters;
+ }
+
+ /**
+ * Set the type parameters defined for this type to the given [typeParameters]
+ * without becoming the parent of the parameters. This should only be used by
+ * the [TypeResolverVisitor] when creating a synthetic type alias.
+ */
+ void shareTypeParameters(List<TypeParameterElement> typeParameters) {
+ this._typeParameters = typeParameters;
+ }
+
@override
void visitChildren(ElementVisitor visitor) {
super.visitChildren(visitor);
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698