| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library summary_resynthesizer; | 5 library summary_resynthesizer; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1686 element, name, typeArguments, typeArguments.isNotEmpty); | 1686 element, name, typeArguments, typeArguments.isNotEmpty); |
| 1687 } else if (element is FunctionTypedElement && | 1687 } else if (element is FunctionTypedElement && |
| 1688 implicitFunctionTypeIndices != null) { | 1688 implicitFunctionTypeIndices != null) { |
| 1689 FunctionTypedElementComputer computer = () { | 1689 FunctionTypedElementComputer computer = () { |
| 1690 FunctionTypedElement element = this.element; | 1690 FunctionTypedElement element = this.element; |
| 1691 for (int index in implicitFunctionTypeIndices) { | 1691 for (int index in implicitFunctionTypeIndices) { |
| 1692 element = element.parameters[index].type.element; | 1692 element = element.parameters[index].type.element; |
| 1693 } | 1693 } |
| 1694 return element; | 1694 return element; |
| 1695 }; | 1695 }; |
| 1696 return new DeferredFunctionTypeImpl( | 1696 // TODO(paulberry): Is it a bug that we have to pass `false` for |
| 1697 computer, null, typeArguments, typeArguments.isNotEmpty); | 1697 // isInstantiated? |
| 1698 return new DeferredFunctionTypeImpl(computer, null, typeArguments, false); |
| 1698 } else { | 1699 } else { |
| 1699 return null; | 1700 return null; |
| 1700 } | 1701 } |
| 1701 } | 1702 } |
| 1702 } | 1703 } |
| OLD | NEW |