sun::ast::IndexedAssignmentAST

sun::ast::IndexedAssignmentAST

class · Source (opens in a new tab)

class sun::ast::IndexedAssignmentAST : public sun::ast::ExprAST

Indexed assignment: arr[i] = value.

Inherits

Public Functions

IndexedAssignmentAST

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

sun::ast::IndexedAssignmentAST::IndexedAssignmentAST(std::unique_ptr< ExprAST > target, std::unique_ptr< ExprAST > value)

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

Related: ExprAST

dotLabel

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

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

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

forEachChildSlot

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

void sun::ast::IndexedAssignmentAST::forEachChildSlot(const ChildSlotFn &fn) override

Visits replaceable child expressions so tree passes can rewrite them in place.

Related: ChildSlotFn

getTarget

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

const ExprAST * sun::ast::IndexedAssignmentAST::getTarget() const

Returns the target stored by this object.

Related: ExprAST

getType

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

ASTNodeType sun::ast::IndexedAssignmentAST::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 ExprAST * sun::ast::IndexedAssignmentAST::getValue() const

Returns the value represented by this object.

Related: ExprAST

toString

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

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

Returns a readable representation for diagnostics and debugging.

Private Fields

target

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

std::unique_ptr<ExprAST> sun::ast::IndexedAssignmentAST::target

No documentation comment.

Related: ExprAST

value

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

std::unique_ptr<ExprAST> sun::ast::IndexedAssignmentAST::value

No documentation comment.

Related: ExprAST