Skip to content

Commit b2297b8

Browse files
authored
Support FunctionTypeAliasElement separately in modelType. (#2284)
1 parent 01c3cbe commit b2297b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/model/model_element.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,9 @@ abstract class ModelElement extends Canonicalization
965965
}
966966
} else if (element is ClassElement) {
967967
_modelType = ElementType.from(element.thisType, library, packageGraph);
968+
} else if (element is FunctionTypeAliasElement) {
969+
_modelType =
970+
ElementType.from(element.function.type, library, packageGraph);
968971
} else if (element is FunctionTypedElement) {
969972
_modelType = ElementType.from(element.type, library, packageGraph);
970973
} else if (element is ParameterElement) {

0 commit comments

Comments
 (0)