Struct Return¶
- Defined in File ASTNode.h
Inheritance Relationships¶
Base Type¶
public AST::ASTNode(Struct ASTNode)
Struct Documentation¶
-
struct
Return: public AST::ASTNode¶ Public Functions
-
~Return()¶
-
void
print_original_src(unsigned int indent_depth = 0)¶
-
bool
check_initialize_before_use(InitializedList &inits, InitializedList *all_inits, bool is_method)¶ Checks if the initialize before use test passes on the right subexpression.
- Return
- True if the initialized before use test passes for the right subexpression.
- Parameters
inits: Set of initialized variables.
-
std::string
generate_code(CodeGen::Settings &settings, unsigned indent_lvl, bool is_lhs) const¶ Generates the C code associated with a return statement. The implementation is quite simple
- Parameters
settings: Code generator settingsindent_lvl: Level of indentation
-
bool
contains_return_all_paths()¶ Always returns true since this is a return statement.
- Return
- Always true
-