Table of Contents

Class KeywordStatementNode

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

An executable statement node that represents a fixed-keyword statement with a positional argument list — the file statements (MS-VBAL §5.4.5 File Statements) and similarly-shaped statements (Erase, Name, RaiseEvent) that are not a procedure/function call.

public record KeywordStatementNode : StatementNode, IEquatable<SyntaxNode>, IExecutableNode, IEquatable<StatementNode>, IEquatable<KeywordStatementNode>
Inheritance
KeywordStatementNode
Implements
Inherited Members

Constructors

KeywordStatementNode(SyntaxNodeId, SourceLocation, string, ImmutableArray<SyntaxNode>)

An executable statement node that represents a fixed-keyword statement with a positional argument list — the file statements (MS-VBAL §5.4.5 File Statements) and similarly-shaped statements (Erase, Name, RaiseEvent) that are not a procedure/function call.

public KeywordStatementNode(SyntaxNodeId Identity, SourceLocation SourceLocation, string Token, ImmutableArray<SyntaxNode> Inputs)

Parameters

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

SourceLocation SourceLocation

The document location (Uri+Range) of the bound expression.

Token string

The statement's keyword (see Tokens), e.g. Close, Erase, Name, RaiseEvent.

Inputs ImmutableArray<SyntaxNode>

The statement's arguments, in source order.

Properties

Token

The statement's keyword (see Tokens), e.g. Close, Erase, Name, RaiseEvent.

public string Token { get; init; }

Property Value

string