| 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/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 return new ClassElementHandle(summaryResynthesizer, location); | 635 return new ClassElementHandle(summaryResynthesizer, location); |
| 636 case ReferenceKind.typedef: | 636 case ReferenceKind.typedef: |
| 637 return new FunctionTypeAliasElementHandle( | 637 return new FunctionTypeAliasElementHandle( |
| 638 summaryResynthesizer, location); | 638 summaryResynthesizer, location); |
| 639 case ReferenceKind.topLevelFunction: | 639 case ReferenceKind.topLevelFunction: |
| 640 return new FunctionElementHandle(summaryResynthesizer, location); | 640 return new FunctionElementHandle(summaryResynthesizer, location); |
| 641 case ReferenceKind.topLevelPropertyAccessor: | 641 case ReferenceKind.topLevelPropertyAccessor: |
| 642 return new PropertyAccessorElementHandle( | 642 return new PropertyAccessorElementHandle( |
| 643 summaryResynthesizer, location); | 643 summaryResynthesizer, location); |
| 644 case ReferenceKind.constructor: | 644 case ReferenceKind.constructor: |
| 645 case ReferenceKind.constField: |
| 645 case ReferenceKind.staticMethod: | 646 case ReferenceKind.staticMethod: |
| 646 case ReferenceKind.prefix: | 647 case ReferenceKind.prefix: |
| 647 case ReferenceKind.unresolved: | 648 case ReferenceKind.unresolved: |
| 648 // Should never happen. Exported names never refer to import prefixes, | 649 // Should never happen. Exported names never refer to import prefixes, |
| 649 // and they always refer to defined top-level entities. | 650 // and they always refer to defined top-level entities. |
| 650 throw new StateError('Unexpected export name kind: ${exportName.kind}'); | 651 throw new StateError('Unexpected export name kind: ${exportName.kind}'); |
| 651 } | 652 } |
| 652 } | 653 } |
| 653 | 654 |
| 654 /** | 655 /** |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 for (PropertyAccessorElementImpl accessor in unit.accessors) { | 1216 for (PropertyAccessorElementImpl accessor in unit.accessors) { |
| 1216 elementMap[accessor.identifier] = accessor; | 1217 elementMap[accessor.identifier] = accessor; |
| 1217 } | 1218 } |
| 1218 resummarizedElements[absoluteUri] = elementMap; | 1219 resummarizedElements[absoluteUri] = elementMap; |
| 1219 unitHolder = null; | 1220 unitHolder = null; |
| 1220 linkedUnit = null; | 1221 linkedUnit = null; |
| 1221 unlinkedUnit = null; | 1222 unlinkedUnit = null; |
| 1222 linkedTypeMap = null; | 1223 linkedTypeMap = null; |
| 1223 } | 1224 } |
| 1224 } | 1225 } |
| OLD | NEW |