Added ability for a CodeBody to append another

This commit is contained in:
Edward R. Gonzalez 2023-07-20 23:51:56 -04:00
parent 8bb0db8145
commit efd7af9f96

View File

@ -710,6 +710,13 @@ struct CodeBody
{
raw()->append( other.ast );
}
void append( CodeBody body )
{
for ( Code entry : body )
{
append( entry );
}
}
bool has_entries()
{
return rcast( AST*, ast )->has_entries();