示例#1
0
 void ConvertAttributes(IList <IAttribute> outputList, AttributeSection attributeSection)
 {
     foreach (CSharp.Attribute attr in attributeSection.Attributes)
     {
         outputList.Add(ConvertAttribute(attr));
     }
 }
示例#2
0
 public override IEntity VisitAttributeSection(AttributeSection attributeSection, object data)
 {
     // non-assembly attributes are handled by their parent entity
     if (attributeSection.AttributeTarget == "assembly")
     {
         ConvertAttributes(parsedFile.AssemblyAttributes, attributeSection);
     }
     return(null);
 }
示例#3
0
        S IAstVisitor <T, S> .VisitAttributeSection(AttributeSection attributeSection, T data)
        {
            var handler = AttributeSectionVisited;

            if (handler != null)
            {
                handler(attributeSection, data);
            }
            return(VisitChildren(attributeSection, data));
        }
 public override void VisitAttributeSection(AttributeSection attributeSection)
 {
     VisitChildrenToFormat(attributeSection, child => {
         child.AcceptVisitor(this);
         if (child.NextSibling != null && child.NextSibling.Role == Roles.RBracket)
         {
             ForceSpacesAfter(child, false);
         }
     });
 }
示例#5
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            AttributeSection o = other as AttributeSection;

            return(o != null && this.AttributeTarget == o.AttributeTarget && this.Attributes.DoMatch(o.Attributes, match));
        }
示例#6
0
 void IAstVisitor.VisitAttributeSection(AttributeSection attributeSection)
 {
     Visit(EnterAttributeSection, LeaveAttributeSection, attributeSection);
 }
示例#7
0
 public virtual S VisitAttributeSection(AttributeSection attributeSection, T data)
 {
     return(VisitChildren(attributeSection, data));
 }
 public virtual S VisitAttributeSection(AttributeSection attributeSection, T data)
 {
     throw new NotImplementedException();
 }