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

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

Issue 1416253002: Remove requiredTypes (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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/common/backend_api.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 a1ce0e1fb5f7b907006a8cfebaf183bbecef03a8..692ff19311c04078ff87e03655cf862aaff8a8be 100644
--- a/pkg/compiler/lib/src/common/resolution.dart
+++ b/pkg/compiler/lib/src/common/resolution.dart
@@ -185,9 +185,7 @@ class ListLiteralUse {
/// Mutable implementation of [WorldImpact] used to transform
/// [ResolutionImpact] to [WorldImpact].
-// TODO(johnniwinther): Remove [Registry] when dependency is tracked directly
-// on [WorldImpact].
-class TransformedWorldImpact extends WorldImpact {
+class TransformedWorldImpact implements WorldImpact {
final ResolutionImpact worldImpact;
Setlet<Element> _staticUses;
@@ -230,6 +228,9 @@ class TransformedWorldImpact extends WorldImpact {
@override
Iterable<DartType> get isChecks => worldImpact.isChecks;
+ @override
+ Iterable<DartType> get onCatchTypes => worldImpact.onCatchTypes;
+
_unsupported(String message) => throw new UnsupportedError(message);
void registerDynamicGetter(UniverseSelector selector) {
@@ -294,7 +295,7 @@ class TransformedWorldImpact extends WorldImpact {
String toString() {
StringBuffer sb = new StringBuffer();
sb.write('TransformedWorldImpact($worldImpact)');
- sb.write(super.toString());
+ WorldImpact.printOn(sb, this);
return sb.toString();
}
}
« no previous file with comments | « pkg/compiler/lib/src/common/backend_api.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698