public record DocTypeDeclaration : DocMember
A DocMember
that represents a documented type declaration
(e.g. struct
, class
, etc.) in the parsed source code.
public required DocMember[] Members { get; init; }
The members of this type (e.g. fields, properties, methods).
public required DocTypeParam[] TypeParams { get; init; }
The type parameters of this type (if it's generic).
public required DocType[] Base { get; init; }
The list of base types for this one.
public required bool Record { get; init; }
Whether this type declaration is a record declaration.
public IEnumerable<DocMember> AllMembers { get; }
All nested members (including children of children) of this type declaration.
public IEnumerable<DocMember> MembersOfType(DocMember member)
A sequence of members of this type declaration that has the same type as the specified one.