/** * @param input * token stream, is to be expected an {@link LazyTokenStream} */ InternalSemicolonInjectingParser(TokenStream input, N4JSGrammarAccess grammarAccess) { super(input, grammarAccess); Field f = null; try { f = AbstractInternalAntlrParser.class.getDeclaredField("currentError"); f.setAccessible(true); } catch (Exception e) { // ignore } this.reflectCurrentError = f; recoverySets = computeRecoverySets(); }