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

decls e or e where decls if where is true. More...

#include <mim/ast/ast.h>

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

Public Member Functions

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

decls e or e where decls if where is true.

Definition at line 394 of file ast.h.

Constructor & Destructor Documentation

◆ DeclExpr()

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

Definition at line 396 of file ast.h.

References decls(), 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 138 of file bind.cpp.

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

◆ decls()

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

Definition at line 402 of file ast.h.

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

◆ emit_()

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

Implements mim::ast::Expr.

Definition at line 196 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 404 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 403 of file ast.h.

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

◆ stream()

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

Implements mim::ast::Node.

Definition at line 96 of file stream.cpp.

References decls(), expr(), is_where(), mim::print(), and mim::Tab::println().


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