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

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

Issue 1856713002: Test ResolutionImpact equivalence. (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
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1f099153074fc537ac488a2fd8b831e85d540645..95b71482ec756505f538e7da53b1f3280d10d80a 100644
--- a/pkg/compiler/lib/src/common/resolution.dart
+++ b/pkg/compiler/lib/src/common/resolution.dart
@@ -145,6 +145,10 @@ class MapLiteralUse {
isConstant == other.isConstant &&
isEmpty == other.isEmpty;
}
+
+ String toString() {
+ return 'MapLiteralUse($type,isConstant:$isConstant,isEmpty:$isEmpty)';
+ }
}
/// A use of a list literal seen during resolution.
@@ -170,6 +174,10 @@ class ListLiteralUse {
isConstant == other.isConstant &&
isEmpty == other.isEmpty;
}
+
+ String toString() {
+ return 'ListLiteralUse($type,isConstant:$isConstant,isEmpty:$isEmpty)';
+ }
}
// TODO(johnniwinther): Rename to `Resolver` or `ResolverContext`.
@@ -178,6 +186,8 @@ abstract class Resolution {
DiagnosticReporter get reporter;
CoreTypes get coreTypes;
+ bool retainCaches;
+
void resolveTypedef(TypedefElement typdef);
void resolveClass(ClassElement cls);
void registerClass(ClassElement cls);
@@ -190,6 +200,9 @@ abstract class Resolution {
ResolutionWorkItem createWorkItem(
Element element, ItemCompilationContext compilationContext);
+ /// Returns `true` if the [ResolutionImpact] for [element] is cached.
+ bool hasResolutionImpact(Element element);
+
/// Returns the precomputed [ResolutionImpact] for [element].
ResolutionImpact getResolutionImpact(Element element);
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698