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

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

Introduction

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

Prototype

protected void add(Interval addition) 

Source Link

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);
        return;/* w w  w  .  ja  v  a2  s  .c om*/
    }

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