progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
40
AspClassic.Parser/ImplementsDeclaration.cs
Normal file
40
AspClassic.Parser/ImplementsDeclaration.cs
Normal file
|
@ -0,0 +1,40 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AspClassic.Parser;
|
||||
|
||||
/// <summary>
|
||||
/// A parse tree for an Implements declaration.
|
||||
/// </summary>
|
||||
public sealed class ImplementsDeclaration : Declaration
|
||||
{
|
||||
private readonly TypeNameCollection _ImplementedTypes;
|
||||
|
||||
/// <summary>
|
||||
/// The list of types.
|
||||
/// </summary>
|
||||
public TypeNameCollection ImplementedTypes => _ImplementedTypes;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a parse tree for an Implements declaration.
|
||||
/// </summary>
|
||||
/// <param name="implementedTypes">The types inherited or implemented.</param>
|
||||
/// <param name="span">The location of the parse tree.</param>
|
||||
/// <param name="comments">The comments for the parse tree.</param>
|
||||
public ImplementsDeclaration(TypeNameCollection implementedTypes, Span span, IList<Comment> comments)
|
||||
: base(TreeType.ImplementsDeclaration, span, comments)
|
||||
{
|
||||
if (implementedTypes == null)
|
||||
{
|
||||
throw new ArgumentNullException("implementedTypes");
|
||||
}
|
||||
SetParent(implementedTypes);
|
||||
_ImplementedTypes = implementedTypes;
|
||||
}
|
||||
|
||||
protected override void GetChildTrees(IList<Tree> childList)
|
||||
{
|
||||
base.GetChildTrees(childList);
|
||||
Tree.AddChild(childList, ImplementedTypes);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue