using System.Collections.Generic; namespace AspClassic.Parser; /// /// A parse tree for an overloaded operator declaration. /// public sealed class OperatorDeclaration : MethodDeclaration { private readonly Token _OperatorToken; /// /// The operator being overloaded. /// public Token OperatorToken => _OperatorToken; /// /// Creates a new parse tree for an overloaded operator declaration. /// /// The attributes for the parse tree. /// The modifiers for the parse tree. /// The location of the keyword. /// The operator being overloaded. /// 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 statements in the declaration. /// The end block declaration, if any. /// The location of the parse tree. /// The comments for the parse tree. 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 comments) : base(TreeType.OperatorDeclaration, attributes, modifiers, keywordLocation, null, null, parameters, asLocation, resultTypeAttributes, resultType, null, null, statements, endDeclaration, span, comments) { _OperatorToken = operatorToken; } }