Commit 959a4b1
fix: add parentheses to enforce [no LineTerminator here] for using declarations
Fix operator precedence bug in nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine
where hasPrecedingLineBreak() check was only applied to OpenBraceToken due to Go's && binding
tighter than ||, instead of applying to both isBindingIdentifier() and OpenBraceToken as in
the TypeScript reference implementation.
Agent-Logs-Url: https://github.com/microsoft/typescript-go/sessions/b40162ed-f661-46b3-bea6-cba2dc0dcb36
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>1 parent d019baa commit 959a4b1
6 files changed
Lines changed: 44 additions & 1 deletion
File tree
- internal/parser
- testdata
- baselines/reference/compiler
- tests/cases/compiler
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6330 | 6330 | | |
6331 | 6331 | | |
6332 | 6332 | | |
6333 | | - | |
| 6333 | + | |
6334 | 6334 | | |
6335 | 6335 | | |
6336 | 6336 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments