protected override void OnSetTarget(IJumpTarget value) { if (!(value is ISwitchCaseBlockStatement)) { throw new ArgumentException("value must be a switch case block statement", "value"); } base.OnSetTarget(value); }
protected override void OnSetTarget(IJumpTarget value) { if (!(value is ILabelStatement)) { throw new ArgumentException("value must be a label statement", "value"); } base.OnSetTarget(value); }
public override bool Visit(IJumpTarget statement, IStatement context) { _stack.Push(statement); try { return(base.Visit(statement, context)); } finally { _stack.Pop(); } }
public abstract IStatement Transform(IJumpTarget statement);
void IStatementVisitor.Visit(IJumpTarget statement) { this.Translate(statement); }
TransformationImpact IStatementVisitor <TransformationImpact> .Visit(IJumpTarget statement) { return(CalculateRefactorImpact(statement)); }
public TestLinkerResult Visit(IJumpTarget statement, ICompilationContext context) { throw new NotImplementedException(); }
public abstract TransformationImpact CalculateRefactorImpact(IJumpTarget statement);
public bool Visit(IJumpTarget statement, TContext context) { return(false); }
public abstract void Translate(IJumpTarget statement);
public TransformationKind Visit(IJumpTarget statement, ITransformationContext context) { throw new NotImplementedException(); }
protected virtual void OnSetTarget(IJumpTarget value) { this.target = value; }
public JumpStatement(IStatementParent parent, IJumpTarget target) : base(parent) { this.target = target; }