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

«body» or ‹body› if SingleExpr::is_wrap. More...

#include <mim/ast/ast.h>

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

Public Member Functions

 SingleExpr (Loc loc, bool is_wrap, Ptr< Expr > body)
bool is_wrap () const
const Expr * body () const
void bind (Scopes &) const override
void stream (fe::Tab &, std::ostream &) const override
Public Member Functions inherited from mim::ast::Expr
const Def * emit (Emitter &) const
const Def * emit_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 Def * emit_ (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

«body» or ‹body› if SingleExpr::is_wrap.

Definition at line 971 of file ast.h.

Constructor & Destructor Documentation

◆ SingleExpr()

mim::ast::SingleExpr::SingleExpr ( Loc loc,
bool is_wrap,
Ptr< Expr > body )
inline

Definition at line 973 of file ast.h.

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

Member Function Documentation

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 337 of file bind.cpp.

References body().

◆ body()

const Expr * mim::ast::SingleExpr::body ( ) const
inline

Definition at line 979 of file ast.h.

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

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

◆ emit_()

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

Implements mim::ast::Expr.

Definition at line 873 of file emit.cpp.

References body(), and is_wrap().

◆ is_wrap()

bool mim::ast::SingleExpr::is_wrap ( ) const
inline

Definition at line 978 of file ast.h.

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

◆ stream()

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

Implements mim::ast::Node.

Definition at line 230 of file stream.cpp.

References body(), is_wrap(), and mim::ast::S::S().


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