script.addInvokerDescriptor(newMethodName, methodArity, scope, inspector.getCallConfig(), filename, line);
// emit method body
BodyCompiler methodCompiler = script.startMethod(name, newMethodName, args, scope, inspector, scopeIndex);
// callbacks to fill in method body
body.call(methodCompiler);
methodCompiler.endBody();
}