use of com.github.anba.es6draft.runtime.language.ClassOperations.InstanceMethod in project es6draft by anba.
the class ClassPropertyGenerator method methodDefinitions.
private OutlinedCall methodDefinitions(MethodDefinitionsMethod node, CodeVisitor mv) {
MethodTypeDescriptor methodDescriptor = MethodDefinitionsCodeVisitor.methodDescriptor(mv);
MethodCode method = codegen.method(mv, "mdef", methodDescriptor);
return outlined(new MethodDefinitionsCodeVisitor(node, method, mv), body -> {
Variable<OrdinaryConstructorFunction> function = body.getFunctionParameter();
Variable<OrdinaryObject> proto = body.getPrototypeParameter();
StoreToArray<Object> staticFields = this.staticFields.from(body.getStaticFieldsParameter());
StoreToArray<Object> instanceFields = this.instanceFields.from(body.getInstanceFieldsParameter());
StoreToArray<InstanceMethod> instanceMethods = this.instanceMethods.from(body.getInstanceMethodsParameter());
StoreToArray<Object> decorators = this.decorators.from(body.getDecoratorsParameter());
ClassPropertyEvaluation(codegen, classDefinition, node.getProperties(), function, proto, staticFields, instanceFields, instanceMethods, decorators, body);
return Completion.Normal;
});
}
Aggregations