Inheritance: Statement, IGotoSwitchCaseStatement
Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 /// <summary>
 /// Rewrites the children of the given goto switch case statement.
 /// </summary>
 public virtual void RewriteChildren(GotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     this.RewriteChildren((Statement)gotoSwitchCaseStatement);
 }
Esempio n. 5
0
 /// <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);
 }