mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 07:44:45 -08:00
Added ability for a CodeBody to append another
This commit is contained in:
parent
8bb0db8145
commit
efd7af9f96
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user