mirror of
https://github.com/Ed94/gencpp.git
synced 2024-11-10 11:04:52 -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 );
|
raw()->append( other.ast );
|
||||||
}
|
}
|
||||||
|
void append( CodeBody body )
|
||||||
|
{
|
||||||
|
for ( Code entry : body )
|
||||||
|
{
|
||||||
|
append( entry );
|
||||||
|
}
|
||||||
|
}
|
||||||
bool has_entries()
|
bool has_entries()
|
||||||
{
|
{
|
||||||
return rcast( AST*, ast )->has_entries();
|
return rcast( AST*, ast )->has_entries();
|
||||||
|
Loading…
Reference in New Issue
Block a user