progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
37
AspClassic.Parser/OperatorDeclaration.cs
Normal file
37
AspClassic.Parser/OperatorDeclaration.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace AspClassic.Parser;
|
||||
|
||||
/// <summary>
|
||||
/// A parse tree for an overloaded operator declaration.
|
||||
/// </summary>
|
||||
public sealed class OperatorDeclaration : MethodDeclaration
|
||||
{
|
||||
private readonly Token _OperatorToken;
|
||||
|
||||
/// <summary>
|
||||
/// The operator being overloaded.
|
||||
/// </summary>
|
||||
public Token OperatorToken => _OperatorToken;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new parse tree for an overloaded operator 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="operatorToken">The operator being overloaded.</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="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 OperatorDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, Token operatorToken, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, StatementCollection statements, EndBlockDeclaration endDeclaration, Span span, IList<Comment> comments)
|
||||
: base(TreeType.OperatorDeclaration, attributes, modifiers, keywordLocation, null, null, parameters, asLocation, resultTypeAttributes, resultType, null, null, statements, endDeclaration, span, comments)
|
||||
{
|
||||
_OperatorToken = operatorToken;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue