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

.ret ptrn = callee $ arg; body More...

#include <mim/ast/ast.h>

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

Public Member Functions

 RetExpr (Loc loc, Ptr< Ptrn > &&ptrn, Ptr< Expr > &&callee, Ptr< Expr > &&arg, Ptr< Expr > body)
 
const Ptrnptrn () const
 
const Exprcallee () const
 
const Exprarg () const
 
const Exprbody () 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

.ret ptrn = callee $ arg; body

Definition at line 542 of file ast.h.

Constructor & Destructor Documentation

◆ RetExpr()

mim::ast::RetExpr::RetExpr ( Loc loc,
Ptr< Ptrn > && ptrn,
Ptr< Expr > && callee,
Ptr< Expr > && arg,
Ptr< Expr > body )
inline

Definition at line 544 of file ast.h.

Member Function Documentation

◆ arg()

const Expr * mim::ast::RetExpr::arg ( ) const
inline

Definition at line 553 of file ast.h.

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 168 of file bind.cpp.

◆ body()

const Expr * mim::ast::RetExpr::body ( ) const
inline

Definition at line 554 of file ast.h.

◆ callee()

const Expr * mim::ast::RetExpr::callee ( ) const
inline

Definition at line 552 of file ast.h.

◆ emit_()

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

Implements mim::ast::Expr.

Definition at line 244 of file emit.cpp.

References mim::ast::Expr::emit(), mim::error(), mim::ast::Node::loc(), and mim::Pi::ret_pi().

◆ ptrn()

const Ptrn * mim::ast::RetExpr::ptrn ( ) const
inline

Definition at line 551 of file ast.h.

◆ stream()

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

Implements mim::ast::Node.

Definition at line 132 of file stream.cpp.

References mim::Tab::print(), and mim::println().


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