public virtual Node VisitComposition(Composition comp) { if (comp == null) return null; if (comp.GetType() == typeof(Composition)) { comp.Expression = (Expression)this.Visit(comp.Expression); return comp; } return this.VisitUnknownNodeType(comp); }
public override Node VisitComposition(Composition comp) { throw new NotImplementedException("Node type not yet supported"); }
public override Node VisitComposition(Composition comp) { if (comp == null) return null; return base.VisitComposition((Composition)comp.Clone()); }
public EventingVisitor(Action<Composition> visitComposition) { VisitedComposition += visitComposition; } public event Action<Composition> VisitedComposition; public override Node VisitComposition(Composition comp) { if (VisitedComposition != null) VisitedComposition(comp); return base.VisitComposition(comp); }