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 {
40
40
// TODO(jcollins-g): Remove reference to f.element.enclosingElement after
41
41
// analyzer 0.41.
42
42
var isGenericTypeAlias =
43
- f.element.enclosingElement is GenericTypeAliasElement ||
44
- f.element is GenericTypeAliasElement ;
43
+ f.element.enclosingElement is FunctionTypeAliasElement ||
44
+ f.element is FunctionTypeAliasElement ;
45
45
if (f is FunctionType ) {
46
46
assert (f is ParameterizedType );
47
47
if (isGenericTypeAlias) {
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ abstract class ModelElement extends Canonicalization
331
331
if (e is FunctionElement ) {
332
332
return ModelFunction (e, library, packageGraph);
333
333
} else if (e is GenericFunctionTypeElement ) {
334
- assert (e.enclosingElement is GenericTypeAliasElement );
334
+ assert (e.enclosingElement is FunctionTypeAliasElement );
335
335
assert (e.enclosingElement.name != '' );
336
336
return ModelFunctionTypedef (e, library, packageGraph);
337
337
}
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ class Typedef extends ModelElement
24
24
String get genericParameters => _renderer.renderGenericParameters (this );
25
25
26
26
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;
29
29
}
30
30
return Iterable <TypeParameterElement >.empty ();
31
31
}
You can’t perform that action at this time.
0 commit comments