Plain JS grammar errors by sandersn · Pull Request #47067 · microsoft/TypeScript

@sandersn

From the list in
#45349 (comment),
excluding the JSX errors, decorator errors and unresolved #private
error. The latter re-uses "Cannot resolve name X" which naturally shows
up a *lot* in plain JS.

@sandersn

Also remove checkGrammarArguments; it's blocked entirely by the same
parser error.

andrewbranch

@sandersn sandersn deleted the plain-js-grammar-errors branch

December 8, 2021 23:16

sandersn added a commit that referenced this pull request

Dec 8, 2021
These are the last ones that I know of. They come from calls to
`grammarErrorOnFirstToken`.

Fixes part of #45349
Follow-up to #47067

sandersn added a commit that referenced this pull request

Dec 9, 2021
These are the last ones that I know of. They come from calls to
`grammarErrorOnFirstToken`.

Fixes part of #45349
Follow-up to #47067

mprobst pushed a commit to mprobst/TypeScript that referenced this pull request

Jan 10, 2022
* Plain JS grammar errors

From the list in
microsoft#45349 (comment),
excluding the JSX errors, decorator errors and unresolved #private
error. The latter re-uses "Cannot resolve name X" which naturally shows
up a *lot* in plain JS.

* Add grammarErrorAtPos errors

Also remove checkGrammarArguments; it's blocked entirely by the same
parser error.

mprobst pushed a commit to mprobst/TypeScript that referenced this pull request

Jan 10, 2022
These are the last ones that I know of. They come from calls to
`grammarErrorOnFirstToken`.

Fixes part of microsoft#45349
Follow-up to microsoft#47067

@microsoft microsoft locked as resolved and limited conversation to collaborators

Oct 22, 2025