aspclassic-core/AspClassic.Parser/FunctionDeclaration.cs
Jelle Luteijn 484dbfc9d9 progress
2022-05-15 11:19:49 +02:00

32 lines
2 KiB
C#

using System.Collections.Generic;
namespace AspClassic.Parser;
/// <summary>
/// A parse tree for a Function declaration.
/// </summary>
public sealed class FunctionDeclaration : MethodDeclaration
{
/// <summary>
/// Creates a new parse tree for a Function 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="typeParameters">The type parameters on the declaration, if any.</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="handlesList">The list of handled events.</param>
/// <param name="statements">The statements in the declaration.</param>
/// <param name="endDeclaration">The end block declaration, if any.</param>
/// <param name="span">The location of the parse tree.</param>
/// <param name="comments">The comments for the parse tree.</param>
public FunctionDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, TypeParameterCollection typeParameters, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, NameCollection implementsList, NameCollection handlesList, StatementCollection statements, EndBlockDeclaration endDeclaration, Span span, IList<Comment> comments)
: base(TreeType.FunctionDeclaration, attributes, modifiers, keywordLocation, name, typeParameters, parameters, asLocation, resultTypeAttributes, resultType, implementsList, handlesList, statements, endDeclaration, span, comments)
{
}
}