public override IStatement Visit(IEventSubscriptionStatement stmt, int context) { return(new EventSubscriptionStatement { Reference = _ref.Anonymize(stmt.Reference), Operation = stmt.Operation, Expression = Anonymize(stmt.Expression) }); }
public void Visit(IEventSubscriptionStatement stmt, SSTPrintingContext c) { c.Indentation(); stmt.Reference.Accept(this, c); c.Space(); if (stmt.Operation == EventSubscriptionOperation.Add) { c.Text("+="); } else if (stmt.Operation == EventSubscriptionOperation.Remove) { c.Text("-="); } c.Space(); stmt.Expression.Accept(this, c); c.Text(";"); }
public virtual void Visit(IEventSubscriptionStatement stmt, TContext context) { stmt.Reference.Accept(this, context); stmt.Expression.Accept(this, context); }
public int Visit(IEventSubscriptionStatement stmt, int context) { return(1); }
public override void Visit(IEventSubscriptionStatement stmt, RelativeEditLocation loc) { loc.Size++; stmt.Expression.Accept(this, loc); }