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
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
SourceLocationSourceLocationThe document location (
Uri+Range) of the bound expression.PathNameExpressionNodeThe file path expression.
ModeVBFileMode?The
Formode clause, ornullwhen the statement declares none.AccessVBFileAccessMode?The
Accessclause, ornullwhen the statement declares none.LockVBFileLockMode?The lock clause, or
nullwhen the statement declares none.FileNumberExpressionNodeThe file channel this handle is bound to.
RecordLengthExpressionNodeThe
Lenclause's record length, ornullwhen the statement declares none.
Properties
Access
The Access clause, or null when the statement declares none.
public VBFileAccessMode? Access { get; init; }
Property Value
FileNumber
The file channel this handle is bound to.
public ExpressionNode FileNumber { get; init; }
Property Value
Lock
The lock clause, or null when the statement declares none.
public VBFileLockMode? Lock { get; init; }
Property Value
Mode
The For mode clause, or null when the statement declares none.
public VBFileMode? Mode { get; init; }
Property Value
PathName
The file path expression.
public ExpressionNode PathName { get; init; }
Property Value
RecordLength
The Len clause's record length, or null when the statement declares none.
public ExpressionNode? RecordLength { get; init; }