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

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

Issue 2488353004: Remove Compiler access from ResolutionEnqueuer (Closed)
Patch Set: Updated cf. comments. Created 4 years, 1 month 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
« no previous file with comments | « pkg/compiler/lib/src/common/backend_api.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 /// Returns `true` if [element] has been resolved. 152 /// Returns `true` if [element] has been resolved.
153 // TODO(johnniwinther): Normalize semantics between normal and deserialized 153 // TODO(johnniwinther): Normalize semantics between normal and deserialized
154 // elements; deserialized elements are always resolved but the method will 154 // elements; deserialized elements are always resolved but the method will
155 // return `false`. 155 // return `false`.
156 bool hasBeenResolved(Element element); 156 bool hasBeenResolved(Element element);
157 157
158 /// Resolve [element] if it has not already been resolved. 158 /// Resolve [element] if it has not already been resolved.
159 void ensureResolved(Element element); 159 void ensureResolved(Element element);
160 160
161 /// Ensure the resolution of all members of [element].
162 void ensureClassMembers(ClassElement element);
163
161 /// Registers that [element] has a compile time error. 164 /// Registers that [element] has a compile time error.
162 /// 165 ///
163 /// The error itself is given in [message]. 166 /// The error itself is given in [message].
164 void registerCompileTimeError(Element element, DiagnosticMessage message); 167 void registerCompileTimeError(Element element, DiagnosticMessage message);
165 168
166 ResolutionWorkItem createWorkItem(Element element); 169 ResolutionWorkItem createWorkItem(Element element);
167 170
168 /// Returns `true` if [element] as a fully computed [ResolvedAst]. 171 /// Returns `true` if [element] as a fully computed [ResolvedAst].
169 bool hasResolvedAst(ExecutableElement element); 172 bool hasResolvedAst(ExecutableElement element);
170 173
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 if (cls.isPatch) { 253 if (cls.isPatch) {
251 patchParser.parsePatchClassNode(cls); 254 patchParser.parsePatchClassNode(cls);
252 } 255 }
253 }); 256 });
254 } 257 }
255 258
256 @override 259 @override
257 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( 260 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions(
258 canUseNative: backend.canLibraryUseNative(element.library)); 261 canUseNative: backend.canLibraryUseNative(element.library));
259 } 262 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/backend_api.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698