public override Statement CloneStatementOnly() { BlockStatement clonedBody = body != null ? body.CloneStatementOnly() as BlockStatement : null; UsingStatement result = new UsingStatement(Expression.CloneExpressionOnly(), clonedBody, null); CopyParentAndLabel(result); return result; }
public override Statement Clone() { BlockStatement clonedBody = body != null ? body.Clone() as BlockStatement : null; UsingStatement result = new UsingStatement(Expression.Clone(), clonedBody, mappedFinallyInstructions); CopyParentAndLabel(result); return result; }
public override Statement CloneStatementOnly() { BlockStatement clonedBody = body != null?body.CloneStatementOnly() as BlockStatement : null; UsingStatement result = new UsingStatement(Expression.CloneExpressionOnly(), clonedBody, null); CopyParentAndLabel(result); return(result); }
public override Statement Clone() { BlockStatement clonedBody = body != null?body.Clone() as BlockStatement : null; UsingStatement result = new UsingStatement(Expression.Clone(), clonedBody, mappedFinallyInstructions); CopyParentAndLabel(result); return(result); }
public override Statement CloneStatementOnly() { if (this.body != null) { stackVariable5 = this.body.CloneStatementOnly() as BlockStatement; } else { stackVariable5 = null; } V_0 = stackVariable5; V_1 = new UsingStatement(this.get_Expression().CloneExpressionOnly(), V_0, null); this.CopyParentAndLabel(V_1); return(V_1); }
public override Statement Clone() { if (this.body != null) { stackVariable5 = this.body.Clone() as BlockStatement; } else { stackVariable5 = null; } V_0 = stackVariable5; V_1 = new UsingStatement(this.get_Expression().Clone(), V_0, this.mappedFinallyInstructions); this.CopyParentAndLabel(V_1); return(V_1); }
public override void VisitUsingStatement(UsingStatement node) { WriteKeyword(KeyWordWriter.Using); WriteSpace(); loopStates.Push(StatementState.Using); WriteSpecialBetweenParenthesis(node.Expression); loopStates.Pop(); WriteLine(); Visit(node.Body); WriteSpecialEndBlock(KeyWordWriter.Using); }
public virtual void VisitUsingStatement(UsingStatement node) { Visit(node.Expression); Visit(node.Body); }