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

#include <mim/ast/ast.h>

Inheritance diagram for mim::ast::MatchExpr::Arm:
[legend]

Public Member Functions

 Arm (Loc loc, Ptr< Ptrn > &&ptrn, Ptr< Expr > &&body)
const Ptrnptrn () const
const Exprbody () const
virtual void bind (Scopes &) const
Lamemit (Emitter &) const
std::ostream & stream (Tab &, std::ostream &) const override
Public Member Functions inherited from mim::ast::Node
Loc loc () const
void dump () const

Additional Inherited Members

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

Detailed Description

Definition at line 501 of file ast.h.

Constructor & Destructor Documentation

◆ Arm()

mim::ast::MatchExpr::Arm::Arm ( Loc loc,
Ptr< Ptrn > && ptrn,
Ptr< Expr > && body )
inline

Definition at line 503 of file ast.h.

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

Member Function Documentation

◆ bind()

void mim::ast::MatchExpr::Arm::bind ( Scopes & s) const
virtual

Definition at line 163 of file bind.cpp.

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

◆ body()

const Expr * mim::ast::MatchExpr::Arm::body ( ) const
inline

Definition at line 509 of file ast.h.

References mim::ast::Expr::Expr().

Referenced by Arm(), bind(), emit(), and stream().

◆ emit()

Lam * mim::ast::MatchExpr::Arm::emit ( Emitter & e) const

◆ ptrn()

const Ptrn * mim::ast::MatchExpr::Arm::ptrn ( ) const
inline

Definition at line 508 of file ast.h.

Referenced by Arm(), bind(), emit(), and stream().

◆ stream()

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

Implements mim::ast::Node.

Definition at line 124 of file stream.cpp.

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


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