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 static string Simple(PlSqlParser.LabelNameContext context) { return(Simple(context.id())); }