Skip to content

Bring back SourceFile.EndOfFileToken #1257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

Andarist
Copy link
Contributor

No description provided.

@@ -20,7 +20,6 @@ import (
)

var testFiles = []string{
// !!! EOFToken JSDoc parsing is missing
// filepath.Join(repo.TestDataPath, "fixtures/astnav/eofJSDoc.ts"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even though I brought back EndOfFileToken, I'm not sure what to do here - this commented out file doesnt exist and I can't find its equivalent in Strada either

Comment on lines +47 to +50
if parent.Kind == ast.KindEndOfFile {
p.reparseUnhosted(tag, parent, j)
continue
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to make sense to me that htis should be treated as unhosted JSDoc. But despite this... issues like this did not go away (yet): #1187 (comment)

I need to investigate further, cc @sandersn

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbh, I don't know how to assess if this is a correct change or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant