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

.let ptrn: type = value; More...

#include <thorin/ast/ast.h>

Inheritance diagram for thorin::ast::LetDecl:
[legend]

Public Member Functions

 LetDecl (Loc loc, Ptr< Ptrn > &&ptrn, Ptr< Expr > &&value)
 
const Ptrnptrn () const
 
const Exprvalue () 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
 

Detailed Description

.let ptrn: type = value;

Definition at line 701 of file ast.h.

Constructor & Destructor Documentation

◆ LetDecl()

thorin::ast::LetDecl::LetDecl ( Loc  loc,
Ptr< Ptrn > &&  ptrn,
Ptr< Expr > &&  value 
)
inline

Definition at line 703 of file ast.h.

Member Function Documentation

◆ bind()

void thorin::ast::LetDecl::bind ( Scopes s) const
overridevirtual

Implements thorin::ast::ValDecl.

Definition at line 256 of file bind.cpp.

◆ emit()

void thorin::ast::LetDecl::emit ( Emitter e) const
overridevirtual

Implements thorin::ast::ValDecl.

Definition at line 380 of file emit.cpp.

◆ ptrn()

const Ptrn * thorin::ast::LetDecl::ptrn ( ) const
inline

Definition at line 708 of file ast.h.

◆ stream()

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

Implements thorin::ast::Node.

Definition at line 178 of file stream.cpp.

References thorin::print().

◆ value()

const Expr * thorin::ast::LetDecl::value ( ) const
inline

Definition at line 709 of file ast.h.


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