Inheritance: Statement, IGotoSwitchCaseStatement
コード例 #1
0
ファイル: Copier.cs プロジェクト: riverar/devtools
 /// <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;
 }
コード例 #2
0
ファイル: Copier.cs プロジェクト: riverar/devtools
 /// <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);
 }
コード例 #3
0
ファイル: Mutator.cs プロジェクト: riverar/devtools
 /// <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;
 }
コード例 #4
0
ファイル: Mutator.cs プロジェクト: riverar/devtools
 /// <summary>
 /// Rewrites the children of the given goto switch case statement.
 /// </summary>
 public virtual void RewriteChildren(GotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     this.RewriteChildren((Statement)gotoSwitchCaseStatement);
 }
コード例 #5
0
ファイル: Mutator.cs プロジェクト: riverar/devtools
 /// <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);
 }