File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ abstract class ElementType extends Privacy {
4040 // TODO(jcollins-g): Remove reference to f.element.enclosingElement after
4141 // analyzer 0.41.
4242 var isGenericTypeAlias =
43- f.element.enclosingElement is GenericTypeAliasElement ||
44- f.element is GenericTypeAliasElement ;
43+ f.element.enclosingElement is FunctionTypeAliasElement ||
44+ f.element is FunctionTypeAliasElement ;
4545 if (f is FunctionType ) {
4646 assert (f is ParameterizedType );
4747 if (isGenericTypeAlias) {
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ abstract class ModelElement extends Canonicalization
331331 if (e is FunctionElement ) {
332332 return ModelFunction (e, library, packageGraph);
333333 } else if (e is GenericFunctionTypeElement ) {
334- assert (e.enclosingElement is GenericTypeAliasElement );
334+ assert (e.enclosingElement is FunctionTypeAliasElement );
335335 assert (e.enclosingElement.name != '' );
336336 return ModelFunctionTypedef (e, library, packageGraph);
337337 }
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ class Typedef extends ModelElement
2424 String get genericParameters => _renderer.renderGenericParameters (this );
2525
2626 List <TypeParameterElement > get genericTypeParameters {
27- if (element is GenericTypeAliasElement ) {
28- return (element as GenericTypeAliasElement ).function.typeParameters;
27+ if (element is FunctionTypeAliasElement ) {
28+ return (element as FunctionTypeAliasElement ).function.typeParameters;
2929 }
3030 return Iterable <TypeParameterElement >.empty ();
3131 }
You can’t perform that action at this time.
0 commit comments