-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Added NatSpec support for enum value definitions in the AST #14193
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
Conversation
Thank you for your contribution to the Solidity compiler! A team member will follow up shortly. If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother. If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix. |
f905b7f
to
d79badb
Compare
test/libsolidity/syntaxTests/natspec/docstring_enum_value_definition.sol
Outdated
Show resolved
Hide resolved
test/libsolidity/syntaxTests/natspec/docstring_enum_value_definition.sol
Outdated
Show resolved
Hide resolved
df5e28e
to
8cec8d6
Compare
@veniger just a note about the failing external tests (i.e. all the ones with The errors in the |
8cec8d6
to
e70062d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog and a rebase (to fix the build), and should be good.
e70062d
to
f9d669f
Compare
add1ef5
to
13fd123
Compare
13fd123
to
6595ba1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as in #14166, looks ok at a glance and is very similar to one of your PRs we have already merged so we don't have to be too strict about reviewing this. If @nikola-matic approves, you have my approval too.
The only thing we might potentially add here is is to make sure that the @custom
tag works and maybe update the table at https://docs.soliditylang.org/en/latest/natspec-format.html#tags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @veniger, as @cameel mentioned, please add usage of the @custom
tag to one of the tests, and it should be good to go.
Same as in #14166, looks ok at a glance and is very similar to one of your PRs we have already merged so we don't have to be too strict about reviewing this. If @nikola-matic approves, you have my approval too.
The only thing we might potentially add here is is to make sure that the
@custom
tag works and maybe update the table at https://docs.soliditylang.org/en/latest/natspec-format.html#tags.
Another external contributor opened a PR for this already - #14267
@nikola-matic @veniger What's the state of this? |
I can take a another more detailed look, but should be good enough to merge after a rebase. |
Hi all, would be great to get this reviewed and merged, cc @cameel / @nikola-matic If a rebase is required, @veniger would you be able to do so? Users are proposing to implement workarounds as seen here: foundry-rs/foundry#9905 but I think it is much better to resolve the issue here. |
Sure, we have a release coming up soon, so I'll check with the team on Monday whether we have enough time to get this in for the upcoming release; if not, we'll get it in for the next one. |
Hi @nikola-matic, any updates on this? Would be great to get this in - thanks! |
I discussed it with the team and we've decided for this to go in, however, not in this release. We're currently almost exclusively focused on merging all of the storage layout (account abstraction for EOAs) PRs and will have no time for this one, especially since we're planning on releasing this week. I marked this issue (and PR) for the next release. edit: you won't have to wait long for the (next) 8.30 release since we have some other stuff we're working for tooling as well, it's just that our priorities at the moment are on compatibility for the next hard fork. |
Understood, not a problem - looking forward to the next releases 👍 |
I closed this PR as it was old, and opened a new one, which was just merged. The enum support for Natspec will be available in the upcoming release. |
Adds NatSpec field to AST node for enum value definitions
Partially fixes: #12295