ParsingUtils.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:intellij-plugin-v4 作者:
@Override
        public Token recoverInline(Parser recognizer) throws RecognitionException {
            int errIndex = recognizer.getInputStream().index();
            if ( firstErrorTokenIndex == -1 ) {
                firstErrorTokenIndex = errIndex; // latch
            }
//          System.err.println("recoverInline: error at " + errIndex);
            InputMismatchException e = new InputMismatchException(recognizer);
            TokenStream input = recognizer.getInputStream(); // seek EOF
            input.seek(input.size() - 1);
            throw e; // throw after seek so exception has bad token
        }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号