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

Unified Diff: pkg/compiler/lib/src/kernel/env.dart

Issue 2981673002: Register created closure class with the world. (Closed)
Patch Set: . Created 3 years, 5 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/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698