MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches

callee arg More...

#include <mim/ast/ast.h>

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

Public Member Functions

 AppExpr (Loc loc, bool is_explicit, Ptr< Expr > &&callee, Ptr< Expr > &&arg)
bool is_explicit () const
const Exprcallee () const
const Exprarg () const
void bind (Scopes &) const override
std::ostream & stream (Tab &, std::ostream &) const override
Public Member Functions inherited from mim::ast::Expr
const Defemit (Emitter &) const
virtual const Defemit_decl (Emitter &, const Def *) const
virtual void emit_body (Emitter &, const Def *) const
Public Member Functions inherited from mim::ast::Node
Loc loc () const
void dump () const

Private Member Functions

const Defemit_ (Emitter &) const override

Additional Inherited Members

Public Types inherited from mim::ast::Expr
using Prec = ast::Prec
 Backward-compatible alias; prefer the free-standing ast::Prec.
Protected Member Functions inherited from mim::ast::Expr
 Expr (Loc loc)
Protected Member Functions inherited from mim::ast::Node
 Node (Loc loc)
virtual ~Node ()

Detailed Description

callee arg

Definition at line 646 of file ast.h.

Constructor & Destructor Documentation

◆ AppExpr()

mim::ast::AppExpr::AppExpr ( Loc loc,
bool is_explicit,
Ptr< Expr > && callee,
Ptr< Expr > && arg )
inline

Definition at line 648 of file ast.h.

References arg(), callee(), mim::ast::Expr::Expr(), is_explicit(), and mim::ast::Node::loc().

Member Function Documentation

◆ arg()

const Expr * mim::ast::AppExpr::arg ( ) const
inline

Definition at line 656 of file ast.h.

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

Referenced by AppExpr(), bind(), emit_(), and stream().

◆ bind()

void mim::ast::AppExpr::bind ( Scopes & s) const
overridevirtual

Implements mim::ast::Expr.

Definition at line 196 of file bind.cpp.

References arg(), and callee().

◆ callee()

const Expr * mim::ast::AppExpr::callee ( ) const
inline

Definition at line 655 of file ast.h.

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

Referenced by AppExpr(), bind(), emit_(), and stream().

◆ emit_()

const Def * mim::ast::AppExpr::emit_ ( Emitter & e) const
overrideprivatevirtual

Implements mim::ast::Expr.

Definition at line 295 of file emit.cpp.

References arg(), callee(), and is_explicit().

◆ is_explicit()

bool mim::ast::AppExpr::is_explicit ( ) const
inline

Definition at line 654 of file ast.h.

Referenced by AppExpr(), emit_(), and stream().

◆ stream()

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

Implements mim::ast::Node.

Definition at line 152 of file stream.cpp.

References arg(), callee(), is_explicit(), and mim::print().


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