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

#include <thorin/ast/ast.h>

Inheritance diagram for thorin::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 thorin::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 thorin::ast::Node
 Node (Loc loc)
 
virtual ~Node ()
 

Detailed Description

Definition at line 449 of file ast.h.

Constructor & Destructor Documentation

◆ Dom()

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

Definition at line 451 of file ast.h.

Member Function Documentation

◆ add_ret()

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

◆ bind()

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

◆ emit_type()

◆ is_implicit()

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

Definition at line 456 of file ast.h.

Referenced by emit_type(), and stream().

◆ ptrn()

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

Definition at line 457 of file ast.h.

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

◆ ret()

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

Definition at line 458 of file ast.h.

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

◆ stream()

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

Implements thorin::ast::Node.

Definition at line 113 of file stream.cpp.

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

Friends And Related Symbol Documentation

◆ PiExpr

friend class PiExpr
friend

Definition at line 478 of file ast.h.

Member Data Documentation

◆ decl_

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

Definition at line 471 of file ast.h.

Referenced by emit_type().

◆ pi_

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

Definition at line 470 of file ast.h.

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


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