|
Yume
|
A constant declaration in the compiler. More...
#include <vals.hpp>

Public Member Functions | |
| Const (ast::ConstDecl &ast_decl, ast::Program *member=nullptr, optional< ty::Type > parent=std::nullopt) noexcept | |
| auto | ast () const noexcept -> const auto & |
| auto | ast () noexcept -> auto & |
| auto | get_self_ty () const noexcept -> optional< ty::Type > |
| auto | name () const noexcept -> string |
| auto | referred_to_by (const ast::ConstExpr &expr) const -> bool |
Public Attributes | |
| ast::ConstDecl & | cn_ast |
| optional< ty::Type > | self_ty |
| If this function is in the body of a struct, this points to its type. More... | |
| ast::Program * | member |
| The program this declaration is a member of. More... | |
| llvm::GlobalVariable * | llvm {} |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 185 of file vals.hpp.
Referenced by yume::Compiler::define().
|
inlinenoexcept |
Definition at line 187 of file vals.hpp.
References yume::Struct::self_ty.
|
noexcept |
Definition at line 69 of file vals.cpp.
References cn_ast, and yume::ast::ConstDecl::name.
|
inline |
Definition at line 190 of file vals.hpp.
References yume::Struct::name(), and yume::Struct::self_ty.
| ast::ConstDecl& yume::Const::cn_ast |
| llvm::GlobalVariable* yume::Const::llvm {} |
Definition at line 180 of file vals.hpp.
Referenced by yume::Compiler::define().
| ast::Program* yume::Const::member |
| optional<ty::Type> yume::Const::self_ty |