Table of Contents

Class VariableDeclarationNode

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

An AST node representing a local variable (child of a member node).

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

Constructors

VariableDeclarationNode(SyntaxNodeId, SourceLocation, string, ImmutableArray<SyntaxNode>, AccessModifier, string?, bool)

An AST node representing a local variable (child of a member node).

public VariableDeclarationNode(SyntaxNodeId Identity, SourceLocation SourceLocation, string Name, ImmutableArray<SyntaxNode> Children, AccessModifier AccessModifier = AccessModifier.Implicit, string? TypeHint = null, bool IsWithEvents = false)

Parameters

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

SourceLocation SourceLocation

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

Name string

The declared identifier name of the member.

Children ImmutableArray<SyntaxNode>
AccessModifier AccessModifier

The access modifier, if one was supplied.

TypeHint string

The type hint token, if one was supplied.

IsWithEvents bool

true if the variable is a WithEvents field.

Properties

AccessModifier

The access modifier, if one was supplied.

public AccessModifier AccessModifier { get; init; }

Property Value

AccessModifier

IsWithEvents

true if the variable is a WithEvents field.

public bool IsWithEvents { get; init; }

Property Value

bool

Name

The declared identifier name of the member.

public string Name { get; init; }

Property Value

string

TypeHint

The type hint token, if one was supplied.

public string? TypeHint { get; init; }

Property Value

string