SgStatement::insert_statement¶
insert_statement overloads
Synopses¶
Declared in <src/frontend/SageIII/Cxx_Grammar.h> (not stored in Git)
This function inserts a list of statements at the position indicated by target.
void
insert_statement(
SgStatement* target,
SgStatementPtrList const& newstmtList,
bool inFront = true); This function inserts a single statement at the position indicated by target.
void
insert_statement(
SgStatement* target,
SgStatement* newstmt,
bool inFront = true); 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). |
| newstmt | - New statement to be placed into the AST. |
Created with MrDocs