using System.Collections.Generic;
namespace AspClassic.Parser;
///
/// A parse tree for an event declaration.
///
public sealed class EventDeclaration : SignatureDeclaration
{
private readonly NameCollection _ImplementsList;
///
/// The list of implemented members.
///
public NameCollection ImplementsList => _ImplementsList;
///
/// Constructs a parse tree for an event declaration.
///
/// The attributes for the parse tree.
/// The modifiers for the parse tree.
/// The location of the keyword.
/// The name of the declaration.
/// The parameters of the declaration.
/// The location of the 'As', if any.
/// The attributes on the result type, if any.
/// The result type, if any.
/// The list of implemented members.
/// The location of the parse tree.
/// The comments for the parse tree.
public EventDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, NameCollection implementsList, Span span, IList comments)
: base(TreeType.EventDeclaration, attributes, modifiers, keywordLocation, name, null, parameters, asLocation, resultTypeAttributes, resultType, span, comments)
{
SetParent(implementsList);
_ImplementsList = implementsList;
}
protected override void GetChildTrees(IList childList)
{
base.GetChildTrees(childList);
Tree.AddChild(childList, ImplementsList);
}
}