public static QsiExpressionNode VisitBindParameter(BindParameterContext context) { return(TreeHelper.Create <QsiColumnExpressionNode>(n => { n.Column.SetValue(new QsiBindingColumnNode { Id = context.id?.id?.Value ?? "?" }); CqlTree.PutContextSpan(n, context); })); }
public static QsiExpressionNode VisitBindParameter(BindParameterContext context) { return(TreeHelper.Create <QsiBindParameterExpressionNode>(n => { if (context.id != null) { n.Prefix = ":"; n.Name = context.id.GetText(); n.Type = QsiParameterType.Name; } else { n.Prefix = "?"; n.NoSuffix = true; n.Index = context.index; n.Type = QsiParameterType.Index; } CqlTree.PutContextSpan(n, context); })); }