trim method
Trim the contents of the Statement.
This is only relevant for compound Statements, such as ForLoopStatement.
Non-compound statements, e.g., VariableDeclarationStatement, simply return themselves.
Implementation
(Statement?, int) trim(int remaining) {
if (remaining <= 0) {
return (null, 0);
} else {
return (this, remaining - 1);
}
}