Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
        public IXamlIlAstNode Visit(Visitor visitor)
        {
            var node = visitor(this);

            node.VisitChildren(visitor);
            return(node);
        }
Beispiel #3
0
 public override void VisitChildren(Visitor visitor)
 {
     Type = (IXamlIlAstTypeReference)Type.Visit(visitor);
     VisitList(Arguments, visitor);
     VisitList(Children, visitor);
 }
Beispiel #4
0
 public override void VisitChildren(Visitor visitor)
 {
     Property = (IXamlIlAstPropertyReference)Property.Visit(visitor);
     VisitList(Values, visitor);
 }
Beispiel #5
0
 public override void VisitChildren(Visitor visitor)
 {
     VisitList(Values, visitor);
 }
Beispiel #6
0
 public override void VisitChildren(Visitor visitor)
 {
     DeclaringType = (IXamlIlAstTypeReference)DeclaringType.Visit(visitor);
     TargetType    = (IXamlIlAstTypeReference)TargetType.Visit(visitor);
 }
Beispiel #7
0
 public override void VisitChildren(Visitor visitor)
 {
     Type = (IXamlIlAstTypeReference)Type.Visit(visitor);
 }
Beispiel #8
0
 public virtual void VisitChildren(Visitor visitor)
 {
 }
Beispiel #9
0
 public override void VisitChildren(Visitor visitor) => VisitList(GenericArguments, visitor);