| Index: pkg/analyzer/lib/src/summary/resynthesize.dart
|
| diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
|
| index daf1d1532e45e2880676246a5f5f587f7d3d4981..9f24549b4f963c3950f5f4eb8b901aa14f86a74f 100644
|
| --- a/pkg/analyzer/lib/src/summary/resynthesize.dart
|
| +++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
|
| @@ -1694,15 +1694,17 @@ class _ReferenceInfo {
|
| } else if (element is FunctionTypeAliasElementHandle) {
|
| return new FunctionTypeImpl.elementWithNameAndArgs(
|
| element, name, typeArguments, typeArguments.isNotEmpty);
|
| - } else if (element is FunctionTypedElement &&
|
| - implicitFunctionTypeIndices != null) {
|
| - FunctionTypedElementComputer computer = () {
|
| - FunctionTypedElement element = this.element;
|
| - for (int index in implicitFunctionTypeIndices) {
|
| - element = element.parameters[index].type.element;
|
| - }
|
| - return element;
|
| - };
|
| + } else if (element is FunctionTypedElement) {
|
| + FunctionTypedElementComputer computer =
|
| + implicitFunctionTypeIndices != null
|
| + ? () {
|
| + FunctionTypedElement element = this.element;
|
| + for (int index in implicitFunctionTypeIndices) {
|
| + element = element.parameters[index].type.element;
|
| + }
|
| + return element;
|
| + }
|
| + : () => this.element;
|
| // TODO(paulberry): Is it a bug that we have to pass `false` for
|
| // isInstantiated?
|
| return new DeferredFunctionTypeImpl(computer, null, typeArguments, false);
|
|
|