Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.36 KB

Summary.DocTypeDeclaration.md

File metadata and controls

52 lines (38 loc) · 1.36 KB
public record DocTypeDeclaration : DocMember

A DocMember that represents a documented type declaration (e.g. struct, class, etc.) in the parsed source code.

Properties

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.

Methods

public IEnumerable<DocMember> MembersOfType(DocMember member)

A sequence of members of this type declaration that has the same type as the specified one.