Class LiteralExpressionNode
- Namespace
- RDCore.SDK.Model.AST.Expressions
- Assembly
- RDCore.SDK.dll
An expression that statically resolves a VBTypedValue directly from the source tokens.
public sealed record LiteralExpressionNode : ExpressionNode, IEquatable<SyntaxNode>, IExecutableNode, IEquatable<ExpressionNode>, IEquatable<LiteralExpressionNode>
- Inheritance
-
LiteralExpressionNode
- Implements
- Inherited Members
Remarks
Unless specified otherwise in a derived node type, MS-VBAL 5.6.5 Literal Expressions defines the static and run-time
semantics of this node. MS-VBAL 3.3 Lexical Tokens static semantics being implemented at the parser level,
the VBTypedValue has already resolved its type-suffix ("type hint").
Constructors
LiteralExpressionNode(SyntaxNodeId, SourceLocation, VBTypedValue)
An expression that statically resolves a VBTypedValue directly from the source tokens.
public LiteralExpressionNode(SyntaxNodeId Identity, SourceLocation Location, VBTypedValue StaticValue)
Parameters
IdentitySyntaxNodeIdThe unique identifier of this specific expression node.
LocationSourceLocationThe document location (
Uri+Range) of the expression.StaticValueVBTypedValueThe parsed literal value.
Remarks
Unless specified otherwise in a derived node type, MS-VBAL 5.6.5 Literal Expressions defines the static and run-time
semantics of this node. MS-VBAL 3.3 Lexical Tokens static semantics being implemented at the parser level,
the VBTypedValue has already resolved its type-suffix ("type hint").
Properties
StaticValue
The parsed literal value.
public VBTypedValue StaticValue { get; init; }