-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
chore: add documentation for type checking functions #3437
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
base: develop
Are you sure you want to change the base?
Conversation
The major difficulty with this PR is that it puts the documentation for all of the newly-documented 'isAccessorNode' etc. functions in the If you would like to correct those things "by hand", a PR along these lines generally would be welcome. I also haven't checked the correctness/quality of the generated documentation -- have you? Thanks for giving this a shot. |
OK, I took a quick look at the generated documentation, enough to know that before this could be merged, someone needs to go over it with a fine-tooth comb. For example, the "Examples" of "isAccessorNode" consists only of |
Thanks for the initial review! It's currently a draft because I plan to go through it in detail and fix any issues. I just haven't had the chance to do so yet. Please don't spend your time on that just yet. I mostly wanted to get your opinion on the initial approach. I had an issue adding the docs to where the function is because I got an error from the docs test.
The type checks functionality doesn't follow the regular convention of other files, as seen with something like |
I don't know that the docgenerator or the doc tests have the ability to handle multiple functions in a source file. I don't think there are any working examples of that. I suspecy that's a big part of why these functions have gone undocumented for so long. I think therefore that a successful PR for this would do one of: (A) split each exported There might be some other method that is not occurring to me to get this all to work. And personally, I would vote for (A) or (B) to keep things consistent and documentation alongside source code (and hope eventually the embeddedDocs move there too!), but @josdejong might have a different perspective. |
As for C if it goes against the convention, then I don't think it viable option as it will just create extra tech debt for a future update, and the benefits are not worth the tech debt. I think A is the easier option and might be easier from a maintability standpoint because adding a lot of documentation is going to make the |
Right, I think we've now discussed/progressed as far as we can until @josdejong weighs in. |
Thanks for your work Orel, and Glen for reviewing this draft. Sorry for my late reply. Indeed the code comments should be on top of the actual function implementation. Let's go for option (A): move every |
Sounds good. I will get started on that soon. |
Description
Test
Additional Notes