Filter statements in block

When filtering statements in a block, there is no check that verifies that the semicolon can be safely removed.