Java 类org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser 实例源码

项目:n4js    文件:InternalSemicolonInjectingParser.java   
/**
 * @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();
}