SgStatement::insert_statement¶
All overloads of SgStatement::insert_statement
This function inserts a list of statements at the position indicated by target.
Synopsis¶
Declared in <src/frontend/SageIII/Cxx_Grammar.h> (not stored in Git)
void
insert_statement(
SgStatement* target,
SgStatementPtrList const& newstmtList,
bool inFront = true); Description¶
This function handles the insertion of a list of statements at the target location. The boolean variable specifies if the new statements are inserted before or after the target statement.
Return Value¶
Function returns void.
Parameters¶
| Name | Description |
|---|---|
| target | - location in the AST where new statements are to be inserted. |
| newstmtList | - List of new statements to be placed into the AST. |
| inFront | - if true the new statements are inserted before the target statement, else the new statements are inserted after the target statement (default = true). |
Created with MrDocs