-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not expect that first word in comment line is name of result variable #301
Comments
Thanks for pointing this out. We're indeed assuming the wrong format in our parsing. |
It seems that if the function declares names for return values (as in |
Right, but it still should possible to add comment to function result, even if it's anonymous. It should be then somehing like: result.name // undefined
result.description // 'Some value' |
Yes, I was able to reproduce the behavior implemented by solc. |
Consider following method and comment:
When it get parsed with
parseNatSpec
function it parsesSome
as response variable name and the rest as its description. Butnatspec
doesn't have any requirements on format ofreturn
and it makes total sense to omit it at all when there is only one return valueThe text was updated successfully, but these errors were encountered: