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

dbg_0 ... dbg_n-2 id where id = dbg_n-1: type More...

#include <thorin/ast/ast.h>

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

Public Member Functions

 GrpPtrn (Dbg dbg, const IdPtrn *id)
 
const IdPtrnid () const
 
void bind (Scopes &, bool quiet=false) const override
 
Ref emit_type (Emitter &) const override
 
std::ostream & stream (Tab &, std::ostream &) const override
 
- Public Member Functions inherited from thorin::ast::Ptrn
 Ptrn (Loc loc, bool rebind, Dbg dbg)
 
bool rebind () const
 
Dbg dbg () const
 
Ref emit_value (Emitter &, Ref) const
 
- 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

- Static Public Member Functions inherited from thorin::ast::Ptrn
static Ptr< Exprto_expr (AST &, Ptr< Ptrn > &&)
 
static Ptr< Ptrnto_ptrn (Ptr< Expr > &&)
 
- 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

dbg_0 ... dbg_n-2 id where id = dbg_n-1: type

Definition at line 222 of file ast.h.

Constructor & Destructor Documentation

◆ GrpPtrn()

thorin::ast::GrpPtrn::GrpPtrn ( Dbg  dbg,
const IdPtrn id 
)
inline

Definition at line 224 of file ast.h.

Member Function Documentation

◆ bind()

void thorin::ast::GrpPtrn::bind ( Scopes s,
bool  quiet = false 
) const
overridevirtual

Implements thorin::ast::Ptrn.

Definition at line 104 of file bind.cpp.

References thorin::ast::Ptrn::dbg(), and thorin::ast::Ptrn::rebind().

◆ emit_type()

Ref thorin::ast::GrpPtrn::emit_type ( Emitter e) const
overridevirtual

Implements thorin::ast::Ptrn.

Definition at line 73 of file emit.cpp.

References thorin::ast::IdPtrn::emit_type(), and id().

◆ id()

const IdPtrn * thorin::ast::GrpPtrn::id ( ) const
inline

Definition at line 228 of file ast.h.

Referenced by emit_type().

◆ stream()

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

Implements thorin::ast::Node.

Definition at line 62 of file stream.cpp.

References thorin::ast::Ptrn::dbg().


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