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

ptrn as dbg 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 override
 The name this Decl introduces; anonymous if it has none.
bool is_implicit () const override
void bind (Scopes &, bool rebind, bool quiet) const override
const Defemit_value (Emitter &, const Def *) const override
const Defemit_type (Emitter &) const override
void stream (fe::Tab &, std::ostream &) const override
Public Member Functions inherited from mim::ast::Ptrn
 Ptrn (Loc loc)
const Defemit_proj (Emitter &, const Def *def, size_t n, size_t i) const
 Ptrn::emit_value on def's i-th of n projections - with this Ptrn's Loc, so the projection is blamed on the binder it introduces instead of on the enclosing pattern.
Public Member Functions inherited from mim::ast::Decl
const Defdef () const
virtual const Scopescope () const
 Non-nullptr if this Decl is a module whose members a Path may walk into.
virtual std::pair< AnnexInfo *, sub_tannex_sub () const
 The (AnnexInfo, sub) slot this decl registered itself under as an annex; {nullptr, 0} if it isn't one.
virtual Vis vis () const
 A ValDecl's own Vis; Pub for anything else (Ptrn, Import, ...), which the priv/pub system ignores.
virtual bool is_extern () const
 Whether this decl crosses the Mim/native boundary (extern); body presence picks which side supplies it.
virtual bool is_anx () const
 Whether this decl is registered as a compiler-exposed annex (anx).
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 >)
Protected Member Functions inherited from mim::ast::Decl
 Decl (Loc loc)
Protected Member Functions inherited from mim::ast::Node
 Node (Loc loc)
Protected Attributes inherited from mim::ast::Decl
const Defdef_ = nullptr

Detailed Description

ptrn as dbg

Definition at line 368 of file ast.h.

Constructor & Destructor Documentation

◆ AliasPtrn()

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

Definition at line 370 of file ast.h.

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

Member Function Documentation

◆ bind()

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

Implements mim::ast::Ptrn.

Definition at line 168 of file bind.cpp.

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

◆ dbg()

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

The name this Decl introduces; anonymous if it has none.

Reimplemented from mim::ast::Decl.

Definition at line 376 of file ast.h.

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

◆ emit_type()

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

Implements mim::ast::Ptrn.

Definition at line 103 of file emit.cpp.

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

◆ emit_value()

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

◆ is_implicit()

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

Reimplemented from mim::ast::Ptrn.

Definition at line 377 of file ast.h.

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

◆ ptrn()

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

Definition at line 375 of file ast.h.

References mim::ast::Ptrn::Ptrn().

Referenced by AliasPtrn(), bind(), emit_type(), emit_value(), is_implicit(), and stream().

◆ stream()

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

Implements mim::ast::Node.

Definition at line 83 of file stream.cpp.

References dbg(), ptrn(), and mim::ast::S::S().


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