Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
thorin::ast::RetExpr Class Reference

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

#include <thorin/ast/ast.h>

Inheritance diagram for thorin::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 thorin::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 thorin::ast::Node
Loc loc () const
 
void dump () const
 

Private Member Functions

Ref emit_ (Emitter &) const override
 

Additional Inherited Members

- Protected Member Functions inherited from thorin::ast::Expr
 Expr (Loc loc)
 
- Protected Member Functions inherited from thorin::ast::Node
 Node (Loc loc)
 
virtual ~Node ()
 

Detailed Description

.ret ptrn = callee $ arg; body

Definition at line 552 of file ast.h.

Constructor & Destructor Documentation

◆ RetExpr()

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

Definition at line 554 of file ast.h.

Member Function Documentation

◆ arg()

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

Definition at line 563 of file ast.h.

◆ bind()

void thorin::ast::RetExpr::bind ( Scopes s) const
overridevirtual

Implements thorin::ast::Expr.

Definition at line 172 of file bind.cpp.

◆ body()

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

Definition at line 564 of file ast.h.

◆ callee()

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

Definition at line 562 of file ast.h.

◆ emit_()

Ref thorin::ast::RetExpr::emit_ ( Emitter e) const
overrideprivatevirtual

Implements thorin::ast::Expr.

Definition at line 244 of file emit.cpp.

References thorin::ast::Expr::emit(), thorin::error(), and thorin::Pi::ret_pi().

◆ ptrn()

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

Definition at line 561 of file ast.h.

◆ stream()

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

Implements thorin::ast::Node.

Definition at line 131 of file stream.cpp.

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


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