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

#include <mim/ast/ast.h>

Inheritance diagram for mim::ast::PiExpr::Dom:
[legend]

Public Member Functions

 Dom (Loc loc, bool is_implicit, Ptr< Ptrn > &&ptrn)
 
bool is_implicit () const
 
const Ptrnptrn () const
 
const IdPtrnret () const
 
void add_ret (AST &ast, Ptr< Expr > &&type) const
 
virtual void bind (Scopes &scopes, bool quiet=false) const
 
virtual void emit_type (Emitter &) const
 
std::ostream & stream (Tab &, std::ostream &) const override
 
- Public Member Functions inherited from mim::ast::Node
Loc loc () const
 
void dump () const
 

Protected Attributes

Pipi_ = nullptr
 
Pidecl_ = nullptr
 

Friends

class PiExpr
 

Additional Inherited Members

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

Detailed Description

Definition at line 443 of file ast.h.

Constructor & Destructor Documentation

◆ Dom()

mim::ast::PiExpr::Dom::Dom ( Loc loc,
bool is_implicit,
Ptr< Ptrn > && ptrn )
inline

Definition at line 445 of file ast.h.

Member Function Documentation

◆ add_ret()

void mim::ast::PiExpr::Dom::add_ret ( AST & ast,
Ptr< Expr > && type ) const
inline

Definition at line 454 of file ast.h.

References mim::ast::Node::loc(), mim::ast::AST::ptr(), and mim::ast::AST::sym_return().

◆ bind()

void mim::ast::PiExpr::Dom::bind ( Scopes & scopes,
bool quiet = false ) const
virtual

◆ emit_type()

◆ is_implicit()

bool mim::ast::PiExpr::Dom::is_implicit ( ) const
inline

Definition at line 450 of file ast.h.

Referenced by emit_type(), and stream().

◆ ptrn()

const Ptrn * mim::ast::PiExpr::Dom::ptrn ( ) const
inline

Definition at line 451 of file ast.h.

Referenced by bind(), emit_type(), and stream().

◆ ret()

const IdPtrn * mim::ast::PiExpr::Dom::ret ( ) const
inline

Definition at line 452 of file ast.h.

Referenced by bind(), emit_type(), and stream().

◆ stream()

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

Implements mim::ast::Node.

Definition at line 114 of file stream.cpp.

References is_implicit(), mim::print(), ptrn(), and ret().

Friends And Related Symbol Documentation

◆ PiExpr

friend class PiExpr
friend

Definition at line 472 of file ast.h.

Member Data Documentation

◆ decl_

Pi* mim::ast::PiExpr::Dom::decl_ = nullptr
mutableprotected

Definition at line 465 of file ast.h.

Referenced by emit_type().

◆ pi_

Pi* mim::ast::PiExpr::Dom::pi_ = nullptr
mutableprotected

Definition at line 464 of file ast.h.

Referenced by mim::ast::PiExpr::emit_(), mim::ast::LamDecl::emit_decl(), and emit_type().


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