Example usage for org.antlr.v4.runtime.misc IntervalSet of

List of usage examples for org.antlr.v4.runtime.misc IntervalSet of

Introduction

In this page you can find the example usage for org.antlr.v4.runtime.misc IntervalSet of.

Prototype


public static IntervalSet of(int a) 

Source Link

Document

Create a set with a single element, el.

Usage

From source file:org.tvl.goworks.editor.go.semantics.TreeCorrectionParserATNSimulator.java

License:Open Source License

public void suppressRule(int inputIndex, int ruleIndex) {
    IntervalSet set = suppressedRules.get(inputIndex);
    if (set != null) {
        set.add(ruleIndex);//w  w w  .  j  a va 2  s.c  om
        return;
    }

    suppressedRules.put(inputIndex, IntervalSet.of(ruleIndex));
}