MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::ast::AliasPtrn Class Reference

ptrn as id More...

#include <mim/ast/ast.h>

Inheritance diagram for mim::ast::AliasPtrn:
[legend]

Public Member Functions

 AliasPtrn (Loc loc, Ptr< Ptrn > &&ptrn, Dbg dbg)
 
const Ptrnptrn () const
 
Dbg dbg () const
 
bool implicit () const override
 
void bind (Scopes &, bool rebind, bool quiet) const override
 
Ref emit_value (Emitter &, Ref) const override
 
Ref emit_type (Emitter &) const override
 
std::ostream & stream (Tab &, std::ostream &) const override
 
- Public Member Functions inherited from mim::ast::Ptrn
 Ptrn (Loc loc)
 
- Public Member Functions inherited from mim::ast::Decl
Ref def () const
 
- Public Member Functions inherited from mim::ast::Node
Loc loc () const
 
void dump () const
 

Additional Inherited Members

- Static Public Member Functions inherited from mim::ast::Ptrn
static Ptr< Exprto_expr (AST &, Ptr< Ptrn > &&)
 
static Ptr< Ptrnto_ptrn (Ptr< Expr > &&)
 
- Protected Member Functions inherited from mim::ast::Decl
 Decl (Loc loc)
 
- Protected Member Functions inherited from mim::ast::Node
 Node (Loc loc)
 
virtual ~Node ()
 
- Protected Attributes inherited from mim::ast::Decl
Ref def_ = nullptr
 

Detailed Description

ptrn as id

Definition at line 265 of file ast.h.

Constructor & Destructor Documentation

◆ AliasPtrn()

mim::ast::AliasPtrn::AliasPtrn ( Loc loc,
Ptr< Ptrn > && ptrn,
Dbg dbg )
inline

Definition at line 267 of file ast.h.

Member Function Documentation

◆ bind()

void mim::ast::AliasPtrn::bind ( Scopes & s,
bool rebind,
bool quiet ) const
overridevirtual

Implements mim::ast::Ptrn.

Definition at line 102 of file bind.cpp.

References mim::ast::Ptrn::bind(), dbg(), and ptrn().

◆ dbg()

Dbg mim::ast::AliasPtrn::dbg ( ) const
inline

Definition at line 273 of file ast.h.

Referenced by bind(), emit_value(), and stream().

◆ emit_type()

Ref mim::ast::AliasPtrn::emit_type ( Emitter & e) const
overridevirtual

Implements mim::ast::Ptrn.

Definition at line 82 of file emit.cpp.

References mim::ast::Ptrn::emit_type(), and ptrn().

◆ emit_value()

Ref mim::ast::AliasPtrn::emit_value ( Emitter & e,
Ref def ) const
overridevirtual

◆ implicit()

bool mim::ast::AliasPtrn::implicit ( ) const
inlineoverridevirtual

Reimplemented from mim::ast::Ptrn.

Definition at line 274 of file ast.h.

References mim::ast::Ptrn::implicit(), and ptrn().

◆ ptrn()

const Ptrn * mim::ast::AliasPtrn::ptrn ( ) const
inline

Definition at line 272 of file ast.h.

Referenced by bind(), emit_type(), emit_value(), implicit(), and stream().

◆ stream()

std::ostream & mim::ast::AliasPtrn::stream ( Tab & tab,
std::ostream & os ) const
overridevirtual

Implements mim::ast::Node.

Definition at line 54 of file stream.cpp.

References dbg(), mim::print(), and ptrn().


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