Skip to content

Latest commit

 

History

History
87 lines (63 loc) · 2.04 KB

Summary.DocMember.md

File metadata and controls

87 lines (63 loc) · 2.04 KB
public abstract record DocMember

A member of the generated document (e.g. type, field, property, method, etc.).

Properties

public required string Namespace { get; init; }

The namespace the member is defined in.

public required string FullyQualifiedName { get; init; }

The fully qualified name of the member (e.g., Summary.DocMember).

public required string Name { get; init; }

The name of the member (e.g. public int Field has name Field).

public required string Declaration { get; init; }

The code-snippet that contains the full declaration of the member (e.g. public int Field is a declaration of the field member Field).

public required AccessModifier Access { get; init; }

The access modifier of the member.

public required DocType? DeclaringType { get; init; }

The type that this member is declared in (works for nested types as well).

public DocComment Comment { get; set; }

The documentation comment of the member (can be empty).

[MemberNotNullWhen(true, nameof(Deprecation))]
public bool Deprecated { get; }

Whether the member is deprecated (e.g. marked with [Obsolete]).

public DocDeprecation? Deprecation { get; init; }

The member deprecation information.

public DocLocation? Location { get; init; }

The location of the member.

public required string[] Usings { get; init; }

The list of using statements imported in the scope of this type declaration.