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 0286376b53d82f6797180edddca9889a74fcf509..a4b5f21e45c4726b0dad49ccec91b34c56de2165 100644 |
--- a/pkg/compiler/lib/src/common/resolution.dart |
+++ b/pkg/compiler/lib/src/common/resolution.dart |
@@ -182,8 +182,17 @@ class ListLiteralUse { |
} |
} |
+/// Interface for the accessing the front-end analysis. |
+abstract class Frontend { |
Siggi Cherem (dart-lang)
2016/04/15 15:42:14
I ponder about the name here.... "Frontend" makes
Johnni Winther
2016/04/18 08:05:43
'ResolutionProvider' is semantically the best but
|
+ /// Returns the `ResolvedAst` for the [element]. |
+ ResolvedAst getResolvedAst(Element element); |
+ |
+ /// Returns the [ResolutionImpact] for [element]. |
+ ResolutionImpact getResolutionImpact(Element element); |
+} |
+ |
// TODO(johnniwinther): Rename to `Resolver` or `ResolverContext`. |
-abstract class Resolution { |
+abstract class Resolution extends Frontend { |
Siggi Cherem (dart-lang)
2016/04/15 15:42:14
it doesn't' really matter, but for some reason thi
Johnni Winther
2016/04/18 08:05:43
Done.
|
Parsing get parsing; |
DiagnosticReporter get reporter; |
CoreTypes get coreTypes; |