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

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

Issue 2912083002: Add compile_from_dill test (Closed)
Patch Set: Updated cf. comments Created 3 years, 7 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/world.dart
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart
index 21088007e8b24d13c4d1a3d6a513babfe93b5746..980c8b732deea6bc806e704e3943ccb774abe6ed 100644
--- a/pkg/compiler/lib/src/world.dart
+++ b/pkg/compiler/lib/src/world.dart
@@ -1120,9 +1120,12 @@ abstract class ClosedWorldBase implements ClosedWorld, ClosedWorldRefiner {
return getMightBePassedToApply(element);
}
- // TODO(johnniwinther): Support [cls] as a [ClassEntity].
@override
- String dump([ClassElement cls]) {
+ String dump([ClassEntity cls]) {
+ if (cls is! ClassElement) {
+ // TODO(johnniwinther): Support [cls] as a [ClassEntity].
+ cls = null;
+ }
StringBuffer sb = new StringBuffer();
if (cls != null) {
sb.write("Classes in the closed world related to $cls:\n");
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart ('k') | tests/compiler/dart2js/equivalence/check_functions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698