| Index: pkg/compiler/lib/src/common/resolution.dart
|
| diff --git a/pkg/compiler/lib/src/common/resolution.dart b/pkg/compiler/lib/src/common/resolution.dart
|
| index 727f3aa8632f19128a7d4b16302b1c02ff4dd192..e422ef819b0af49abe6f90f67e3ef69cd32d453d 100644
|
| --- a/pkg/compiler/lib/src/common/resolution.dart
|
| +++ b/pkg/compiler/lib/src/common/resolution.dart
|
| @@ -186,8 +186,21 @@ abstract class Resolution {
|
| DartType resolveTypeAnnotation(Element element, TypeAnnotation node);
|
|
|
| bool hasBeenResolved(Element element);
|
| +
|
| + /// Returns the precomputed [WorldImpact] for [element].
|
| WorldImpact getWorldImpact(Element element);
|
| +
|
| + /// Computes the [WorldImpact] for [element].
|
| WorldImpact computeWorldImpact(Element element);
|
| +
|
| + /// Removes the [WorldImpact] for [element] from the resolution cache. Later
|
| + /// calls to [getWorldImpact] or [computeWorldImpact] returns an empty impact.
|
| + void uncacheWorldImpact(Element element);
|
| +
|
| + /// Removes the [WorldImpact]s for all [Element]s in the resolution cache. ,
|
| + /// Later calls to [getWorldImpact] or [computeWorldImpact] returns an empty
|
| + /// impact.
|
| + void emptyCache();
|
| }
|
|
|
| // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`.
|
|
|