Index: pkg/compiler/lib/src/kernel/env.dart |
diff --git a/pkg/compiler/lib/src/kernel/env.dart b/pkg/compiler/lib/src/kernel/env.dart |
index e47a85dae24f94b5223312615b4f6c95eb488b0a..2c31f77596a72cd20eaa76689ca41c6a5fa87658 100644 |
--- a/pkg/compiler/lib/src/kernel/env.dart |
+++ b/pkg/compiler/lib/src/kernel/env.dart |
@@ -161,6 +161,15 @@ class ClassEnv { |
: isUnnamedMixinApplication = |
cls.name.contains('+') || cls.name.contains('&'); |
+ // TODO(efortuna): This is gross because even though the closure class *has* |
+ // members, we're not populating this because they aren't ir.Member types. :-( |
+ ClassEnv.closureClass() |
+ : cls = null, |
+ isUnnamedMixinApplication = false, |
+ _constructorMap = const <String, ir.Member>{}, |
+ _memberMap = const <String, ir.Member>{}, |
+ _setterMap = const <String, ir.Member>{}; |
+ |
/// Copied from 'package:kernel/transformations/mixin_full_resolution.dart'. |
ir.Constructor _buildForwardingConstructor( |
CloneVisitor cloner, ir.Constructor superclassConstructor) { |