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

.rec dbg: type = body More...

#include <mim/ast/ast.h>

Inheritance diagram for mim::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 mim::ast::ValDecl
- Public Member Functions inherited from mim::ast::Decl
Ref def () const
 
- Public Member Functions inherited from mim::ast::Node
Loc loc () const
 
void dump () const
 

Additional Inherited Members

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

Detailed Description

.rec dbg: type = body

Definition at line 766 of file ast.h.

Constructor & Destructor Documentation

◆ RecDecl()

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

Definition at line 768 of file ast.h.

Member Function Documentation

◆ bind()

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

Implements mim::ast::ValDecl.

Definition at line 261 of file bind.cpp.

◆ bind_body()

void mim::ast::RecDecl::bind_body ( Scopes & s) const
virtual

Reimplemented in mim::ast::LamDecl.

Definition at line 278 of file bind.cpp.

◆ bind_decl()

void mim::ast::RecDecl::bind_decl ( Scopes & s) const
virtual

Reimplemented in mim::ast::LamDecl.

Definition at line 267 of file bind.cpp.

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

◆ body()

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

Definition at line 777 of file ast.h.

◆ dbg()

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

Definition at line 775 of file ast.h.

◆ emit()

void mim::ast::RecDecl::emit ( Emitter & e) const
overridevirtual

Implements mim::ast::ValDecl.

Definition at line 386 of file emit.cpp.

◆ emit_body()

void mim::ast::RecDecl::emit_body ( Emitter & e) const
virtual

Reimplemented in mim::ast::LamDecl.

Definition at line 397 of file emit.cpp.

◆ emit_decl()

void mim::ast::RecDecl::emit_decl ( Emitter & e) const
virtual

Reimplemented in mim::ast::LamDecl.

Definition at line 391 of file emit.cpp.

◆ next()

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

Definition at line 778 of file ast.h.

◆ stream()

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

Implements mim::ast::Node.

Definition at line 183 of file stream.cpp.

References mim::print().

◆ type()

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

Definition at line 776 of file ast.h.


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