ptrn => body of a MatchExpr. More...
#include <mim/ast/ast.h>
Public Member Functions | |
| Arm (Loc loc, Ptr< Ptrn > ptrn, Ptr< Expr > body) | |
| const Ptrn * | ptrn () const |
| const Expr * | body () const |
| virtual void | bind (Scopes &) const |
| Lam * | emit (Emitter &) const |
| void | stream (fe::Tab &, std::ostream &) const override |
| Public Member Functions inherited from mim::ast::Node | |
| Loc | loc () const |
| void | dump () const |
Additional Inherited Members | |
| Protected Member Functions inherited from mim::ast::Node | |
| Node (Loc loc) | |
Definition at line 639 of file ast.h.
References body(), mim::ast::Node::loc(), mim::ast::Node::Node(), and ptrn().
|
virtual |
Definition at line 254 of file bind.cpp.
References mim::ast::Expr::bind(), mim::ast::Ptrn::bind(), body(), and ptrn().
Referenced by mim::ast::MatchExpr::bind().
|
inline |
Definition at line 353 of file emit.cpp.
References body(), emit(), mim::ast::Ptrn::emit_type(), mim::ast::Ptrn::emit_value(), mim::ast::Node::loc(), ptrn(), and mim::Def::set().
Referenced by emit(), and mim::ast::MatchExpr::emit_().
|
inline |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 146 of file stream.cpp.
References body(), ptrn(), and mim::ast::S::S().