SyntaxError.java 文件源码

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

项目:jetbrains 作者:
public Token getOffendingSymbol() {
    if ( e instanceof NoViableAltException ) {
        // the error node in parse tree will have the start token as bad token
        // even if many lookahead tokens were matched before failing to find
        // a viable alt.
        return ((NoViableAltException) e).getStartToken();
    }
    return offendingSymbol;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号