slang::syntax::LiteralExpressionSyntax struct
#include <AllSyntax.h>

Concrete syntax definition for a LiteralExpression.

Base classes

struct PrimaryExpressionSyntax
Concrete syntax definition for a PrimaryExpression.

Public static functions

static auto isKind(SyntaxKind kind) -> bool
Returns true if the provided syntax kind is represented by this type.

Constructors, destructors, conversion operators

LiteralExpressionSyntax(SyntaxKind kind, Token literal)
Constructs a new instance of the LiteralExpressionSyntax struct.
LiteralExpressionSyntax(const LiteralExpressionSyntax&) defaulted explicit
Copy constructor.

Public functions

auto getChild(size_t index) -> TokenOrSyntax
Gets the child member (token or syntax node) at the provided index within this struct.
auto getChild(size_t index) const -> ConstTokenOrSyntax
Gets the child member (token or syntax node) at the provided index within this struct.
void setChild(size_t index, TokenOrSyntax child)
Sets the child member (token or syntax node) at the provided index within this struct.

Public variables

Token literal
The literal member.