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

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

Issue 2862163003: Move resolution/operators.dart to elements/operators.dart (Closed)
Patch Set: Created 3 years, 7 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) 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 'package:front_end/src/fasta/scanner.dart' show isUserDefinableOperator;
8
7 import '../common.dart'; 9 import '../common.dart';
8 import '../common/names.dart' show Selectors; 10 import '../common/names.dart' show Selectors;
9 import '../common/resolution.dart' show Resolution; 11 import '../common/resolution.dart' show Resolution;
10 import '../compile_time_constants.dart'; 12 import '../compile_time_constants.dart';
11 import '../constants/constructors.dart' 13 import '../constants/constructors.dart'
12 show RedirectingFactoryConstantConstructor; 14 show RedirectingFactoryConstantConstructor;
13 import '../constants/expressions.dart'; 15 import '../constants/expressions.dart';
14 import '../constants/values.dart'; 16 import '../constants/values.dart';
15 import '../common_elements.dart'; 17 import '../common_elements.dart';
16 import '../elements/resolution_types.dart';
17 import '../elements/elements.dart'; 18 import '../elements/elements.dart';
18 import '../elements/modelx.dart' 19 import '../elements/modelx.dart'
19 show 20 show
20 ConstructorElementX, 21 ConstructorElementX,
21 ErroneousElementX, 22 ErroneousElementX,
22 FunctionElementX, 23 FunctionElementX,
23 JumpTargetX, 24 JumpTargetX,
24 LocalFunctionElementX, 25 LocalFunctionElementX,
25 LocalParameterElementX, 26 LocalParameterElementX,
26 ParameterElementX, 27 ParameterElementX,
27 VariableElementX, 28 VariableElementX,
28 VariableList; 29 VariableList;
30 import '../elements/operators.dart';
31 import '../elements/resolution_types.dart';
29 import '../options.dart'; 32 import '../options.dart';
30 import 'package:front_end/src/fasta/scanner.dart' show isUserDefinableOperator;
31 import '../tree/tree.dart'; 33 import '../tree/tree.dart';
32 import '../universe/call_structure.dart' show CallStructure; 34 import '../universe/call_structure.dart' show CallStructure;
33 import '../universe/feature.dart' show Feature; 35 import '../universe/feature.dart' show Feature;
34 import '../universe/selector.dart' show Selector; 36 import '../universe/selector.dart' show Selector;
35 import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse; 37 import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse;
36 import '../util/util.dart' show Link; 38 import '../util/util.dart' show Link;
37 import 'access_semantics.dart'; 39 import 'access_semantics.dart';
38 import 'class_members.dart' show MembersCreator; 40 import 'class_members.dart' show MembersCreator;
39 import 'constructors.dart' 41 import 'constructors.dart'
40 show ConstructorResolver, ConstructorResult, ConstructorResultKind; 42 show ConstructorResolver, ConstructorResult, ConstructorResultKind;
41 import 'label_scope.dart' show StatementScope; 43 import 'label_scope.dart' show StatementScope;
42 import 'operators.dart';
43 import 'registry.dart' show ResolutionRegistry; 44 import 'registry.dart' show ResolutionRegistry;
44 import 'resolution.dart' show ResolverTask; 45 import 'resolution.dart' show ResolverTask;
45 import 'resolution_common.dart' show MappingVisitor; 46 import 'resolution_common.dart' show MappingVisitor;
46 import 'resolution_result.dart'; 47 import 'resolution_result.dart';
47 import 'scope.dart' show BlockScope, MethodScope, Scope; 48 import 'scope.dart' show BlockScope, MethodScope, Scope;
48 import 'send_structure.dart'; 49 import 'send_structure.dart';
49 import 'signatures.dart' show SignatureResolver; 50 import 'signatures.dart' show SignatureResolver;
50 import 'variables.dart' show VariableDefinitionsVisitor; 51 import 'variables.dart' show VariableDefinitionsVisitor;
51 52
52 /// The state of constants in resolutions. 53 /// The state of constants in resolutions.
(...skipping 4747 matching lines...) Expand 10 before | Expand all | Expand 10 after
4800 } 4801 }
4801 return const NoneResult(); 4802 return const NoneResult();
4802 } 4803 }
4803 } 4804 }
4804 4805
4805 /// Looks up [name] in [scope] and unwraps the result. 4806 /// Looks up [name] in [scope] and unwraps the result.
4806 Element lookupInScope( 4807 Element lookupInScope(
4807 DiagnosticReporter reporter, Node node, Scope scope, String name) { 4808 DiagnosticReporter reporter, Node node, Scope scope, String name) {
4808 return Elements.unwrap(scope.lookup(name), reporter, node); 4809 return Elements.unwrap(scope.lookup(name), reporter, node);
4809 } 4810 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/unresolved.dart ('k') | pkg/compiler/lib/src/resolution/operators.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698