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, bool)

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, bool IsStatic = false)

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.

IsStatic bool

true when the procedure is declared with the Static keyword (MS-VBAL §5.3.1.2): every local variable of it then has module extent, as if each were declared Static. Only a Sub, a Function or a property can be.

Properties

AccessModifier

An access modifier, if one was supplied.

public AccessModifier AccessModifier { get; init; }

Property Value

AccessModifier

IsStatic

true when the procedure is declared with the Static keyword (MS-VBAL §5.3.1.2): every local variable of it then has module extent, as if each were declared Static. Only a Sub, a Function or a property can be.

public bool IsStatic { get; init; }

Property Value

bool

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