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