Parse JavaScript code comments. Works with block and line comments, and should work with CSS, LESS, SASS, or any language with the same comment formats.
as you can see, the first one is just NameExpression, which means it only gets the last of the type definition. If you reverse it from {Array<string>|string} to {string|Array<string>} the first result will be TypeApplication.
First, it would be cool if in the tag object there is also the whole non-parsed string of the types.
Second, the example case
I always felt there's something wrong. Finally dug down and found it.
as you can see, the first one is just NameExpression, which means it only gets the last of the type definition. If you reverse it from
{Array<string>|string}
to{string|Array<string>}
the first result will be TypeApplication.In short, the problem only when there is a TypeApplication type in a UnionType, because this works
{string|boolean}
okay.I believe that the expected result should be
@jonschlinkert seems like I continue to stack up more and more issues :laughing: :hear_no_evil: :heart: