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

tuple#index More...

#include <mim/ast/ast.h>

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

Public Member Functions

 ExtractExpr (Loc loc, Ptr< Expr > &&tuple, Ptr< Expr > &&index)
 
 ExtractExpr (Loc loc, Ptr< Expr > &&tuple, Dbg index)
 
const Exprtuple () const
 
const auto & index () const
 
const Decldecl () 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

tuple#index

Definition at line 640 of file ast.h.

Constructor & Destructor Documentation

◆ ExtractExpr() [1/2]

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

Definition at line 642 of file ast.h.

◆ ExtractExpr() [2/2]

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

Definition at line 646 of file ast.h.

Member Function Documentation

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 195 of file bind.cpp.

References std::get().

◆ decl()

const Decl * mim::ast::ExtractExpr::decl ( ) const
inline

Definition at line 653 of file ast.h.

◆ emit_()

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

Implements mim::ast::Expr.

Definition at line 307 of file emit.cpp.

References mim::error(), and std::get().

◆ index()

const auto & mim::ast::ExtractExpr::index ( ) const
inline

Definition at line 652 of file ast.h.

◆ stream()

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

Implements mim::ast::Node.

Definition at line 147 of file stream.cpp.

References std::get(), and mim::print().

◆ tuple()

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

Definition at line 651 of file ast.h.


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