Refactor: Remove createIsolatedProgram call from getProgramAndAST #5856
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
breaking change
This change will require a new major version to be released
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
refactor
PRs that refactor code only
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Overview
typescript-eslint/packages/typescript-estree/src/parser.ts
Lines 90 to 91 in 09c04fb
That last
|| createIsolatedProgram(code, extra)
should never be hit. We believe it was a just-in-case fallback added long ago that is no longer (and maybe never was) needed.Removing that case may make #5855 easier.
Marking as accepting PRs with the caveat that everything still has to work as expected. Which may or may not be doable. Good luck! 😄
This issue is from a pairing I had with @bradzacher going over the parser internals.
The text was updated successfully, but these errors were encountered: