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

#include <mim/ast/ast.h>

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

Public Member Functions

Ref def () const
 
- Public Member Functions inherited from mim::ast::Node
Loc loc () const
 
virtual std::ostream & stream (Tab &, std::ostream &) const =0
 
void dump () const
 

Protected Member Functions

 Decl (Loc loc)
 
- Protected Member Functions inherited from mim::ast::Node
 Node (Loc loc)
 
virtual ~Node ()
 

Protected Attributes

Ref def_ = nullptr
 

Detailed Description

Definition at line 145 of file ast.h.

Constructor & Destructor Documentation

◆ Decl()

mim::ast::Decl::Decl ( Loc loc)
inlineprotected

Definition at line 147 of file ast.h.

Member Function Documentation

◆ def()

Ref mim::ast::Decl::def ( ) const
inline

Definition at line 151 of file ast.h.

References def_.

Referenced by mim::ast::IdExpr::emit_(), mim::ast::Ptrn::emit_value(), and mim::ast::TuplePtrn::emit_value_().

Member Data Documentation

◆ def_

Ref mim::ast::Decl::def_ = nullptr
mutableprotected

Definition at line 154 of file ast.h.

Referenced by def(), and mim::ast::Ptrn::emit_value().


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