Table of Contents

Class OpenStatementNode

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

MS-VBAL 5.4.5.1 the Open statement. Mode, Access, and Lock are keyword choices, not expressions — the reason this statement needs its own shape rather than the generic KeywordStatementNode the other file statements share.

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

Constructors

OpenStatementNode(SyntaxNodeId, SourceLocation, ExpressionNode, VBFileMode?, VBFileAccessMode?, VBFileLockMode?, ExpressionNode, ExpressionNode?)

MS-VBAL 5.4.5.1 the Open statement. Mode, Access, and Lock are keyword choices, not expressions — the reason this statement needs its own shape rather than the generic KeywordStatementNode the other file statements share.

public OpenStatementNode(SyntaxNodeId Identity, SourceLocation SourceLocation, ExpressionNode PathName, VBFileMode? Mode, VBFileAccessMode? Access, VBFileLockMode? Lock, ExpressionNode FileNumber, ExpressionNode? RecordLength)

Parameters

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

SourceLocation SourceLocation

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

PathName ExpressionNode

The file path expression.

Mode VBFileMode?

The For mode clause, or null when the statement declares none.

Access VBFileAccessMode?

The Access clause, or null when the statement declares none.

Lock VBFileLockMode?

The lock clause, or null when the statement declares none.

FileNumber ExpressionNode

The file channel this handle is bound to.

RecordLength ExpressionNode

The Len clause's record length, or null when the statement declares none.

Properties

Access

The Access clause, or null when the statement declares none.

public VBFileAccessMode? Access { get; init; }

Property Value

VBFileAccessMode?

FileNumber

The file channel this handle is bound to.

public ExpressionNode FileNumber { get; init; }

Property Value

ExpressionNode

Lock

The lock clause, or null when the statement declares none.

public VBFileLockMode? Lock { get; init; }

Property Value

VBFileLockMode?

Mode

The For mode clause, or null when the statement declares none.

public VBFileMode? Mode { get; init; }

Property Value

VBFileMode?

PathName

The file path expression.

public ExpressionNode PathName { get; init; }

Property Value

ExpressionNode

RecordLength

The Len clause's record length, or null when the statement declares none.

public ExpressionNode? RecordLength { get; init; }

Property Value

ExpressionNode