progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
43
AspClassic.Parser/EventDeclaration.cs
Normal file
43
AspClassic.Parser/EventDeclaration.cs
Normal file
|
@ -0,0 +1,43 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace AspClassic.Parser;
|
||||
|
||||
/// <summary>
|
||||
/// A parse tree for an event declaration.
|
||||
/// </summary>
|
||||
public sealed class EventDeclaration : SignatureDeclaration
|
||||
{
|
||||
private readonly NameCollection _ImplementsList;
|
||||
|
||||
/// <summary>
|
||||
/// The list of implemented members.
|
||||
/// </summary>
|
||||
public NameCollection ImplementsList => _ImplementsList;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a parse tree for an event declaration.
|
||||
/// </summary>
|
||||
/// <param name="attributes">The attributes for the parse tree.</param>
|
||||
/// <param name="modifiers">The modifiers for the parse tree.</param>
|
||||
/// <param name="keywordLocation">The location of the keyword.</param>
|
||||
/// <param name="name">The name of the declaration.</param>
|
||||
/// <param name="parameters">The parameters of the declaration.</param>
|
||||
/// <param name="asLocation">The location of the 'As', if any.</param>
|
||||
/// <param name="resultTypeAttributes">The attributes on the result type, if any.</param>
|
||||
/// <param name="resultType">The result type, if any.</param>
|
||||
/// <param name="implementsList">The list of implemented members.</param>
|
||||
/// <param name="span">The location of the parse tree.</param>
|
||||
/// <param name="comments">The comments for the parse tree.</param>
|
||||
public EventDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, NameCollection implementsList, Span span, IList<Comment> comments)
|
||||
: base(TreeType.EventDeclaration, attributes, modifiers, keywordLocation, name, null, parameters, asLocation, resultTypeAttributes, resultType, span, comments)
|
||||
{
|
||||
SetParent(implementsList);
|
||||
_ImplementsList = implementsList;
|
||||
}
|
||||
|
||||
protected override void GetChildTrees(IList<Tree> childList)
|
||||
{
|
||||
base.GetChildTrees(childList);
|
||||
Tree.AddChild(childList, ImplementsList);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue