-
Notifications
You must be signed in to change notification settings - Fork 486
Add a rudimentary test for @typedef #75
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
Add a rudimentary test for @typedef #75
Conversation
👍 ideally the PR for typedef is in a point release of doctrine before we go live with this |
Sounds good. |
@tmcw Just noticed you forked |
d37ee30
to
10f7131
Compare
^ All of that means that all that's left here in this PR is a test case. |
Yeah - it looks like @jfirebaugh already implemented this, or merged part of this branch? |
42e8aee was the only typedef related change I made. |
Yeah, I think it turned out that 42e8aee, along with actually looking for and rendering |
Add a rudimentary test for @typedef
* Update kinds * Pattern guards * Nested records Fixes documentationjs#18. Todo: Unify with Records.md? * Expand section on type synonyms The example involving `one` did not type check. Now it does. Maybe it would be helpful to think of real-world examples for type synonyms and use those here intead of another example involving Foo & Bar. * Notes that I would find helpful * Do something with the bound variable * Misc. formatting * Typo, hopefully a bit clearer * Grammar
@tmcw Added this in a super rudimentary format because I needed it for something. Couple of known issues I didn't have time to examine closely: 1) currently needs a
@name
tag, but presumably the name should be pulled off the@typedef
tag (right?), and 2) if the typedef comment is at the end of a file, w/ no subsequent code node, it gets dropped.