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

dbg: type of a VariantExpr. More...

#include <mim/ast/ast.h>

Inheritance diagram for mim::ast::VariantExpr::Ctor:
[legend]

Public Member Functions

 Ctor (Loc loc, Dbg dbg, Ptr< Expr > type)
Dbg dbg () const
const Expr * type () const
 nullptr if omitted.
void stream (fe::Tab &, std::ostream &) const override
Public Member Functions inherited from mim::ast::Node
Loc loc () const
void dump () const

Additional Inherited Members

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

Detailed Description

dbg: type of a VariantExpr.

Definition at line 745 of file ast.h.

Constructor & Destructor Documentation

◆ Ctor()

mim::ast::VariantExpr::Ctor::Ctor ( Loc loc,
Dbg dbg,
Ptr< Expr > type )
inline

Definition at line 747 of file ast.h.

References dbg(), mim::ast::Node::loc(), mim::ast::Node::Node(), and type().

Member Function Documentation

◆ dbg()

Dbg mim::ast::VariantExpr::Ctor::dbg ( ) const
inline

Definition at line 752 of file ast.h.

Referenced by mim::ast::Emitter::add_ctors(), Ctor(), and stream().

◆ stream()

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

Implements mim::ast::Node.

Definition at line 180 of file stream.cpp.

References dbg(), mim::ast::S::S(), and type().

◆ type()

const Expr * mim::ast::VariantExpr::Ctor::type ( ) const
inline

nullptr if omitted.

Definition at line 753 of file ast.h.

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

Referenced by Ctor(), and stream().


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