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

decls expr or expr where decls if DeclExpr::is_where. More...

#include <mim/ast/ast.h>

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

Public Types

using VLA_Types = std::tuple<Ptr<ValDecl>>

Public Member Functions

 DeclExpr (Loc loc, Ptr< Expr > expr, bool is_where)
auto decls () const
bool is_where () const
const Exprexpr () 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

decls expr or expr where decls if DeclExpr::is_where.

Definition at line 532 of file ast.h.

Member Typedef Documentation

◆ VLA_Types

Definition at line 534 of file ast.h.

Constructor & Destructor Documentation

◆ DeclExpr()

mim::ast::DeclExpr::DeclExpr ( Loc loc,
Ptr< Expr > expr,
bool is_where )
inline

Definition at line 536 of file ast.h.

References mim::ast::Expr::Expr(), expr(), is_where(), and mim::ast::Node::loc().

Member Function Documentation

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 234 of file bind.cpp.

References mim::ast::Expr::bind(), decls(), expr(), and is_where().

◆ decls()

auto mim::ast::DeclExpr::decls ( ) const
inline

Definition at line 541 of file ast.h.

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

◆ emit_()

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

Implements mim::ast::Expr.

Definition at line 250 of file emit.cpp.

References decls(), mim::ast::Expr::emit(), expr(), and is_where().

◆ expr()

const Expr * mim::ast::DeclExpr::expr ( ) const
inline

Definition at line 543 of file ast.h.

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

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

◆ is_where()

bool mim::ast::DeclExpr::is_where ( ) const
inline

Definition at line 542 of file ast.h.

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

◆ stream()

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

Implements mim::ast::Node.

Definition at line 127 of file stream.cpp.

References decls(), expr(), is_where(), mim::ast::S::S(), and mim::ast::stream_decls().


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