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

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: 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..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;

Powered by Google App Engine
This is Rietveld 408576698