org.jruby.compiler.impl.ChainedChildBodyCompiler Maven / Gradle / Ivy
package org.jruby.compiler.impl;
import org.jruby.compiler.ASTInspector;
import org.jruby.parser.StaticScope;
import org.objectweb.asm.Label;
public class ChainedChildBodyCompiler extends ChildScopedBodyCompiler {
@Override
public void endBody() {
// return last value from execution
method.areturn();
Label end = new Label();
method.label(end);
method.end();
}
public ChainedChildBodyCompiler(StandardASMCompiler scriptCompiler, String methodName, String rubyName, ASTInspector inspector, StaticScope scope, ChildScopedBodyCompiler parent) {
super(scriptCompiler, methodName, rubyName, inspector, scope, parent.scopeIndex);
this.inNestedMethod = true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy