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

dom -> codom More...

#include <mim/ast/ast.h>

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

Public Member Functions

 ArrowExpr (Loc loc, Ptr< Expr > &&dom, Ptr< Expr > &&codom)
 
- Public Member Functions inherited from mim::ast::Expr
Ref emit (Emitter &) const
 
- Public Member Functions inherited from mim::ast::Node
Loc loc () const
 
void dump () const
 

Private Member Functions

void bind (Scopes &) const override
 
Ref emit_decl (Emitter &, Ref type) const override
 
void emit_body (Emitter &, Ref decl) const override
 
std::ostream & stream (Tab &, std::ostream &) const override
 
Ref emit_ (Emitter &) const override
 

Additional Inherited Members

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

Detailed Description

dom -> codom

Definition at line 413 of file ast.h.

Constructor & Destructor Documentation

◆ ArrowExpr()

mim::ast::ArrowExpr::ArrowExpr ( Loc loc,
Ptr< Expr > && dom,
Ptr< Expr > && codom )
inline

Definition at line 415 of file ast.h.

Member Function Documentation

◆ bind()

void mim::ast::ArrowExpr::bind ( Scopes & s) const
overrideprivatevirtual

Implements mim::ast::Expr.

Definition at line 138 of file bind.cpp.

References mim::ast::Expr::bind().

◆ emit_()

Ref mim::ast::ArrowExpr::emit_ ( Emitter & e) const
overrideprivatevirtual

Implements mim::ast::Expr.

Definition at line 188 of file emit.cpp.

References mim::ast::Expr::emit().

◆ emit_body()

void mim::ast::ArrowExpr::emit_body ( Emitter & e,
Ref decl ) const
overrideprivatevirtual

Reimplemented from mim::ast::Expr.

Definition at line 183 of file emit.cpp.

References mim::ast::Expr::emit(), mim::Pi::set_codom(), and mim::Pi::set_dom().

◆ emit_decl()

Ref mim::ast::ArrowExpr::emit_decl ( Emitter & e,
Ref type ) const
overrideprivatevirtual

Reimplemented from mim::ast::Expr.

Definition at line 181 of file emit.cpp.

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

◆ stream()

std::ostream & mim::ast::ArrowExpr::stream ( Tab & tab,
std::ostream & os ) const
overrideprivatevirtual

Implements mim::ast::Node.

Definition at line 110 of file stream.cpp.

References mim::print().


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