public override Statement CloneStatementOnly()
 {
     BlockStatement clonedBody = Body != null ? Body.CloneStatementOnly() as BlockStatement : null;
     ConditionCase result = new ConditionCase(Condition.CloneExpressionOnly(), clonedBody);
     CopyParentAndLabel(result);
     return result;
 }
        public override Statement CloneStatementOnly()
        {
            BlockStatement clonedBody = Body != null?Body.CloneStatementOnly() as BlockStatement : null;

            ConditionCase result = new ConditionCase(Condition.CloneExpressionOnly(), clonedBody);

            CopyParentAndLabel(result);
            return(result);
        }
Beispiel #3
0
 public override Statement CloneStatementOnly()
 {
     if (this.get_Body() != null)
     {
         stackVariable5 = this.get_Body().CloneStatementOnly() as BlockStatement;
     }
     else
     {
         stackVariable5 = null;
     }
     V_1 = new ConditionCase(this.get_Condition().CloneExpressionOnly(), stackVariable5);
     this.CopyParentAndLabel(V_1);
     return(V_1);
 }
        public override void VisitConditionCase(ConditionCase node)
        {
            WriteKeyword(KeyWordWriter.Case);
            WriteSpace();
            Visit(node.Condition);

            //if (node.Body == null)
            //{
            WriteLine();
            // }
            Visit(node.Body);

        }
        public override void VisitConditionCase(ConditionCase node)
        {
            WriteKeyword(KeyWordWriter.Case);
            WriteSpace();
            Visit(node.Condition);
            WriteToken(":");

            if (node.Body != null)
            {
                WriteLine();
                Visit(node.Body);
            }
        }
 public virtual void VisitConditionCase(ConditionCase node)
 {
     Visit(node.Condition);
     Visit(node.Body);
 }