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

(elem_0, ..., elem_n-1) More...

#include <mim/ast/ast.h>

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

Public Member Functions

 TupleExpr (Loc loc, Ptrs< Expr > &&elems)
 
const auto & elems () const
 
const Exprelem (size_t i) const
 
size_t num_elems () const
 
void bind (Scopes &) const override
 
std::ostream & stream (Tab &, std::ostream &) const override
 
- Public Member Functions inherited from mim::ast::Expr
Ref emit (Emitter &) const
 
virtual Ref emit_decl (Emitter &, Ref) const
 
virtual void emit_body (Emitter &, Ref) const
 
- Public Member Functions inherited from mim::ast::Node
Loc loc () const
 
void dump () const
 

Private Member Functions

Ref emit_ (Emitter &) const override
 

Additional Inherited Members

- 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

(elem_0, ..., elem_n-1)

Definition at line 596 of file ast.h.

Constructor & Destructor Documentation

◆ TupleExpr()

mim::ast::TupleExpr::TupleExpr ( Loc loc,
Ptrs< Expr > && elems )
inline

Definition at line 598 of file ast.h.

Member Function Documentation

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 181 of file bind.cpp.

◆ elem()

const Expr * mim::ast::TupleExpr::elem ( size_t i) const
inline

Definition at line 603 of file ast.h.

◆ elems()

const auto & mim::ast::TupleExpr::elems ( ) const
inline

Definition at line 602 of file ast.h.

Referenced by num_elems().

◆ emit_()

Ref mim::ast::TupleExpr::emit_ ( Emitter & e) const
overrideprivatevirtual

Implements mim::ast::Expr.

Definition at line 270 of file emit.cpp.

◆ num_elems()

size_t mim::ast::TupleExpr::num_elems ( ) const
inline

Definition at line 604 of file ast.h.

References elems().

◆ stream()

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

Implements mim::ast::Node.

Definition at line 138 of file stream.cpp.

References mim::print().


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