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

.cfun dbg dom -> codom More...

#include <mim/ast/ast.h>

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

Public Member Functions

 CDecl (Loc loc, Tok::Tag tag, Dbg dbg, Ptr< Ptrn > &&dom, Ptr< Expr > &&codom)
 
Dbg dbg () const
 
Tok::Tag tag () const
 
const Ptrndom () const
 
const Exprcodom () const
 
void bind (Scopes &) const override
 
void emit (Emitter &) const override
 
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

.cfun dbg dom -> codom

Definition at line 866 of file ast.h.

Constructor & Destructor Documentation

◆ CDecl()

mim::ast::CDecl::CDecl ( Loc loc,
Tok::Tag tag,
Dbg dbg,
Ptr< Ptrn > && dom,
Ptr< Expr > && codom )
inline

Definition at line 868 of file ast.h.

Member Function Documentation

◆ bind()

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

Implements mim::ast::ValDecl.

Definition at line 322 of file bind.cpp.

References mim::ast::Expr::bind(), and mim::ast::PiExpr::Dom::bind().

◆ codom()

const Expr * mim::ast::CDecl::codom ( ) const
inline

Definition at line 878 of file ast.h.

◆ dbg()

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

Definition at line 875 of file ast.h.

◆ dom()

const Ptrn * mim::ast::CDecl::dom ( ) const
inline

Definition at line 877 of file ast.h.

◆ emit()

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

Implements mim::ast::ValDecl.

Definition at line 451 of file emit.cpp.

References mim::ast::Expr::emit(), and mim::ast::PiExpr::Dom::emit_type().

◆ stream()

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

Implements mim::ast::Node.

Definition at line 213 of file stream.cpp.

References mim::print().

◆ tag()

Tok::Tag mim::ast::CDecl::tag ( ) const
inline

Definition at line 876 of file ast.h.


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