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.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 CoreClasses, CoreTypes; | 10 import '../core_types.dart' show CoreClasses, CoreTypes; |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 /// Returns the [ResolvedAst] for [element], computing it if necessary. | 251 /// Returns the [ResolvedAst] for [element], computing it if necessary. |
252 ResolvedAst computeResolvedAst(Element element); | 252 ResolvedAst computeResolvedAst(Element element); |
253 | 253 |
254 /// Returns the precomputed [WorldImpact] for [element]. | 254 /// Returns the precomputed [WorldImpact] for [element]. |
255 WorldImpact getWorldImpact(Element element); | 255 WorldImpact getWorldImpact(Element element); |
256 | 256 |
257 /// Computes the [WorldImpact] for [element]. | 257 /// Computes the [WorldImpact] for [element]. |
258 WorldImpact computeWorldImpact(Element element); | 258 WorldImpact computeWorldImpact(Element element); |
259 | 259 |
| 260 WorldImpact transformResolutionImpact( |
| 261 Element element, ResolutionImpact resolutionImpact); |
| 262 |
260 /// Removes the [WorldImpact] for [element] from the resolution cache. Later | 263 /// Removes the [WorldImpact] for [element] from the resolution cache. Later |
261 /// calls to [getWorldImpact] or [computeWorldImpact] returns an empty impact. | 264 /// calls to [getWorldImpact] or [computeWorldImpact] returns an empty impact. |
262 void uncacheWorldImpact(Element element); | 265 void uncacheWorldImpact(Element element); |
263 | 266 |
264 /// Removes the [WorldImpact]s for all [Element]s in the resolution cache. , | 267 /// Removes the [WorldImpact]s for all [Element]s in the resolution cache. , |
265 /// Later calls to [getWorldImpact] or [computeWorldImpact] returns an empty | 268 /// Later calls to [getWorldImpact] or [computeWorldImpact] returns an empty |
266 /// impact. | 269 /// impact. |
267 void emptyCache(); | 270 void emptyCache(); |
268 | 271 |
269 void forgetElement(Element element); | 272 void forgetElement(Element element); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 if (cls.isPatch) { | 317 if (cls.isPatch) { |
315 patchParser.parsePatchClassNode(cls); | 318 patchParser.parsePatchClassNode(cls); |
316 } | 319 } |
317 }); | 320 }); |
318 } | 321 } |
319 | 322 |
320 @override | 323 @override |
321 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( | 324 ScannerOptions getScannerOptionsFor(Element element) => new ScannerOptions( |
322 canUseNative: backend.canLibraryUseNative(element.library)); | 325 canUseNative: backend.canLibraryUseNative(element.library)); |
323 } | 326 } |
OLD | NEW |