Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ir.operands;
 
public class WrappedIRClosure extends Operand {
    private final IRClosure closure;
    public WrappedIRClosure(IRClosure scope) {
        this. = scope;
    }
    
    @Override
    public void addUsedVariables(List<Variablel) {
        /* Nothing to o */
    }    
    public IRClosure getClosure() {
        return ;
    }
    @Override
    public boolean canCopyPropagate() {
        return true;
    }
    @Override
    public String toString() {
        return .toString();
    }
    @Override
    public Operand cloneForInlining(InlinerInfo ii) {
        return new WrappedIRClosure(.cloneForClonedInstr(ii));
    }
    @Override
    public Object retrieve(ThreadContext contextIRubyObject selfDynamicScope currDynScopeObject[] temp) {
        BlockBody body = .getBlockBody();
        Binding binding = context.currentBinding(selfcurrDynScope);
        return new Block(bodybinding);
    }
    @Override
    public void visit(IRVisitor visitor) {
        visitor.WrappedIRClosure(this);
    }
New to GrepCode? Check out our FAQ X