List of usage examples for org.antlr.v4.runtime TokenStream index
int index();
From source file:org.tvl.goworks.editor.go.semantics.TreeCorrectionParserATNSimulator.java
License:Open Source License
@Override public int adaptivePredict(TokenStream input, int decision, ParserRuleContext outerContext) { boolean ll1opt = optimize_ll1; try {/*from w w w .ja v a 2 s . c om*/ startIndex = input.index(); if (getSuppressedSet(startIndex).isNil()) { optimize_ll1 = false; } return super.adaptivePredict(input, decision, outerContext); } finally { optimize_ll1 = ll1opt; } }