Table of Contents

Class MemberDeclarationNode

Namespace
RDCore.SDK.Model.AST.Declarations
Assembly
RDCore.SDK.dll

An AST node representing a member of a module.

public record MemberDeclarationNode : SyntaxNode, IEquatable<SyntaxNode>, IEquatable<MemberDeclarationNode>
Inheritance
MemberDeclarationNode
Implements
Derived
Inherited Members

Constructors

MemberDeclarationNode(SyntaxNodeId, SourceLocation, ImmutableArray<SyntaxNode>, string, MemberKind, AccessModifier)

An AST node representing a member of a module.

public MemberDeclarationNode(SyntaxNodeId Identity, SourceLocation SourceLocation, ImmutableArray<SyntaxNode> Children, string Name, MemberKind MemberKind, AccessModifier AccessModifier = AccessModifier.Implicit)

Parameters

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

SourceLocation SourceLocation

The source location of this module; the SourceRange is invalid.

Children ImmutableArray<SyntaxNode>

An immutable array containing all AST nodes of this module.

Name string

The declared identifier name of the member.

MemberKind MemberKind

Specifies the kind of member.

AccessModifier AccessModifier

An access modifier, if one was supplied.

Properties

AccessModifier

An access modifier, if one was supplied.

public AccessModifier AccessModifier { get; init; }

Property Value

AccessModifier

MemberKind

Specifies the kind of member.

public MemberKind MemberKind { get; init; }

Property Value

MemberKind

Name

The declared identifier name of the member.

public string Name { get; init; }

Property Value

string