Mapping JSDoc annotations to JavaScript elements

65 views
Skip to first unread message

han liu

unread,
Jul 18, 2016, 11:10:53 AM7/18/16
to JSDoc Users

I would like to map JSDoc annotations, such as @type, with the corresponding program elements. Below is an example:


/** @type {number} */
var bar = 1;


How could I relate the type Number to the variable bar automatically?

I understand that there are parsers for JSDoc, like doctrine. But they are parsing the JSDoc comment rather than relating the annotations to corresponding elements.

BTW, any suggestions on benchmarks with well-produced JSDoc? 


Thanks

Reply all
Reply to author
Forward
0 new messages