Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ast;
 
 import org.jruby.Ruby;
public class Match2CaptureNode extends Match2Node {
    // Allocated locals that the regexp will assign after performing a match
    private int[] scopeOffsets;
    public Match2CaptureNode(ISourcePosition positionNode receiverNodeNode valueNode,
            int[] scopeOffsets) {
        super(positionreceiverNodevalueNode);
        this. = scopeOffsets;
    }
    public int[] getScopeOffsets() {
        return ;
    }
    @Override
    public IRubyObject interpret(Ruby runtimeThreadContext contextIRubyObject selfBlock aBlock) {
        IRubyObject result = super.interpret(runtimecontextselfaBlock);
        DynamicScope scope = context.getCurrentScope();
        RuntimeHelpers.updateScopeWithCaptures(contextscoperesult);
        return result;
    }
New to GrepCode? Check out our FAQ X