-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typescript-estree): fix invalid parsing error when use update exp…
…ression on non-null assertion (#8202)
- Loading branch information
Showing
8 changed files
with
417 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ class F { | |
(<number>this.#a)++; | ||
(this.#a satisfies number)++; | ||
(this.#a as number)++; | ||
this.#a!++; | ||
} | ||
} |
83 changes: 71 additions & 12 deletions
83
...c/src/expression/UpdateExpression/fixtures/valid-assignment/snapshots/1-TSESTree-AST.shot
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
72 changes: 66 additions & 6 deletions
72
...rc/expression/UpdateExpression/fixtures/valid-assignment/snapshots/2-TSESTree-Tokens.shot
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
83 changes: 71 additions & 12 deletions
83
...spec/src/expression/UpdateExpression/fixtures/valid-assignment/snapshots/3-Babel-AST.shot
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.