protected static void VisitList <T>(IList <T> list, Visitor visitor) where T : IXamlIlAstNode { for (var c = 0; c < list.Count; c++) { list[c] = (T)list[c].Visit(visitor); } }
public IXamlIlAstNode Visit(Visitor visitor) { var node = visitor(this); node.VisitChildren(visitor); return(node); }
public override void VisitChildren(Visitor visitor) { Type = (IXamlIlAstTypeReference)Type.Visit(visitor); VisitList(Arguments, visitor); VisitList(Children, visitor); }
public override void VisitChildren(Visitor visitor) { Property = (IXamlIlAstPropertyReference)Property.Visit(visitor); VisitList(Values, visitor); }
public override void VisitChildren(Visitor visitor) { VisitList(Values, visitor); }
public override void VisitChildren(Visitor visitor) { DeclaringType = (IXamlIlAstTypeReference)DeclaringType.Visit(visitor); TargetType = (IXamlIlAstTypeReference)TargetType.Visit(visitor); }
public override void VisitChildren(Visitor visitor) { Type = (IXamlIlAstTypeReference)Type.Visit(visitor); }
public virtual void VisitChildren(Visitor visitor) { }
public override void VisitChildren(Visitor visitor) => VisitList(GenericArguments, visitor);