typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Parser doesn't parse an EOF token for source files

Open sandersn opened this issue 8 months ago • 1 comments

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.

sandersn avatar Apr 08 '25 20:04 sandersn

Found while reviewing #610, thanks @jakebailey

sandersn avatar Apr 08 '25 21:04 sandersn