List of usage examples for org.antlr.v4.runtime.misc IntervalSet add
protected void add(Interval addition)
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)); }