Skip to content
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

feat: ability to parse with scope analysis applied #20

Merged
merged 3 commits into from
Sep 29, 2021

Conversation

dsherret
Copy link
Member

Closes #8.

This will simplify deno_lint a little bit and allow us to re-use the cached source files for linting in the LSP again.

let top_level_context =
SyntaxContext::empty().apply_mark(top_level_mark);

(program, Some(top_level_context))
Copy link
Member Author

Choose a reason for hiding this comment

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

It seems like we only need to keep around the top_level_context for deno_lint. Turned out to be not too bad at all 🙂

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.

Add option to apply swc ts_resolver on parse
2 participants