sun::ast::StringLiteralAST

sun::ast::StringLiteralAST

class · Source (opens in a new tab)

class sun::ast::StringLiteralAST : public sun::ast::ExprAST

A string constant and its source spelling.

Inherits

Public Functions

StringLiteralAST

public · function · Source (opens in a new tab)

sun::ast::StringLiteralAST::StringLiteralAST(std::string Value)

Creates this syntax node and takes ownership of any supplied child expressions.

dotLabel

public · function · Source (opens in a new tab)

std::string sun::ast::StringLiteralAST::dotLabel() const override

Returns the node label used in syntax-tree graph visualizations.

getType

public · function · Source (opens in a new tab)

ASTNodeType sun::ast::StringLiteralAST::getType() const override

Returns the syntax-node kind used to dispatch tree visitors.

Related: ASTNodeType

getValue

public · function · Source (opens in a new tab)

const std::string & sun::ast::StringLiteralAST::getValue() const

Returns the value represented by this object.

toString

public · function · Source (opens in a new tab)

std::string sun::ast::StringLiteralAST::toString() const override

Returns a readable representation for diagnostics and debugging.

Private Fields

Value

private · variable · Source (opens in a new tab)

std::string sun::ast::StringLiteralAST::Value

No documentation comment.