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

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

Issue 1932183003: Handle deserialized compilation of closures (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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.common.resolution; 5 library dart2js.common.resolution;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../compiler.dart' show Compiler; 8 import '../compiler.dart' show Compiler;
9 import '../constants/expressions.dart' show ConstantExpression; 9 import '../constants/expressions.dart' show ConstantExpression;
10 import '../core_types.dart' show CoreTypes; 10 import '../core_types.dart' show CoreTypes;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 181 }
182 182
183 String toString() { 183 String toString() {
184 return 'ListLiteralUse($type,isConstant:$isConstant,isEmpty:$isEmpty)'; 184 return 'ListLiteralUse($type,isConstant:$isConstant,isEmpty:$isEmpty)';
185 } 185 }
186 } 186 }
187 187
188 /// Interface for the accessing the front-end analysis. 188 /// Interface for the accessing the front-end analysis.
189 // TODO(johnniwinther): Find a better name for this. 189 // TODO(johnniwinther): Find a better name for this.
190 abstract class Frontend { 190 abstract class Frontend {
191 /// Returns `true` if [element] has a [ResolvedAst].
192 bool hasResolvedAst(Element element);
193
191 /// Returns the `ResolvedAst` for the [element]. 194 /// Returns the `ResolvedAst` for the [element].
192 ResolvedAst getResolvedAst(Element element); 195 ResolvedAst getResolvedAst(Element element);
193 196
194 /// Returns the [ResolutionImpact] for [element]. 197 /// Returns the [ResolutionImpact] for [element].
195 ResolutionImpact getResolutionImpact(Element element); 198 ResolutionImpact getResolutionImpact(Element element);
196 } 199 }
197 200
198 // TODO(johnniwinther): Rename to `Resolver` or `ResolverContext`. 201 // TODO(johnniwinther): Rename to `Resolver` or `ResolverContext`.
199 abstract class Resolution implements Frontend { 202 abstract class Resolution implements Frontend {
200 ParsingContext get parsingContext; 203 ParsingContext get parsingContext;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 if (cls.isPatch) { 305 if (cls.isPatch) {
303 patchParser.parsePatchClassNode(cls); 306 patchParser.parsePatchClassNode(cls);
304 } 307 }
305 }); 308 });
306 } 309 }
307 310
308 @override 311 @override
309 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( 312 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions(
310 canUseNative: backend.canLibraryUseNative(element.library)); 313 canUseNative: backend.canLibraryUseNative(element.library));
311 } 314 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698