void ConvertAttributes(IList <IAttribute> outputList, AttributeSection attributeSection) { foreach (CSharp.Attribute attr in attributeSection.Attributes) { outputList.Add(ConvertAttribute(attr)); } }
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); }
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); } }); }
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)); }
void IAstVisitor.VisitAttributeSection(AttributeSection attributeSection) { Visit(EnterAttributeSection, LeaveAttributeSection, attributeSection); }
public virtual S VisitAttributeSection(AttributeSection attributeSection, T data) { return(VisitChildren(attributeSection, data)); }
public virtual S VisitAttributeSection(AttributeSection attributeSection, T data) { throw new NotImplementedException(); }