typescript-go
typescript-go copied to clipboard
Parser doesn't parse an EOF token for source files
An EOF token is needed to attach jsdoc at the end of the file to:
/** @typedef {number} A */
var unrelated;
/** @typedef {number} B */
Currently, B is not parsed because there's no node to attach the jsdoc to.
Found while reviewing #610, thanks @jakebailey