/// <summary> /// Visits the specified goto switch case statement. /// </summary> /// <param name="gotoSwitchCaseStatement">The goto switch case statement.</param> /// <returns></returns> protected virtual IStatement DeepCopy(GotoSwitchCaseStatement gotoSwitchCaseStatement) { return gotoSwitchCaseStatement; }
/// <summary> /// Visits the specified goto switch case statement. /// </summary> /// <param name="gotoSwitchCaseStatement">The goto switch case statement.</param> public override void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement) { GotoSwitchCaseStatement mutableGotoSwitchCaseStatement = new GotoSwitchCaseStatement(gotoSwitchCaseStatement); this.resultStatement = this.myCodeCopier.DeepCopy(mutableGotoSwitchCaseStatement); }
/// <summary> /// Visits the specified goto switch case statement. /// </summary> /// <param name="gotoSwitchCaseStatement">The goto switch case statement.</param> /// <returns></returns> public virtual IStatement Visit(GotoSwitchCaseStatement gotoSwitchCaseStatement) { return gotoSwitchCaseStatement; }
/// <summary> /// Rewrites the children of the given goto switch case statement. /// </summary> public virtual void RewriteChildren(GotoSwitchCaseStatement gotoSwitchCaseStatement) { this.RewriteChildren((Statement)gotoSwitchCaseStatement); }
/// <summary> /// Visits the specified goto switch case statement. /// </summary> /// <param name="gotoSwitchCaseStatement">The goto switch case statement.</param> public override void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement) { GotoSwitchCaseStatement mutableGotoSwitchCaseStatement = gotoSwitchCaseStatement as GotoSwitchCaseStatement; if (alwaysMakeACopy || mutableGotoSwitchCaseStatement == null) mutableGotoSwitchCaseStatement = new GotoSwitchCaseStatement(gotoSwitchCaseStatement); this.resultStatement = this.myCodeMutator.Visit(mutableGotoSwitchCaseStatement); }