-
Notifications
You must be signed in to change notification settings - Fork 24
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
Improve doc coverage (#44) #84
Conversation
I added documentation to most public elements in `sophia/`, using the method described in the issue (pchampin#44) of adding `#![deny(missing_docs)]` to `sophia/src/lib.rs`. 2 doc comments are missing: - sophia/src/parser/rio_common.rs:72:1 sophia_api::make_scoped_triple_streaming_mode!(ScopedRioSourceTriple, RioSourceTriple); - sophia/src/parser/rio_common.rs:112:1 sophia_api::make_scoped_quad_streaming_mode!(ScopedRioSourceQuad, RioSourceQuad); I don't know how to add comments to the macro-created types.
I adapted the macros `make_scoped_triple_streaming_mode` and `make_scoped_quad_streaming_mode` to pass through attributes to the generated `struct`. A doc comment is reresented as `#[doc="..."]`. I learned this trick from https://stackoverflow.com/a/33999625/4696215
0a63c79
to
0de43fc
Compare
I have added the last missing doc comments in the This pull request is now ready to be reviewed. @pchampin |
- parser::xml - parser::xml_legacy
2a45120
to
1004ab0
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.
Apart from a few things that I would rather rephrase (see comments), this is great. Thanks a lot.
Co-authored-by: Pierre-Antoine Champin <github-100614@champin.net>
Co-authored-by: Pierre-Antoine Champin <github-100614@champin.net>
Co-authored-by: Pierre-Antoine Champin <github-100614@champin.net>
Co-authored-by: Pierre-Antoine Champin <github-100614@champin.net>
Co-authored-by: Pierre-Antoine Champin <github-100614@champin.net>
Co-authored-by: Pierre-Antoine Champin <github-100614@champin.net>
Co-authored-by: Pierre-Antoine Champin <github-100614@champin.net>
Co-authored-by: Pierre-Antoine Champin <github-100614@champin.net>
Co-authored-by: Pierre-Antoine Champin <github-100614@champin.net>
Co-authored-by: Pierre-Antoine Champin <github-100614@champin.net>
Finally found a moment to merge this! Thanks again @YEver |
I added documentation to most public elements in
sophia/
, usingthe method described in the issue (#44) of adding
#![deny(missing_docs)]
to
sophia/src/lib.rs
.2 doc comments are missing:sophia_api::make_scoped_triple_streaming_mode!(ScopedRioSourceTriple, RioSourceTriple);sophia_api::make_scoped_quad_streaming_mode!(ScopedRioSourceQuad, RioSourceQuad);I don't know how to add comments to the macro-created types.I found out that it's possible to add doc comments to macros (https://stackoverflow.com/a/33999625/4696215) and updated the relevant macros accordingly in a separate commit.