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

callee arg More...

#include <mim/ast/ast.h>

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

Public Member Functions

 AppExpr (Loc loc, Ptr< Expr > callee, Ptr< Expr > arg)
const Exprcallee () const
const Exprarg () const
void bind (Scopes &) const override
void stream (fe::Tab &, std::ostream &) const override
Public Member Functions inherited from mim::ast::Expr
const Defemit (Emitter &) const
const Defemit_decl (Emitter &, const Def *type) const
void emit_body (Emitter &, const Def *decl) 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

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

Detailed Description

callee arg

Definition at line 755 of file ast.h.

Constructor & Destructor Documentation

◆ AppExpr()

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

Definition at line 757 of file ast.h.

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

Member Function Documentation

◆ arg()

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

Definition at line 763 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 287 of file bind.cpp.

References arg(), and callee().

◆ callee()

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

Definition at line 762 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 418 of file emit.cpp.

References arg(), and callee().

◆ stream()

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

Implements mim::ast::Node.

Definition at line 172 of file stream.cpp.

References arg(), callee(), and mim::ast::S::S().


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