| 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 dart2js.resolution.class_hierarchy; | 5 library dart2js.resolution.class_hierarchy; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart' show Feature, Resolution; | 8 import '../common/resolution.dart' show Resolution; |
| 9 import '../core_types.dart' show CoreClasses, CoreTypes; | 9 import '../core_types.dart' show CoreClasses, CoreTypes; |
| 10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
| 11 import '../elements/elements.dart'; | 11 import '../elements/elements.dart'; |
| 12 import '../elements/modelx.dart' | 12 import '../elements/modelx.dart' |
| 13 show | 13 show |
| 14 BaseClassElementX, | 14 BaseClassElementX, |
| 15 ErroneousElementX, | 15 ErroneousElementX, |
| 16 MixinApplicationElementX, | 16 MixinApplicationElementX, |
| 17 SynthesizedConstructorElementX, | 17 SynthesizedConstructorElementX, |
| 18 TypeVariableElementX, | 18 TypeVariableElementX, |
| 19 UnnamedMixinApplicationElementX; | 19 UnnamedMixinApplicationElementX; |
| 20 import '../ordered_typeset.dart' show OrderedTypeSet, OrderedTypeSetBuilder; | 20 import '../ordered_typeset.dart' show OrderedTypeSet, OrderedTypeSetBuilder; |
| 21 import '../tree/tree.dart'; | 21 import '../tree/tree.dart'; |
| 22 import '../universe/call_structure.dart' show CallStructure; | 22 import '../universe/call_structure.dart' show CallStructure; |
| 23 import '../universe/feature.dart' show Feature; |
| 23 import '../util/util.dart' show Link, Setlet; | 24 import '../util/util.dart' show Link, Setlet; |
| 24 import 'enum_creator.dart'; | 25 import 'enum_creator.dart'; |
| 25 import 'members.dart' show lookupInScope; | 26 import 'members.dart' show lookupInScope; |
| 26 import 'registry.dart' show ResolutionRegistry; | 27 import 'registry.dart' show ResolutionRegistry; |
| 27 import 'resolution_common.dart' show CommonResolverVisitor, MappingVisitor; | 28 import 'resolution_common.dart' show CommonResolverVisitor, MappingVisitor; |
| 28 import 'scope.dart' show Scope, TypeDeclarationScope; | 29 import 'scope.dart' show Scope, TypeDeclarationScope; |
| 29 | 30 |
| 30 class TypeDefinitionVisitor extends MappingVisitor<DartType> { | 31 class TypeDefinitionVisitor extends MappingVisitor<DartType> { |
| 31 Scope scope; | 32 Scope scope; |
| 32 final TypeDeclarationElement enclosingElement; | 33 final TypeDeclarationElement enclosingElement; |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 Identifier selector = node.selector.asIdentifier(); | 645 Identifier selector = node.selector.asIdentifier(); |
| 645 var e = prefixElement.lookupLocalMember(selector.source); | 646 var e = prefixElement.lookupLocalMember(selector.source); |
| 646 if (e == null || !e.impliesType) { | 647 if (e == null || !e.impliesType) { |
| 647 reporter.reportErrorMessage(node.selector, | 648 reporter.reportErrorMessage(node.selector, |
| 648 MessageKind.CANNOT_RESOLVE_TYPE, {'typeName': node.selector}); | 649 MessageKind.CANNOT_RESOLVE_TYPE, {'typeName': node.selector}); |
| 649 return; | 650 return; |
| 650 } | 651 } |
| 651 loadSupertype(e, node); | 652 loadSupertype(e, node); |
| 652 } | 653 } |
| 653 } | 654 } |
| OLD | NEW |