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.

Activity

self-assigned this
on Apr 8, 2025
sandersn

sandersn commented on Apr 8, 2025

@sandersn
MemberAuthor

Found while reviewing #610, thanks @jakebailey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Parser doesn't parse an EOF token for source files · Issue #774 · microsoft/typescript-go