|
MimIR 0.1
MimIR is my Intermediate Representation
|
dbg: type
More...
#include <mim/ast/ast.h>
Public Member Functions | |
| IdPtrn (Loc loc, Dbg dbg, Ptr< Expr > &&type) | |
| Dbg | dbg () const |
| const Expr * | type () const |
| void | bind (Scopes &, bool rebind, bool quiet) const override |
| const Def * | emit_value (Emitter &, const Def *) const override |
| const Def * | emit_type (Emitter &) const override |
| std::ostream & | stream (Tab &, std::ostream &) const override |
Public Member Functions inherited from mim::ast::Ptrn | |
| Ptrn (Loc loc) | |
| virtual bool | is_implicit () const |
Public Member Functions inherited from mim::ast::Decl | |
| const Def * | def () const |
Public Member Functions inherited from mim::ast::Node | |
| Loc | loc () const |
| void | dump () const |
Static Public Member Functions | |
| static Ptr< IdPtrn > | make_type (AST &ast, Ptr< Expr > &&type) |
| static Ptr< IdPtrn > | make_id (AST &ast, Dbg dbg, Ptr< Expr > &&type) |
Static Public Member Functions inherited from mim::ast::Ptrn | |
| static Ptr< Expr > | to_expr (AST &, Ptr< Ptrn > &&) |
| static Ptr< Ptrn > | to_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 | |
| const Def * | def_ = nullptr |
Definition at line 219 of file ast.h.
References dbg(), mim::ast::Node::loc(), mim::ast::Ptrn::Ptrn(), and type().
Referenced by make_id(), and make_type().
|
overridevirtual |
Implements mim::ast::Ptrn.
Definition at line 100 of file bind.cpp.
References mim::ast::Expr::bind(), dbg(), and type().
|
inline |
Definition at line 224 of file ast.h.
Referenced by bind(), emit_value(), IdPtrn(), make_id(), stream(), and mim::ast::Ptrn::to_expr().
Implements mim::ast::Ptrn.
Definition at line 86 of file emit.cpp.
References mim::ast::Expr::emit(), mim::ast::Node::loc(), and type().
Referenced by mim::ast::GrpPtrn::emit_type(), and emit_value().
Implements mim::ast::Ptrn.
Definition at line 61 of file emit.cpp.
References dbg(), mim::ast::Decl::def(), mim::ast::Decl::def_, and emit_type().
Definition at line 227 of file ast.h.
References IdPtrn(), mim::ast::Node::loc(), and type().
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 60 of file stream.cpp.
References dbg(), mim::print(), and type().
|
inline |
Definition at line 225 of file ast.h.
Referenced by bind(), emit_type(), IdPtrn(), make_id(), make_type(), and stream().