예제 #1
0
        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));
        }
예제 #2
0
 public static string Simple(PlSqlParser.LabelNameContext context)
 {
     return(Simple(context.id()));
 }