using System; using System.Collections.Generic; namespace AspClassic.Parser; /// /// A parse tree for an assembly-level or module-level attribute declaration. /// public sealed class AttributeDeclaration : Declaration { private readonly AttributeBlockCollection _Attributes; /// /// The attributes. /// public AttributeBlockCollection Attributes => _Attributes; /// /// Constructs a new parse tree for assembly-level or module-level attribute declarations. /// /// The attributes. /// The location of the parse tree. /// The comments for the parse tree. public AttributeDeclaration(AttributeBlockCollection attributes, Span span, IList comments) : base(TreeType.AttributeDeclaration, span, comments) { if (attributes == null) { throw new ArgumentNullException("attributes"); } SetParent(attributes); _Attributes = attributes; } protected override void GetChildTrees(IList childList) { Tree.AddChild(childList, Attributes); } }