Code::duplicate reduction

This commit is contained in:
2024-12-02 00:16:11 -05:00
parent 37c33ffb3e
commit 007bfa0cb0
4 changed files with 15 additions and 305 deletions

View File

@ -354,17 +354,6 @@ CodeBody gen_ast_inlines()
char const* code_impl_tmpl = stringize(
\n
inline
Code <typename>::duplicate()
{
if ( ast == nullptr )
{
log_failure("Code::duplicate: Cannot duplicate code, AST is null!");
return Code_Invalid;
}
return { rcast(AST*, ast)->duplicate() };
}
inline
bool <typename>::is_body()
{
if ( ast == nullptr )