Commit graph

4 commits

Author SHA1 Message Date
Nathan Shively-Sanders bb23e9601f
Parse JSDoc ...T and T= only at top-level JSDoc (#22661)
* Parse JSDoc ...T and T= only at top-level JSDoc

...T and T= should only be legal at the top level of a type, and only in
JSDoc, since at least T= is ambiguous elsewhere. This PR changes parsing
to make that happen. The resulting parse tree is now simpler, allowing
me to get rid of some code I had to add in the checker.

* Extract JSDoc type parsing into its own function

* PR comments:return from parseJSDocType
2018-03-16 16:08:42 -07:00
Nathan Shively-Sanders e2d2f448e4 Add postfix [] ! ? type parsing tests 2017-08-30 08:41:34 -07:00
Nathan Shively-Sanders 3e3846dba4 Test jsdoc:... binds tighter than *n* postfix tokens 2017-08-29 13:02:06 -07:00
Nathan Shively-Sanders bdc3f1f3f7 Address more PR comments 2017-07-14 13:29:44 -07:00