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

.rec dbg: type = body More...

#include <thorin/ast/ast.h>

Inheritance diagram for thorin::ast::RecDecl:
[legend]

Public Member Functions

 RecDecl (Loc loc, Dbg dbg, Ptr< Expr > &&type, Ptr< Expr > &&body, Ptr< RecDecl > &&next)
 
Dbg dbg () const
 
const Exprtype () const
 
const Exprbody () const
 
const RecDeclnext () const
 
void bind (Scopes &) const override
 
virtual void bind_decl (Scopes &) const
 
virtual void bind_body (Scopes &) const
 
void emit (Emitter &) const override
 
virtual void emit_decl (Emitter &) const
 
virtual void emit_body (Emitter &) const
 
std::ostream & stream (Tab &, std::ostream &) const override
 
- Public Member Functions inherited from thorin::ast::Decl
Ref def () const
 
- Public Member Functions inherited from thorin::ast::Node
Loc loc () const
 
void dump () const
 

Additional Inherited Members

- Protected Member Functions inherited from thorin::ast::ValDecl
 ValDecl (Loc loc)
 
- Protected Member Functions inherited from thorin::ast::Decl
 Decl (Loc loc)
 
- Protected Member Functions inherited from thorin::ast::Node
 Node (Loc loc)
 
virtual ~Node ()
 
- Protected Attributes inherited from thorin::ast::Decl
Ref def_ = nullptr
 

Detailed Description

.rec dbg: type = body

Definition at line 776 of file ast.h.

Constructor & Destructor Documentation

◆ RecDecl()

thorin::ast::RecDecl::RecDecl ( Loc  loc,
Dbg  dbg,
Ptr< Expr > &&  type,
Ptr< Expr > &&  body,
Ptr< RecDecl > &&  next 
)
inline

Definition at line 778 of file ast.h.

Member Function Documentation

◆ bind()

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

Implements thorin::ast::ValDecl.

Definition at line 265 of file bind.cpp.

◆ bind_body()

void thorin::ast::RecDecl::bind_body ( Scopes s) const
virtual

Reimplemented in thorin::ast::LamDecl.

Definition at line 282 of file bind.cpp.

◆ bind_decl()

void thorin::ast::RecDecl::bind_decl ( Scopes s) const
virtual

Reimplemented in thorin::ast::LamDecl.

Definition at line 271 of file bind.cpp.

References thorin::ast::Node::loc().

◆ body()

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

Definition at line 787 of file ast.h.

◆ dbg()

Dbg thorin::ast::RecDecl::dbg ( ) const
inline

Definition at line 785 of file ast.h.

◆ emit()

void thorin::ast::RecDecl::emit ( Emitter e) const
overridevirtual

Implements thorin::ast::ValDecl.

Definition at line 386 of file emit.cpp.

◆ emit_body()

void thorin::ast::RecDecl::emit_body ( Emitter e) const
virtual

Reimplemented in thorin::ast::LamDecl.

Definition at line 397 of file emit.cpp.

◆ emit_decl()

void thorin::ast::RecDecl::emit_decl ( Emitter e) const
virtual

Reimplemented in thorin::ast::LamDecl.

Definition at line 391 of file emit.cpp.

◆ next()

const RecDecl * thorin::ast::RecDecl::next ( ) const
inline

Definition at line 788 of file ast.h.

◆ stream()

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

Implements thorin::ast::Node.

Definition at line 182 of file stream.cpp.

References thorin::print().

◆ type()

const Expr * thorin::ast::RecDecl::type ( ) const
inline

Definition at line 786 of file ast.h.


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