| 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'; |
| 11 import 'package:analyzer/dart/element/type.dart'; | 11 import 'package:analyzer/dart/element/type.dart'; |
| 12 import 'package:analyzer/src/dart/element/element.dart'; | 12 import 'package:analyzer/src/dart/element/element.dart'; |
| 13 import 'package:analyzer/src/dart/element/member.dart'; | 13 import 'package:analyzer/src/dart/element/member.dart'; |
| 14 import 'package:analyzer/src/dart/element/type.dart'; | 14 import 'package:analyzer/src/dart/element/type.dart'; |
| 15 import 'package:analyzer/src/generated/element_handle.dart'; | 15 import 'package:analyzer/src/generated/element_handle.dart'; |
| 16 import 'package:analyzer/src/generated/engine.dart'; | 16 import 'package:analyzer/src/generated/engine.dart'; |
| 17 import 'package:analyzer/src/generated/resolver.dart'; | 17 import 'package:analyzer/src/generated/resolver.dart'; |
| 18 import 'package:analyzer/src/generated/scanner.dart'; | 18 import 'package:analyzer/src/generated/scanner.dart'; |
| 19 import 'package:analyzer/src/generated/source_io.dart'; | 19 import 'package:analyzer/src/generated/source_io.dart'; |
| 20 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 20 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
| 21 import 'package:analyzer/src/generated/testing/token_factory.dart'; | 21 import 'package:analyzer/src/generated/testing/token_factory.dart'; |
| 22 import 'package:analyzer/src/generated/utilities_dart.dart'; | 22 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 23 import 'package:analyzer/src/summary/format.dart'; | 23 import 'package:analyzer/src/summary/idl.dart'; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Implementation of [ElementResynthesizer] used when resynthesizing an element | 26 * Implementation of [ElementResynthesizer] used when resynthesizing an element |
| 27 * model from summaries. | 27 * model from summaries. |
| 28 */ | 28 */ |
| 29 abstract class SummaryResynthesizer extends ElementResynthesizer { | 29 abstract class SummaryResynthesizer extends ElementResynthesizer { |
| 30 /** | 30 /** |
| 31 * The parent [SummaryResynthesizer] which is asked to resynthesize elements | 31 * The parent [SummaryResynthesizer] which is asked to resynthesize elements |
| 32 * and get summaries before this resynthesizer attempts to do this. | 32 * and get summaries before this resynthesizer attempts to do this. |
| 33 * Can be `null`. | 33 * Can be `null`. |
| (...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1822 } | 1822 } |
| 1823 : () => this.element; | 1823 : () => this.element; |
| 1824 // TODO(paulberry): Is it a bug that we have to pass `false` for | 1824 // TODO(paulberry): Is it a bug that we have to pass `false` for |
| 1825 // isInstantiated? | 1825 // isInstantiated? |
| 1826 return new DeferredFunctionTypeImpl(computer, null, typeArguments, false); | 1826 return new DeferredFunctionTypeImpl(computer, null, typeArguments, false); |
| 1827 } else { | 1827 } else { |
| 1828 return null; | 1828 return null; |
| 1829 } | 1829 } |
| 1830 } | 1830 } |
| 1831 } | 1831 } |
| OLD | NEW |