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

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

Issue 2595493002: Merge CoreTypes and CoreClasses into CommonElements. (Closed)
Patch Set: Updated cf. comment Created 4 years 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.common.resolution; 5 library dart2js.common.resolution;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../compile_time_constants.dart'; 8 import '../compile_time_constants.dart';
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../constants/expressions.dart' show ConstantExpression; 10 import '../constants/expressions.dart' show ConstantExpression;
11 import '../constants/values.dart' show ConstantValue; 11 import '../constants/values.dart' show ConstantValue;
12 import '../core_types.dart' show CoreClasses, CoreTypes, CommonElements; 12 import '../core_types.dart' show CommonElements;
13 import '../dart_types.dart' show DartType, Types; 13 import '../dart_types.dart' show DartType, Types;
14 import '../elements/elements.dart' 14 import '../elements/elements.dart'
15 show 15 show
16 AstElement, 16 AstElement,
17 ClassElement, 17 ClassElement,
18 ConstructorElement,
19 Element, 18 Element,
20 ExecutableElement, 19 ExecutableElement,
21 FunctionElement, 20 FunctionElement,
22 FunctionSignature, 21 FunctionSignature,
23 LibraryElement, 22 LibraryElement,
24 MetadataAnnotation, 23 MetadataAnnotation,
25 MethodElement, 24 MethodElement,
26 ResolvedAst, 25 ResolvedAst,
27 TypedefElement; 26 TypedefElement;
28 import '../enqueue.dart' show ResolutionEnqueuer; 27 import '../enqueue.dart' show ResolutionEnqueuer;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 bool isForeign(Element element) => false; 119 bool isForeign(Element element) => false;
121 120
122 /// Returns `true` if this target supports async/await. 121 /// Returns `true` if this target supports async/await.
123 bool get supportsAsyncAwait => true; 122 bool get supportsAsyncAwait => true;
124 } 123 }
125 124
126 // TODO(johnniwinther): Rename to `Resolver` or `ResolverContext`. 125 // TODO(johnniwinther): Rename to `Resolver` or `ResolverContext`.
127 abstract class Resolution implements Frontend { 126 abstract class Resolution implements Frontend {
128 ParsingContext get parsingContext; 127 ParsingContext get parsingContext;
129 DiagnosticReporter get reporter; 128 DiagnosticReporter get reporter;
130 CoreClasses get coreClasses;
131 CoreTypes get coreTypes;
132 CommonElements get commonElements; 129 CommonElements get commonElements;
133 Types get types; 130 Types get types;
134 Target get target; 131 Target get target;
135 ResolverTask get resolver; 132 ResolverTask get resolver;
136 ResolutionEnqueuer get enqueuer; 133 ResolutionEnqueuer get enqueuer;
137 CompilerOptions get options; 134 CompilerOptions get options;
138 IdGenerator get idGenerator; 135 IdGenerator get idGenerator;
139 ConstantEnvironment get constants; 136 ConstantEnvironment get constants;
140 MirrorUsageAnalyzerTask get mirrorUsageAnalyzerTask; 137 MirrorUsageAnalyzerTask get mirrorUsageAnalyzerTask;
141 138
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 if (cls.isPatch) { 249 if (cls.isPatch) {
253 patchParser.parsePatchClassNode(cls); 250 patchParser.parsePatchClassNode(cls);
254 } 251 }
255 }); 252 });
256 } 253 }
257 254
258 @override 255 @override
259 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( 256 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions(
260 canUseNative: backend.canLibraryUseNative(element.library)); 257 canUseNative: backend.canLibraryUseNative(element.library));
261 } 258 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/backend_api.dart ('k') | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698