All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.truffle.parser.ast.Match2CaptureParseNode Maven / Gradle / Ivy

The newest version!
package org.jruby.truffle.parser.ast;

import org.jruby.truffle.language.SourceIndexLength;

public class Match2CaptureParseNode extends Match2ParseNode {
    // Allocated locals that the regexp will assign after performing a match
    private int[] scopeOffsets;

    public Match2CaptureParseNode(SourceIndexLength position, ParseNode receiverNode, ParseNode valueNode,
                                  int[] scopeOffsets) {
        super(position, receiverNode, valueNode);

        this.scopeOffsets = scopeOffsets;
    }

    public int[] getScopeOffsets() {
        return scopeOffsets;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy