MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::ast::InsertExpr Class Reference

ins(tuple, index, value) More...

#include <mim/ast/ast.h>

Inheritance diagram for mim::ast::InsertExpr:
[legend]

Public Member Functions

 InsertExpr (Loc loc, Ptr< Expr > &&tuple, Ptr< Expr > &&index, Ptr< Expr > &&value)
const Exprtuple () const
const Exprindex () const
const Exprvalue () const
void bind (Scopes &) const override
std::ostream & stream (Tab &, std::ostream &) const override
Public Member Functions inherited from mim::ast::Expr
const Defemit (Emitter &) const
virtual const Defemit_decl (Emitter &, const Def *) const
virtual void emit_body (Emitter &, const Def *) const
Public Member Functions inherited from mim::ast::Node
Loc loc () const
void dump () const

Private Member Functions

const Defemit_ (Emitter &) const override

Additional Inherited Members

Public Types inherited from mim::ast::Expr
using Prec = ast::Prec
 Backward-compatible alias; prefer the free-standing ast::Prec.
Protected Member Functions inherited from mim::ast::Expr
 Expr (Loc loc)
Protected Member Functions inherited from mim::ast::Node
 Node (Loc loc)
virtual ~Node ()

Detailed Description

ins(tuple, index, value)

Definition at line 791 of file ast.h.

Constructor & Destructor Documentation

◆ InsertExpr()

mim::ast::InsertExpr::InsertExpr ( Loc loc,
Ptr< Expr > && tuple,
Ptr< Expr > && index,
Ptr< Expr > && value )
inline

Definition at line 793 of file ast.h.

References mim::ast::Expr::Expr(), index(), mim::ast::Node::loc(), tuple(), and value().

Member Function Documentation

◆ bind()

void mim::ast::InsertExpr::bind ( Scopes & s) const
overridevirtual

Implements mim::ast::Expr.

Definition at line 236 of file bind.cpp.

References index(), tuple(), and value().

◆ emit_()

const Def * mim::ast::InsertExpr::emit_ ( Emitter & e) const
overrideprivatevirtual

Implements mim::ast::Expr.

Definition at line 375 of file emit.cpp.

References index(), tuple(), and value().

◆ index()

const Expr * mim::ast::InsertExpr::index ( ) const
inline

Definition at line 800 of file ast.h.

References mim::ast::Expr::Expr().

Referenced by bind(), emit_(), InsertExpr(), and stream().

◆ stream()

std::ostream & mim::ast::InsertExpr::stream ( Tab & tab,
std::ostream & os ) const
overridevirtual

Implements mim::ast::Node.

Definition at line 173 of file stream.cpp.

References index(), mim::print(), tuple(), and value().

◆ tuple()

const Expr * mim::ast::InsertExpr::tuple ( ) const
inline

Definition at line 799 of file ast.h.

References mim::ast::Expr::Expr().

Referenced by bind(), emit_(), InsertExpr(), and stream().

◆ value()

const Expr * mim::ast::InsertExpr::value ( ) const
inline

Definition at line 801 of file ast.h.

References mim::ast::Expr::Expr().

Referenced by bind(), emit_(), InsertExpr(), and stream().


The documentation for this class was generated from the following files: