Code::is_body reduction

This commit is contained in:
2024-12-02 00:18:54 -05:00
parent 007bfa0cb0
commit 5cd69e1742
4 changed files with 11 additions and 271 deletions

View File

@ -111,6 +111,16 @@ Code duplicate( Code code )
return { duplicate(code.ast) };
}
inline
bool is_body(Code code)
{
if ( code.ast == nullptr )
{
return is_body(code.ast);
}
return false;
}
inline
Code& Code::operator ++()
{