@Override
public void enterFunctionCallArgument(SwiftParser.FunctionCallArgumentContext ctx) {
if (ctx.functionCallIdentifier() != null) {
Token colon = ((TerminalNodeImpl) ctx.getChild(1)).getSymbol();
Token left = ctx.functionCallIdentifier().getStop();
if (ctx.expression() == null && ctx.operator() == null) {
verifier.verifyPunctuationLeftAssociation(left, colon, Messages.COLON);
return;
}
ParserRuleContext rightCtx = ctx.expression() == null ? ctx.operator() : ctx.expression();
Token right = rightCtx.getStart();
verifyColonLeftAssociation(left, right, colon);
}
}
ColonWhitespaceListener.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:tailor
作者:
评论列表
文章目录