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

#include <thorin/fe/ast.h>

Inheritance diagram for thorin::TuplePtrn:
[legend]

Public Member Functions

 TuplePtrn (Dbg dbg, bool rebind, Ptrns &&ptrns, const Def *type, std::vector< Infer * > &&infers, Def *decl)
 
const Ptrnsptrns () const
 
const Ptrnptrn (size_t i) const
 
size_t num_ptrns () const
 
void bind (Scopes &, const Def *, bool rebind=false) const override
 
const Deftype (World &, Def2Fields &) const override
 
- Public Member Functions inherited from thorin::Ptrn
 Ptrn (Dbg dbg, bool rebind, const Def *type)
 
virtual ~Ptrn ()
 
Dbg dbg () const
 
Loc loc () const
 
Sym sym () const
 
bool rebind () const
 
bool is_anonymous () const
 

Additional Inherited Members

- Protected Attributes inherited from thorin::Ptrn
Dbg dbg_
 
bool rebind_
 
const Deftype_
 

Detailed Description

Definition at line 56 of file ast.h.

Constructor & Destructor Documentation

◆ TuplePtrn()

thorin::TuplePtrn::TuplePtrn ( Dbg  dbg,
bool  rebind,
Ptrns &&  ptrns,
const Def type,
std::vector< Infer * > &&  infers,
Def decl 
)
inline

Definition at line 58 of file ast.h.

Member Function Documentation

◆ bind()

void thorin::TuplePtrn::bind ( Scopes scopes,
const Def def,
bool  rebind = false 
) const
overridevirtual

◆ num_ptrns()

size_t thorin::TuplePtrn::num_ptrns ( ) const
inline

Definition at line 66 of file ast.h.

References ptrns().

Referenced by bind(), and type().

◆ ptrn()

const Ptrn * thorin::TuplePtrn::ptrn ( size_t  i) const
inline

Definition at line 65 of file ast.h.

Referenced by bind(), and type().

◆ ptrns()

const Ptrns & thorin::TuplePtrn::ptrns ( ) const
inline

Definition at line 64 of file ast.h.

Referenced by num_ptrns().

◆ type()


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