feat(parser): improve error message for missing block closing tokens#15445
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #15445 will not alter performanceComparing Summary
Footnotes
|
8c7b3e5 to
bfb3f76
Compare
12205d8 to
148b776
Compare
Merge activity
|
…15445) Improves error message for imbalanced tokens for blocks. **Before** ``` × Expected `}` but found `EOF` ╭─[typescript/tests/cases/compiler/missingCloseBrace.ts:8:6] 7 │ 8 │ } ╰──── ``` **After** ``` × Expected `}` but found `EOF` ╭─[typescript/tests/cases/compiler/missingCloseBrace.ts:1:22] 1 │ function base_init() { · ┬ · ╰── Opened here 2 │ { ╰──── ╭─[typescript/tests/cases/compiler/missingCloseBrace.ts:8:6] 7 │ 8 │ } ╰──── ```
bfb3f76 to
e1704a4
Compare
148b776 to
4decc1d
Compare

Improves error message for imbalanced tokens for blocks.
Before
After