Skip to content

Parser doesn't parse an EOF token for source files #774

Open
@sandersn

Description

@sandersn

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions