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

Unified Diff: pkg/compiler/lib/src/world.dart

Issue 1402913003: Avoid creating invalid TypeMask.nonNullExact (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/universe/class_set.dart ('k') | tests/language/super_mixin_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/world.dart
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart
index 6def323503301ab892825300e165b80e4d427528..b8c6387727c151e8066117c8813110ef35291e8a 100644
--- a/pkg/compiler/lib/src/world.dart
+++ b/pkg/compiler/lib/src/world.dart
@@ -129,7 +129,9 @@ abstract class ClassWorld {
bool get hasClosedWorldAssumption;
/// Returns a string representation of the closed world.
- String dump();
+ ///
+ /// If [cls] is provided, the dump will contain only classes related to [cls].
+ String dump([ClassElement cls]);
}
class World implements ClassWorld {
@@ -543,11 +545,15 @@ class World implements ClassWorld {
}
@override
- String dump() {
+ String dump([ClassElement cls]) {
StringBuffer sb = new StringBuffer();
- sb.write("Instantiated classes in the closed world:\n");
+ if (cls != null) {
+ sb.write("Classes in the closed world related to $cls:\n");
+ } else {
+ sb.write("Instantiated classes in the closed world:\n");
+ }
getClassHierarchyNode(compiler.objectClass)
- .printOn(sb, ' ', instantiatedOnly: true);
+ .printOn(sb, ' ', instantiatedOnly: cls == null, withRespectTo: cls);
return sb.toString();
}
« no previous file with comments | « pkg/compiler/lib/src/universe/class_set.dart ('k') | tests/language/super_mixin_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698