public override Statement Clone() { CaseGotoStatement result = new CaseGotoStatement(this, this.UnderlyingSameMethodInstructions); CopyParentAndLabel(result); return(result); }
public override void VisitCaseGotoStatement(CaseGotoStatement node) { VisitGotoStatement(node); }
public override Statement CloneStatementOnly() { CaseGotoStatement result = new CaseGotoStatement(this, null); CopyParentAndLabel(result); return result; }
/// <summary> /// Copy-constructor for cloning purposes. /// </summary> /// <param name="toClone">The statement to clone.</param> private CaseGotoStatement(CaseGotoStatement toClone, IEnumerable <Instruction> instructions) : base(toClone.Label, instructions) { this.TargetedSwitchCase = toClone.TargetedSwitchCase; }
/// <summary> /// Copy-constructor for cloning purposes. /// </summary> /// <param name="toClone">The statement to clone.</param> private CaseGotoStatement(CaseGotoStatement toClone, IEnumerable<Instruction> instructions) : base(toClone.Label, instructions) { this.TargetedSwitchCase = toClone.TargetedSwitchCase; }
public override Statement Clone() { CaseGotoStatement result = new CaseGotoStatement(this, this.UnderlyingSameMethodInstructions); CopyParentAndLabel(result); return result; }
public override void VisitCaseGotoStatement(CaseGotoStatement node) { WriteKeyword(KeyWordWriter.GoTo); WriteSpace(); SwitchCase targetedCase = node.TargetedSwitchCase; if (targetedCase.CodeNodeType == CodeNodeType.ConditionCase) { WriteKeyword(KeyWordWriter.Case); WriteSpace(); Visit((targetedCase as ConditionCase).Condition); } else { WriteKeyword(KeyWordWriter.Default); } WriteEndOfStatement(); }
public virtual void VisitCaseGotoStatement(CaseGotoStatement node) { }
public override Statement CloneStatementOnly() { V_0 = new CaseGotoStatement(this, null); this.CopyParentAndLabel(V_0); return(V_0); }
public override Statement Clone() { V_0 = new CaseGotoStatement(this, this.get_UnderlyingSameMethodInstructions()); this.CopyParentAndLabel(V_0); return(V_0); }
private CaseGotoStatement(CaseGotoStatement toClone, IEnumerable <Instruction> instructions) { base(toClone.get_Label(), instructions); this.set_TargetedSwitchCase(toClone.get_TargetedSwitchCase()); return; }