MimIR 0.1
MimIR is my Intermediate Representation
|
let ptrn: type = value;
More...
#include <mim/ast/ast.h>
Public Member Functions | |
LetDecl (Loc loc, Ptr< Ptrn > &&ptrn, Ptr< Expr > &&value) | |
const Ptrn * | ptrn () const |
const Expr * | value () const |
void | bind (Scopes &) const override |
void | emit (Emitter &) const override |
std::ostream & | stream (Tab &, std::ostream &) const override |
![]() | |
const Def * | def () const |
![]() | |
Loc | loc () const |
void | dump () const |
Additional Inherited Members | |
![]() | |
ValDecl (Loc loc) | |
![]() | |
Decl (Loc loc) | |
![]() | |
Node (Loc loc) | |
virtual | ~Node () |
![]() | |
const Def * | def_ = nullptr |
Definition at line 753 of file ast.h.
References mim::ast::Node::loc(), ptrn(), mim::ast::ValDecl::ValDecl(), and value().
|
overridevirtual |
Implements mim::ast::ValDecl.
|
overridevirtual |
Implements mim::ast::ValDecl.
Definition at line 395 of file emit.cpp.
References mim::ast::Decl::def_, ptrn(), and value().
|
inline |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 179 of file stream.cpp.
References mim::print(), ptrn(), and value().
|
inline |