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

Unified Diff: pkg/compiler/lib/src/common/resolution.dart

Issue 1892093003: Support deserialized compilation of the empty program. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
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..998c59bd1636d403fde70d3bbb685ba3bdd86f4e 100644
--- a/pkg/compiler/lib/src/common/resolution.dart
+++ b/pkg/compiler/lib/src/common/resolution.dart
@@ -182,8 +182,18 @@ class ListLiteralUse {
}
}
+/// Interface for the accessing the front-end analysis.
+// TODO(johnniwinther): Find a better name for this.
+abstract class Frontend {
+ /// 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 implements Frontend {
Parsing get parsing;
DiagnosticReporter get reporter;
CoreTypes get coreTypes;

Powered by Google App Engine
This is Rietveld 408576698