Beispiel #1
0
 public override MemberList VisitMemberList(MemberList members)
 {
     if (members == null) return null;
     return base.VisitMemberList(members.Clone());
 }
 public override MemberList VisitMemberList(MemberList members){
   if (members == null) return null;
   var dup = members.Clone();
   for (int i = 0; i < dup.Count; i++)
   {
     var member = dup[i];
     if (this.RecordOriginalAsTemplate && member is TypeNode)
     {
       dup[i] = null;
     }
     else
     {
       dup[i] = (Member)this.Visit(member);
       Debug.Assert(member == null || dup[i] != null);
     }
   }
   return dup;
 }