| 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.dart'; |
| 8 import '../common/names.dart' show Selectors; | 8 import '../common/names.dart' show Selectors; |
| 9 import '../common/resolution.dart' show Feature, Resolution; | 9 import '../common/resolution.dart' show Resolution; |
| 10 import '../compile_time_constants.dart'; | 10 import '../compile_time_constants.dart'; |
| 11 import '../constants/constructors.dart' | 11 import '../constants/constructors.dart' |
| 12 show RedirectingFactoryConstantConstructor; | 12 show RedirectingFactoryConstantConstructor; |
| 13 import '../constants/expressions.dart'; | 13 import '../constants/expressions.dart'; |
| 14 import '../constants/values.dart'; | 14 import '../constants/values.dart'; |
| 15 import '../core_types.dart'; | 15 import '../core_types.dart'; |
| 16 import '../dart_types.dart'; | 16 import '../dart_types.dart'; |
| 17 import '../elements/elements.dart'; | 17 import '../elements/elements.dart'; |
| 18 import '../elements/modelx.dart' | 18 import '../elements/modelx.dart' |
| 19 show | 19 show |
| 20 ConstructorElementX, | 20 ConstructorElementX, |
| 21 ErroneousElementX, | 21 ErroneousElementX, |
| 22 FunctionElementX, | 22 FunctionElementX, |
| 23 JumpTargetX, | 23 JumpTargetX, |
| 24 LocalFunctionElementX, | 24 LocalFunctionElementX, |
| 25 LocalParameterElementX, | 25 LocalParameterElementX, |
| 26 ParameterElementX, | 26 ParameterElementX, |
| 27 VariableElementX, | 27 VariableElementX, |
| 28 VariableList; | 28 VariableList; |
| 29 import '../options.dart'; | 29 import '../options.dart'; |
| 30 import '../tokens/token.dart' show isUserDefinableOperator; | 30 import '../tokens/token.dart' show isUserDefinableOperator; |
| 31 import '../tree/tree.dart'; | 31 import '../tree/tree.dart'; |
| 32 import '../universe/call_structure.dart' show CallStructure; | 32 import '../universe/call_structure.dart' show CallStructure; |
| 33 import '../universe/feature.dart' show Feature; |
| 33 import '../universe/selector.dart' show Selector; | 34 import '../universe/selector.dart' show Selector; |
| 34 import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse; | 35 import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse; |
| 35 import '../util/util.dart' show Link; | 36 import '../util/util.dart' show Link; |
| 36 import 'access_semantics.dart'; | 37 import 'access_semantics.dart'; |
| 37 import 'class_members.dart' show MembersCreator; | 38 import 'class_members.dart' show MembersCreator; |
| 38 import 'constructors.dart' | 39 import 'constructors.dart' |
| 39 show ConstructorResolver, ConstructorResult, ConstructorResultKind; | 40 show ConstructorResolver, ConstructorResult, ConstructorResultKind; |
| 40 import 'label_scope.dart' show StatementScope; | 41 import 'label_scope.dart' show StatementScope; |
| 41 import 'operators.dart'; | 42 import 'operators.dart'; |
| 42 import 'registry.dart' show ResolutionRegistry; | 43 import 'registry.dart' show ResolutionRegistry; |
| (...skipping 4675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4718 } | 4719 } |
| 4719 return const NoneResult(); | 4720 return const NoneResult(); |
| 4720 } | 4721 } |
| 4721 } | 4722 } |
| 4722 | 4723 |
| 4723 /// Looks up [name] in [scope] and unwraps the result. | 4724 /// Looks up [name] in [scope] and unwraps the result. |
| 4724 Element lookupInScope( | 4725 Element lookupInScope( |
| 4725 DiagnosticReporter reporter, Node node, Scope scope, String name) { | 4726 DiagnosticReporter reporter, Node node, Scope scope, String name) { |
| 4726 return Elements.unwrap(scope.lookup(name), reporter, node); | 4727 return Elements.unwrap(scope.lookup(name), reporter, node); |
| 4727 } | 4728 } |
| OLD | NEW |