OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.members; | 5 library dart2js.resolution.members; |
6 | 6 |
| 7 import '../common.dart'; |
7 import '../common/names.dart' show | 8 import '../common/names.dart' show |
8 Selectors; | 9 Selectors; |
9 import '../compiler.dart' show | 10 import '../compiler.dart' show |
10 Compiler; | 11 Compiler; |
11 import '../constants/constructors.dart' show | 12 import '../constants/constructors.dart' show |
12 RedirectingFactoryConstantConstructor; | 13 RedirectingFactoryConstantConstructor; |
13 import '../constants/expressions.dart'; | 14 import '../constants/expressions.dart'; |
14 import '../constants/values.dart'; | 15 import '../constants/values.dart'; |
15 import '../core_types.dart'; | 16 import '../core_types.dart'; |
16 import '../dart_types.dart'; | 17 import '../dart_types.dart'; |
17 import '../diagnostics/diagnostic_listener.dart' show | |
18 DiagnosticMessage, | |
19 DiagnosticReporter; | |
20 import '../diagnostics/invariant.dart' show | |
21 invariant; | |
22 import '../diagnostics/messages.dart' show | |
23 MessageKind; | |
24 import '../diagnostics/spannable.dart' show | |
25 Spannable; | |
26 import '../elements/elements.dart'; | 18 import '../elements/elements.dart'; |
27 import '../elements/modelx.dart' show | 19 import '../elements/modelx.dart' show |
28 ConstructorElementX, | 20 ConstructorElementX, |
29 ErroneousElementX, | 21 ErroneousElementX, |
30 FunctionElementX, | 22 FunctionElementX, |
31 JumpTargetX, | 23 JumpTargetX, |
32 LocalFunctionElementX, | 24 LocalFunctionElementX, |
33 LocalParameterElementX, | 25 LocalParameterElementX, |
34 LocalVariableElementX, | 26 LocalVariableElementX, |
35 MethodElementX, | 27 MethodElementX, |
(...skipping 4655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4691 } | 4683 } |
4692 return const NoneResult(); | 4684 return const NoneResult(); |
4693 } | 4685 } |
4694 } | 4686 } |
4695 | 4687 |
4696 /// Looks up [name] in [scope] and unwraps the result. | 4688 /// Looks up [name] in [scope] and unwraps the result. |
4697 Element lookupInScope(DiagnosticReporter reporter, Node node, | 4689 Element lookupInScope(DiagnosticReporter reporter, Node node, |
4698 Scope scope, String name) { | 4690 Scope scope, String name) { |
4699 return Elements.unwrap(scope.lookup(name), reporter, node); | 4691 return Elements.unwrap(scope.lookup(name), reporter, node); |
4700 } | 4692 } |
OLD | NEW |