private static LoopControlStatement Build(LoopControlType controlType, PlSqlParser.LabelNameContext labelContext, PlSqlParser.ConditionContext conditionContext) { string label = null; SqlExpression whenExpression = null; if (labelContext != null) { label = Name.Simple(labelContext); } if (conditionContext != null) { whenExpression = Expression.Build(conditionContext.expression()); } return(new LoopControlStatement(controlType, label, whenExpression)); }
public override SqlExpression VisitCondition(PlSqlParser.ConditionContext context) { return(Visit(context.expression())); }