public virtual Expression VisitStackAlloc(StackAlloc alloc) { if (alloc == null) return null; alloc.ElementType = this.VisitTypeReference(alloc.ElementType); alloc.NumberOfElements = this.VisitExpression(alloc.NumberOfElements); return alloc; }
public EventingVisitor(Action<StackAlloc> visitStackAlloc) { VisitedStackAlloc += visitStackAlloc; } public event Action<StackAlloc> VisitedStackAlloc; public override Expression VisitStackAlloc(StackAlloc alloc) { if (VisitedStackAlloc != null) VisitedStackAlloc(alloc); return base.VisitStackAlloc(alloc); }