Ejemplo n.º 1
0
 public virtual void VisitProperty(Property property)
 {
   if (property == null) return;
   this.VisitAttributeList(property.Attributes);
   this.VisitParameterList(property.Parameters);
   this.VisitTypeReference(property.Type);
 }
Ejemplo n.º 2
0
 public virtual Property VisitProperty(Property property){
   if (property == null) return null;
   property.Attributes = this.VisitAttributeList(property.Attributes);
   property.Parameters = this.VisitParameterList(property.Parameters);
   property.Type = this.VisitTypeReference(property.Type);
   return property;
 }
Ejemplo n.º 3
0
        public override Property VisitProperty(Property property)
        {
            if (property == null) return null;
            Property dup = (Property)this.DuplicateFor[property.UniqueKey];
            if (dup != null) return dup;
            this.DuplicateFor[property.UniqueKey] = dup = (Property)property.Clone();
            dup.Attributes = this.VisitAttributeList(property.Attributes);
#if !NoXml
            if (this.CopyDocumentation) dup.Documentation = property.Documentation;
#endif
            dup.Type = this.VisitTypeReference(property.Type);
            dup.Getter = this.VisitMethod(property.Getter);
            dup.Setter = this.VisitMethod(property.Setter);
            dup.OtherMethods = this.VisitMethodList(property.OtherMethods);
            dup.DeclaringType = this.TargetType;
            dup.Parameters = this.VisitParameterList(dup.Parameters);
            return dup;
        }