Exemplo n.º 1
0
        public override object VisitJudgeElseIfStatement([NotNull] JudgeElseIfStatementContext context)
        {
            var b   = (Result)Visit(context.expression());
            var obj = $"else if ( {b.text} ) {Wrap} {BlockLeft} {Wrap}";

            obj += ProcessFunctionSupport(context.functionSupportStatement());
            obj += $"{BlockRight} {Wrap}";
            return(obj);
        }
Exemplo n.º 2
0
        public override object VisitJudgeElseIfStatement(JudgeElseIfStatementContext context)
        {
            var b   = ((Result)Visit(context.expression()));
            var obj = (new System.Text.StringBuilder().Append("else if ( ").Append(b.text).Append(" ) ").Append(BlockLeft).Append(Wrap)).To_Str();

            Add_current_set();
            obj += ProcessFunctionSupport(context.functionSupportStatement());
            Delete_current_set();
            obj += BlockRight + Wrap;
            return(obj);
        }