Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: pkg/compiler/lib/src/resolution/class_hierarchy.dart

Issue 2223133003: pkg/compiler: clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 Feature, 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 '../util/util.dart' show Link, Setlet; 23 import '../util/util.dart' show Link, Setlet;
23 import '../universe/call_structure.dart' show CallStructure;
24
25 import 'enum_creator.dart'; 24 import 'enum_creator.dart';
26 import 'members.dart' show lookupInScope; 25 import 'members.dart' show lookupInScope;
27 import 'registry.dart' show ResolutionRegistry; 26 import 'registry.dart' show ResolutionRegistry;
28 import 'resolution_common.dart' show CommonResolverVisitor, MappingVisitor; 27 import 'resolution_common.dart' show CommonResolverVisitor, MappingVisitor;
29 import 'scope.dart' show Scope, TypeDeclarationScope; 28 import 'scope.dart' show Scope, TypeDeclarationScope;
30 29
31 class TypeDefinitionVisitor extends MappingVisitor<DartType> { 30 class TypeDefinitionVisitor extends MappingVisitor<DartType> {
32 Scope scope; 31 Scope scope;
33 final TypeDeclarationElement enclosingElement; 32 final TypeDeclarationElement enclosingElement;
34 TypeDeclarationElement get element => enclosingElement; 33 TypeDeclarationElement get element => enclosingElement;
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 Identifier selector = node.selector.asIdentifier(); 643 Identifier selector = node.selector.asIdentifier();
645 var e = prefixElement.lookupLocalMember(selector.source); 644 var e = prefixElement.lookupLocalMember(selector.source);
646 if (e == null || !e.impliesType) { 645 if (e == null || !e.impliesType) {
647 reporter.reportErrorMessage(node.selector, 646 reporter.reportErrorMessage(node.selector,
648 MessageKind.CANNOT_RESOLVE_TYPE, {'typeName': node.selector}); 647 MessageKind.CANNOT_RESOLVE_TYPE, {'typeName': node.selector});
649 return; 648 return;
650 } 649 }
651 loadSupertype(e, node); 650 loadSupertype(e, node);
652 } 651 }
653 } 652 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/type_variable_handler.dart ('k') | pkg/compiler/lib/src/resolution/class_members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698