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
Type-safe ParseErrors #14320
Type-safe ParseErrors #14320
Commits on Mar 7, 2022
-
Begin moving checkLVal to type-based system instead of contextDescrip…
…tion-based system, and fix let error in the process as well. Reviewed by @tolmasky.
-
Add TS1039 Initializers are not allowed in ambient contexts. to error…
…-codes.js. Reviewed by @tolmasky.
-
Only ignore reserved words in ambient contexts. Parse interface in pa…
…rseStatementContent. Fix enums. Reviewed by @tolmasky.
-
Type references should allow reserved words (I believe we were just g…
…etting away with the fact that we turned reserved words off before). Reviewed by @tolmasky.
-
Choose better parameter names for these errors.
Reviewed by @tolmasky.
-
Use "unambiguous" to determine whether to parse typescript tests as m…
…odule or script, and stop always allowing imports in Typescript. Reviewed by @tolmasky.
-
Add ParseError.clone and change symbol name to DefaultMessage from No…
…Message. Reviewed by @tolmasky.
-
Update packages/babel-parser/src/parser/lval.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Update packages/babel-parser/src/parser/lval.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Update packages/babel-parser/src/parser/expression.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Update packages/babel-parser/src/parse-error.js
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
-
Use this in toMessage and restore clone method.
Reviewed by @tolmasky.
-
Make sure pos and missingPlugin are enumerable.
Reviewed by @tolmasky.
-
Update packages/babel-parser/src/parser/lval.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Update packages/babel-parser/src/plugins/estree.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Update packages/babel-parser/src/plugins/typescript/index.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Update packages/babel-parser/src/plugins/typescript/index.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
-
Fix Flow being angry because __proto__: null makes it think that the …
…return type can be null. Reviewed by @tolmasky.