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

One dom of a PiExpr: ptrn with an optional -> ret type. More...

#include <mim/ast/ast.h>

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

Public Member Functions

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

Protected Attributes

Pi * decl_ = nullptr
Pi * pi_ = nullptr

Friends

class PiExpr

Additional Inherited Members

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

Detailed Description

One dom of a PiExpr: ptrn with an optional -> ret type.

Definition at line 787 of file ast.h.

Constructor & Destructor Documentation

◆ Dom()

mim::ast::PiExpr::Dom::Dom ( Loc loc,
Ptr< Ptrn > ptrn,
Ptr< Expr > ret_type )
inline

Definition at line 789 of file ast.h.

References mim::ast::Node::loc(), mim::ast::Node::Node(), ptrn(), and ret_type().

Member Function Documentation

◆ bind()

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

Reimplemented in mim::ast::LamDecl::Dom.

Definition at line 287 of file bind.cpp.

References ptrn(), and ret_type().

Referenced by mim::ast::LamDecl::Dom::bind().

◆ emit_type()

void mim::ast::PiExpr::Dom::emit_type ( Emitter & e) const
virtual

◆ is_implicit()

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

Definition at line 794 of file ast.h.

Referenced by emit_type().

◆ ptrn()

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

◆ ret_type()

const Expr * mim::ast::PiExpr::Dom::ret_type ( ) const
inline

◆ stream()

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

Implements mim::ast::Node.

Definition at line 201 of file stream.cpp.

References ptrn(), ret_type(), and mim::ast::S::S().

◆ PiExpr

friend class PiExpr
friend

Definition at line 810 of file ast.h.

References PiExpr.

Referenced by mim::ast::LamDecl::Dom::Dom(), and PiExpr.

Member Data Documentation

◆ decl_

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

Definition at line 803 of file ast.h.

Referenced by emit_type().

◆ pi_

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

Definition at line 804 of file ast.h.

Referenced by emit_type(), and mim::ast::LamDecl::Dom::emit_value().


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