4.2.18. Remove Instructions¶
Removes atomic instructions from the code. The whole expression is removed, and the slot is closed.
This cobbler works with element of a block, and not with part of larger expression (like remove a condition in a if/then, or remove the block expression of a while).
4.2.18.1. Before¶
<?php
$a = 1; // Code to be removed
foo(1);
do // can remove the while expression
++$a; // removing the block of the do...wihle will generate an compilation error
while ($a < 10);
?>
4.2.18.2. After¶
<?php
foo(1);
?>
4.2.18.3. Suggested Analysis¶
4.2.18.4. Specs¶
Short Name |
Structures/RemoveCode |
Exakat version |
2.3.0 |
Available in |