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

Unified Diff: pkg/compiler/lib/src/js_model/elements.dart

Issue 2992863002: Support forEachClassMember on closure classes (Closed)
Patch Set: Updated cf. comments Created 3 years, 4 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/js_model/closure.dart ('k') | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_model/elements.dart
diff --git a/pkg/compiler/lib/src/js_model/elements.dart b/pkg/compiler/lib/src/js_model/elements.dart
index 02cde0f2ee9c35ffbdc1f1d2672e05273ea21d9f..ebab4220809959a192a55edeafff0574bde3422b 100644
--- a/pkg/compiler/lib/src/js_model/elements.dart
+++ b/pkg/compiler/lib/src/js_model/elements.dart
@@ -4,7 +4,7 @@
library dart2js.js_model.elements;
-import '../common/names.dart' show Identifiers;
+import '../common/names.dart' show Names;
import '../elements/entities.dart';
import '../elements/names.dart';
import '../elements/types.dart';
@@ -520,16 +520,12 @@ class JField extends JMember implements FieldEntity, IndexedField {
String get _kind => 'field';
}
-class JClosureCallMethod extends JFunction {
+class JClosureCallMethod extends JMethod {
JClosureCallMethod(int memberIndex, KernelClosureClass containingClass,
- JFunction origClosureFunctionNode)
- : super(
- memberIndex,
- containingClass.library,
- containingClass,
- new Name(Identifiers.call, containingClass.library),
- origClosureFunctionNode.parameterStructure,
- origClosureFunctionNode.asyncMarker);
+ ParameterStructure parameterStructure, AsyncMarker asyncMarker)
+ : super(memberIndex, containingClass.library, containingClass, Names.call,
+ parameterStructure, asyncMarker,
+ isStatic: false, isExternal: false, isAbstract: false);
String get _kind => 'closure_call';
}
« no previous file with comments | « pkg/compiler/lib/src/js_model/closure.dart ('k') | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698