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 b55e195814ddd4657051eea50448523ed11d7e25..42f961730bac1ff5604a0e4b2590fa2d642e1ff5 100644 |
--- a/pkg/compiler/lib/src/common/resolution.dart |
+++ b/pkg/compiler/lib/src/common/resolution.dart |
@@ -20,6 +20,7 @@ import '../elements/elements.dart' |
LocalFunctionElement, |
MetadataAnnotation, |
MethodElement, |
+ ResolvedAst, |
TypedefElement, |
TypeVariableElement; |
import '../enqueue.dart' show ResolutionEnqueuer; |
@@ -207,6 +208,12 @@ abstract class Resolution { |
ResolutionWorkItem createWorkItem( |
Element element, ItemCompilationContext compilationContext); |
+ /// Returns `true` if [element] as a fully computed [ResolvedAst]. |
+ bool hasResolvedAst(Element element); |
+ |
+ /// Returns the `ResolvedAst` for the [element]. |
+ ResolvedAst getResolvedAst(Element element); |
+ |
/// Returns `true` if the [ResolutionImpact] for [element] is cached. |
bool hasResolutionImpact(Element element); |