* Add statements to the main body.
(statement: syntax.Statement)
| 79 | * Add statements to the main body. |
| 80 | */ |
| 81 | addStatement(statement: syntax.Statement) { |
| 82 | // When adding a statement to main function, the variable statements before |
| 83 | // should belong to the main function. |
| 84 | this.pushVariableStatementsToMainFunction(); |
| 85 | this.body!.addStatement(statement); |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Move the variable statements to main function. |
no test coverage detected