Thorin 1.9.0
The Higher ORder INtermediate representation
|
.let ptrn: type = value;
More...
#include <thorin/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 |
Public Member Functions inherited from thorin::ast::Decl | |
Ref | def () const |
Public Member Functions inherited from thorin::ast::Node | |
Loc | loc () const |
void | dump () const |
Additional Inherited Members | |
Protected Member Functions inherited from thorin::ast::ValDecl | |
ValDecl (Loc loc) | |
Protected Member Functions inherited from thorin::ast::Decl | |
Decl (Loc loc) | |
Protected Member Functions inherited from thorin::ast::Node | |
Node (Loc loc) | |
virtual | ~Node () |
Protected Attributes inherited from thorin::ast::Decl | |
Ref | def_ = nullptr |
|
overridevirtual |
Implements thorin::ast::ValDecl.
|
overridevirtual |
Implements thorin::ast::ValDecl.
|
overridevirtual |
Implements thorin::ast::Node.
Definition at line 178 of file stream.cpp.
References thorin::print().