sun::ast::IndexedAssignmentAST
class · Source (opens in a new tab)
class sun::ast::IndexedAssignmentAST : public sun::ast::ExprASTIndexed assignment: arr[i] = value.
Inherits
- sun::ast::ExprAST (public)
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 overrideReturns 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) overrideVisits 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() constReturns the target stored by this object.
Related: ExprAST
getType
public · function · Source (opens in a new tab)
ASTNodeType sun::ast::IndexedAssignmentAST::getType() const overrideReturns 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() constReturns the value represented by this object.
Related: ExprAST
toString
public · function · Source (opens in a new tab)
std::string sun::ast::IndexedAssignmentAST::toString() const overrideReturns 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::targetNo documentation comment.
Related: ExprAST
value
private · variable · Source (opens in a new tab)
std::unique_ptr<ExprAST> sun::ast::IndexedAssignmentAST::valueNo documentation comment.
Related: ExprAST