| Index: pkg/analysis_server/lib/src/services/correction/util.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/correction/util.dart b/pkg/analysis_server/lib/src/services/correction/util.dart
|
| index d0078aefdf4e15ca36de4e5b8a171c2342ee4693..3bf24eb4ac59a18711e16d9bf50694628c441b4e 100644
|
| --- a/pkg/analysis_server/lib/src/services/correction/util.dart
|
| +++ b/pkg/analysis_server/lib/src/services/correction/util.dart
|
| @@ -888,8 +888,8 @@ class CorrectionUtils {
|
| */
|
| String getTypeSource(DartType type) {
|
| StringBuffer sb = new StringBuffer();
|
| - // just some Function, maybe find Function Type Alias later
|
| - if (type is FunctionType) {
|
| + // just a Function, not FunctionTypeAliasElement
|
| + if (type is FunctionType && type.element is! FunctionTypeAliasElement) {
|
| return "Function";
|
| }
|
| // prepare element
|
| @@ -912,9 +912,8 @@ class CorrectionUtils {
|
| String name = element.displayName;
|
| sb.write(name);
|
| // may be type arguments
|
| - if (type is InterfaceType) {
|
| - InterfaceType interfaceType = type;
|
| - List<DartType> arguments = interfaceType.typeArguments;
|
| + if (type is ParameterizedType) {
|
| + List<DartType> arguments = type.typeArguments;
|
| // check if has arguments
|
| bool hasArguments = false;
|
| for (DartType argument in arguments) {
|
|
|