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

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

Issue 2221893003: pkg/compiler: fix 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.constructors; 5 library dart2js.resolution.constructors;
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 '../constants/constructors.dart' 9 import '../constants/constructors.dart'
10 show 10 show
11 GenerativeConstantConstructor, 11 GenerativeConstantConstructor,
12 RedirectingGenerativeConstantConstructor; 12 RedirectingGenerativeConstantConstructor;
13 import '../constants/expressions.dart'; 13 import '../constants/expressions.dart';
14 import '../dart_types.dart'; 14 import '../dart_types.dart';
15 import '../elements/elements.dart'; 15 import '../elements/elements.dart';
16 import '../elements/modelx.dart' 16 import '../elements/modelx.dart'
17 show 17 show
18 ConstructorElementX, 18 ConstructorElementX,
19 ErroneousConstructorElementX, 19 ErroneousConstructorElementX,
20 ErroneousElementX, 20 ErroneousElementX,
21 ErroneousFieldElementX, 21 ErroneousFieldElementX,
22 FieldElementX, 22 FieldElementX,
23 InitializingFormalElementX, 23 InitializingFormalElementX,
24 ParameterElementX; 24 ParameterElementX;
25 import '../tree/tree.dart'; 25 import '../tree/tree.dart';
26 import '../util/util.dart' show Link;
27 import '../universe/call_structure.dart' show CallStructure; 26 import '../universe/call_structure.dart' show CallStructure;
28 import '../universe/use.dart' show StaticUse; 27 import '../universe/use.dart' show StaticUse;
29 28 import '../util/util.dart' show Link;
30 import 'members.dart' show lookupInScope, ResolverVisitor; 29 import 'members.dart' show lookupInScope, ResolverVisitor;
31 import 'registry.dart' show ResolutionRegistry; 30 import 'registry.dart' show ResolutionRegistry;
32 import 'resolution_common.dart' show CommonResolverVisitor; 31 import 'resolution_common.dart' show CommonResolverVisitor;
33 import 'resolution_result.dart'; 32 import 'resolution_result.dart';
34 import 'scope.dart' show Scope, ExtensionScope; 33 import 'scope.dart' show Scope, ExtensionScope;
35 34
36 class InitializerResolver { 35 class InitializerResolver {
37 final ResolverVisitor visitor; 36 final ResolverVisitor visitor;
38 final ConstructorElementX constructor; 37 final ConstructorElementX constructor;
39 final FunctionExpression functionNode; 38 final FunctionExpression functionNode;
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 // constructors. 886 // constructors.
888 return null; 887 return null;
889 } 888 }
890 // TODO(johnniwinther): Use [Name] for lookup. 889 // TODO(johnniwinther): Use [Name] for lookup.
891 ConstructorElement constructor = cls.lookupConstructor(constructorName); 890 ConstructorElement constructor = cls.lookupConstructor(constructorName);
892 if (constructor != null) { 891 if (constructor != null) {
893 constructor = constructor.declaration; 892 constructor = constructor.declaration;
894 } 893 }
895 return constructor; 894 return constructor;
896 } 895 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/access_semantics.dart ('k') | pkg/compiler/lib/src/resolution/registry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698