Safe handle missed trailing semicolon
Closed this issue · 2 comments
0xGeorgii commented
Example:
function get_array_length(uint256[] memory _data) public returns (uint256 size) {
size = _data.length
}
Instead of exception, thrown here:
Line 1138 in 8e3e746
Need to raise an exception to be handled by:
Line 14 in 8e3e746
It will prevent the Exception raising here:
Line 72 in 8e3e746
And produces an instance of:
Line 5 in 8e3e746
Which can be handled further by a user
UPD: alternately, a grammar can be changed to allow such construction
josepchetrit12 commented
@0xGeorgii can you handle the following case, it's when _data
doesn't exist.
function get_array_length() public returns (uint256 size) {
size = _data.length;
}
0xGeorgii commented
@josepchetrit12 yes, it doesn't matter since it is not a structural grammar miss