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

dbg: type More...

#include <mim/ast/ast.h>

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

Public Member Functions

 IdPtrn (Loc loc, bool rebind, Dbg dbg, Ptr< Expr > &&type)
 
const Exprtype () 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 mim::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 mim::ast::Decl
Ref def () const
 
- Public Member Functions inherited from mim::ast::Node
Loc loc () const
 
void dump () const
 

Static Public Member Functions

static Ptr< IdPtrnmk_type (AST &ast, Ptr< Expr > &&type)
 
static Ptr< IdPtrnmk_id (AST &ast, Dbg dbg, Ptr< Expr > &&type)
 
- Static Public Member Functions inherited from mim::ast::Ptrn
static Ptr< Exprto_expr (AST &, Ptr< Ptrn > &&)
 
static Ptr< Ptrnto_ptrn (Ptr< Expr > &&)
 

Additional Inherited Members

- 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

dbg: type

Definition at line 205 of file ast.h.

Constructor & Destructor Documentation

◆ IdPtrn()

mim::ast::IdPtrn::IdPtrn ( Loc loc,
bool rebind,
Dbg dbg,
Ptr< Expr > && type )
inline

Definition at line 207 of file ast.h.

Member Function Documentation

◆ bind()

void mim::ast::IdPtrn::bind ( Scopes & s,
bool quiet = false ) const
overridevirtual

◆ emit_type()

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

Implements mim::ast::Ptrn.

Definition at line 70 of file emit.cpp.

References mim::ast::Expr::emit(), mim::ast::Node::loc(), and type().

Referenced by mim::ast::GrpPtrn::emit_type().

◆ mk_id()

static Ptr< IdPtrn > mim::ast::IdPtrn::mk_id ( AST & ast,
Dbg dbg,
Ptr< Expr > && type )
inlinestatic

◆ mk_type()

static Ptr< IdPtrn > mim::ast::IdPtrn::mk_type ( AST & ast,
Ptr< Expr > && type )
inlinestatic

Definition at line 213 of file ast.h.

References mim::ast::Node::loc(), mim::ast::AST::ptr(), mim::ast::AST::sym_anon(), and type().

◆ stream()

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

Implements mim::ast::Node.

Definition at line 55 of file stream.cpp.

References mim::ast::Ptrn::dbg(), mim::print(), and type().

◆ type()

const Expr * mim::ast::IdPtrn::type ( ) const
inline

Definition at line 211 of file ast.h.

Referenced by bind(), emit_type(), mk_id(), mk_type(), and stream().


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