| 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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 return new ClassElementHandle(summaryResynthesizer, location); | 878 return new ClassElementHandle(summaryResynthesizer, location); |
| 879 case ReferenceKind.typedef: | 879 case ReferenceKind.typedef: |
| 880 return new FunctionTypeAliasElementHandle( | 880 return new FunctionTypeAliasElementHandle( |
| 881 summaryResynthesizer, location); | 881 summaryResynthesizer, location); |
| 882 case ReferenceKind.topLevelFunction: | 882 case ReferenceKind.topLevelFunction: |
| 883 return new FunctionElementHandle(summaryResynthesizer, location); | 883 return new FunctionElementHandle(summaryResynthesizer, location); |
| 884 case ReferenceKind.topLevelPropertyAccessor: | 884 case ReferenceKind.topLevelPropertyAccessor: |
| 885 return new PropertyAccessorElementHandle( | 885 return new PropertyAccessorElementHandle( |
| 886 summaryResynthesizer, location); | 886 summaryResynthesizer, location); |
| 887 case ReferenceKind.constructor: | 887 case ReferenceKind.constructor: |
| 888 case ReferenceKind.constField: | 888 case ReferenceKind.propertyAccessor: |
| 889 case ReferenceKind.staticMethod: | 889 case ReferenceKind.method: |
| 890 case ReferenceKind.length: | 890 case ReferenceKind.length: |
| 891 case ReferenceKind.prefix: | 891 case ReferenceKind.prefix: |
| 892 case ReferenceKind.unresolved: | 892 case ReferenceKind.unresolved: |
| 893 // Should never happen. Exported names never refer to import prefixes, | 893 // Should never happen. Exported names never refer to import prefixes, |
| 894 // and they always refer to defined top-level entities. | 894 // and they always refer to defined top-level entities. |
| 895 throw new StateError('Unexpected export name kind: ${exportName.kind}'); | 895 throw new StateError('Unexpected export name kind: ${exportName.kind}'); |
| 896 } | 896 } |
| 897 } | 897 } |
| 898 | 898 |
| 899 /** | 899 /** |
| (...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1589 return new InterfaceTypeImpl.elementWithNameAndArgs( | 1589 return new InterfaceTypeImpl.elementWithNameAndArgs( |
| 1590 element, name, typeArguments); | 1590 element, name, typeArguments); |
| 1591 } else if (element is FunctionTypeAliasElementHandle) { | 1591 } else if (element is FunctionTypeAliasElementHandle) { |
| 1592 return new FunctionTypeImpl.elementWithNameAndArgs( | 1592 return new FunctionTypeImpl.elementWithNameAndArgs( |
| 1593 element, name, typeArguments, typeArguments.isNotEmpty); | 1593 element, name, typeArguments, typeArguments.isNotEmpty); |
| 1594 } else { | 1594 } else { |
| 1595 return null; | 1595 return null; |
| 1596 } | 1596 } |
| 1597 } | 1597 } |
| 1598 } | 1598 } |
| OLD | NEW |