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

Unified Diff: lib/transformations/treeshaker.dart

Issue 2439043002: Introduce Substitution class and Supertype class. (Closed)
Patch Set: Created 4 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 | « lib/text/ast_to_text.dart ('k') | lib/type_algebra.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/transformations/treeshaker.dart
diff --git a/lib/transformations/treeshaker.dart b/lib/transformations/treeshaker.dart
index 28153dc2dc61c13d37095ccbda287e3894b61a96..4eb69073b9560f42e824577de7a14eccb6029200 100644
--- a/lib/transformations/treeshaker.dart
+++ b/lib/transformations/treeshaker.dart
@@ -662,7 +662,7 @@ class _TreeShakingTransformer extends Transformer {
// The class is only a namespace for static members. Remove its
// hierarchy information. This is mandatory, since these references
// might otherwise become dangling.
- node.supertype = shaker.coreTypes.objectClass.rawType;
+ node.supertype = shaker.coreTypes.objectClass.asRawSupertype;
node.implementedTypes.clear();
node.typeParameters.clear();
// Mixin applications cannot have static members.
« no previous file with comments | « lib/text/ast_to_text.dart ('k') | lib/type_algebra.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698