Template Struct Literal¶
- Defined in File ASTNode.h
Inheritance Relationships¶
Base Type¶
public AST::ASTNode(Struct ASTNode)
Struct Documentation¶
-
template <typename _T>
structLiteral: public AST::ASTNode¶ Public Functions
-
Literal(const _T &v)¶
-
bool
check_initialize_before_use(InitializedList &inits, InitializedList *all_inits, bool is_method)¶ No initialization before use check for a literal. This function simply returns true.
- Return
- True always.
- Parameters
inits: Set of initialized variables. Not changed in the funciton.
Public Members
-
const _T
value_¶ Value of the literal
Protected Functions
-
std::string
generate_lit_code(CodeGen::Settings &settings, unsigned indent_lvl, const std::string &gen_func_name_) const¶ Helper function that standardizes code generation for all literals.
- Parameters
settings: Code generator settings objectindent_lvl: Indention levelgen_func_name_: Function used to generate objects of a given type
-