Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ir.instructions;
 
 
 /*
  * Assign Argument passed into scope/method to a result variable
 */
public class ReceivePreReqdArgInstr extends ReceiveArgBase {
    public ReceivePreReqdArgInstr(Variable resultint argIndex) {
        super(.resultargIndex);
    }
    @Override
    public Instr cloneForInlinedScope(InlinerInfo ii) {
        if (ii.canMapArgsStatically()) {
            return new CopyInstr(ii.getRenamedVariable(), ii.getArg());
        } else {
            return new ReqdArgMultipleAsgnInstr(ii.getRenamedVariable(), ii.getArgs(), -1, -1, );
        }
    }
    @Override
    public Instr cloneForBlockCloning(InlinerInfo ii) {
        return new ReceivePreReqdArgInstr(ii.getRenamedVariable(), );
    }
    @Override
    public void visit(IRVisitor visitor) {
        visitor.ReceivePreReqdArgInstr(this);
    }
New to GrepCode? Check out our FAQ X