There is a very marginal edge case for parsing function declarations where the function body is empty and there are no spaces between the body brackets e.g.
function emptyBody(uint x){}
An example of someone legitimately using this form can be seen in this gnosis contract.
Solcover near-misses getting the instrument event inside the function body here and errors with
There is a very marginal edge case for parsing function declarations where the function body is empty and there are no spaces between the body brackets e.g.
An example of someone legitimately using this form can be seen in this gnosis contract.
Solcover near-misses getting the instrument event inside the function body here and errors with
This PR adds logic to check for the existence of this case and modifies the injection start point by one position.