/**
* Returns the last token of the construct represented by node.
*
* @param node A node
* @return Stop token
*/
public static Token getStopTokenForNode(ParseTree node) {
if (node instanceof TerminalNodeImpl) {
return ((TerminalNodeImpl) node).getSymbol();
} else {
return ((ParserRuleContext) node).getStop();
}
}
ParseTreeUtil.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:tailor
作者:
评论列表
文章目录