Skip to content

Parse JSX elements and fragments as primary expressions - #65725

Open
magic-akari wants to merge 2 commits into
microsoft:mainfrom
magic-akari:fix/jsx-primary-expressions
Open

magic-akari wants to merge 2 commits into
microsoft:mainfrom
magic-akari:fix/jsx-primary-expressions

Conversation

@magic-akari

Copy link
Copy Markdown
Contributor

The parser returned too early after reading a JSX element or fragment. This could split a valid expression at a line break or produce a spurious semicolon error on the same line.

This change parses JSX elements and fragments as primary expressions so member access, calls, and tagged templates can follow them in both .jsx and .tsx. Adjacent JSX roots still report TS2657.

Continue parsing member access, calls, and tagged templates after JSX,
including across line breaks. Check for adjacent roots before parsing
type arguments to preserve the missing-parent diagnostic.
@typescript-automation typescript-automation Bot added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug For Backlog Bug PRs that fix a backlog bug and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Nov 29, 2026
@magic-akari
magic-akari marked this pull request as ready for review November 30, 2026 17:18
Copilot AI balanced review requested due to automatic review settings November 30, 2026 17:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The sibling-probe logic can cause quadratic parsing and discard recognizable JSX siblings with descendant errors, suppressing TS2657 and degrading formatter/editor recovery.

2 open issues
What changed in this PR

This PR addresses #65724 by parsing JSX elements and fragments as primary expressions, allowing the compiler to preserve expression continuations across line breaks.

Changes:

  • Enables member access, calls, and tagged templates after JSX in .jsx and .tsx.
  • Moves adjacent-root recovery into a separate parser helper.
  • Adds continuation regression tests and updates affected diagnostic, emit, and type baselines.
File Description
tsc/​testdata/​tests/​cases/​compiler/​jsxPrimaryExpressionContinuations.tsx Tests continuations, explicit semicolons, and adjacent roots.
tsc/​testdata/​baselines/​reference/​conformance/​jsxInvalidEsprimaTestSuite.types Updates inferred expression types for malformed JSX.
tsc/​testdata/​baselines/​reference/​conformance/​jsxInvalidEsprimaTestSuite.js Updates malformed-JSX emit expectations.
tsc/​testdata/​baselines/​reference/​conformance/​jsxInvalidEsprimaTestSuite.errors.txt Updates malformed-JSX diagnostics.
tsc/​testdata/​baselines/​reference/​conformance/​checkJsxNamespaceNamesQuestionableForms.types Updates types for malformed namespace syntax.
tsc/​testdata/​baselines/​reference/​conformance/​checkJsxNamespaceNamesQuestionableForms.js Updates namespace-syntax emit expectations.
tsc/​testdata/​baselines/​reference/​conformance/​checkJsxNamespaceNamesQuestionableForms.errors.txt Updates namespace-syntax diagnostics.
tsc/​testdata/​baselines/​reference/​compiler/​jsxPrimaryExpressionContinuations.js Records continuation and recovery emit.
tsc/​testdata/​baselines/​reference/​compiler/​jsxPrimaryExpressionContinuations.errors.txt Records adjacent-root errors and accepted continuations.
tsc/​internal/​parser/​parser.go Integrates JSX primary expressions and revises recovery.

Review effort: Balanced

Comment on lines +4977 to +4978
state := p.mark()
element := p.parseJsxElementOrSelfClosingElementOrFragment(true /*inExpressionContext*/, nil /*openingTag*/)
Comment on lines +4979 to +4982
if len(p.diagnostics) != state.diagnosticsLen && first.Flags&ast.NodeFlagsThisNodeHasError == 0 {
// Leave '<' for type arguments or a comparison after a well-formed JSX root.
p.rewind(state)
break
@DanielRosenwasser

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) test it

@typescript-automation

typescript-automation Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
test top400 ✅ Started ✅ Results
user test this ✅ Started ✅ Results
run dt ✅ Started ✅ Results
perf test this faster ✅ Started 👀 Results

@magic-akari

Copy link
Copy Markdown
Contributor Author

I have a local fix for both issues Copilot flagged in the JSX parser. It adds about 30 lines of Go. Do you think it’s worth including in this PR?

@typescript-automation

Copy link
Copy Markdown
Contributor

Hey Daniel Rosenwasser (@DanielRosenwasser), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-automation

Copy link
Copy Markdown
Contributor

Daniel Rosenwasser (@DanielRosenwasser) Here are the results of running the user tests with tsc comparing baseline and pr:

Everything looks good!

@typescript-automation

Copy link
Copy Markdown
Contributor

Daniel Rosenwasser (@DanielRosenwasser)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - native
Errors 41 41 ~ ~ ~ p=1.000 n=20
Symbols 88,381 88,381 ~ ~ ~ p=1.000 n=20
Types 79,151 79,151 ~ ~ ~ p=1.000 n=20
Memory Used 106,313k (± 0.02%) 106,290k (± 0.02%) ~ 106,220k 106,377k p=0.123 n=20
Memory Allocs 1,045,735 (± 0.01%) 1,045,907 (± 0.01%) +140 (+ 0.01%) 1,045,600 1,046,922 p=0.014 n=20
Config Time 0.000s 0.000s (±208.60%) ~ 0.000s 0.001s p=1.000 n=20
Parse Time 0.036s (± 2.29%) 0.036s (± 2.44%) ~ 0.033s 0.040s p=0.485 n=20
Bind Time 0.012s (± 8.18%) 0.013s (± 8.82%) ~ 0.010s 0.017s p=0.109 n=20
Check Time 0.378s (± 0.59%) 0.377s (± 0.53%) ~ 0.372s 0.389s p=0.252 n=20
Emit Time 0.215s (± 0.91%) 0.218s (± 1.03%) ~ 0.210s 0.228s p=0.156 n=20
Total Time 0.648s (± 0.48%) 0.651s (± 0.35%) ~ 0.641s 0.659s p=0.268 n=20
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=20
Symbols 753,805 753,805 ~ ~ ~ p=1.000 n=20
Types 546,821 546,821 ~ ~ ~ p=1.000 n=20
Memory Used 642,602k (± 0.01%) 642,635k (± 0.01%) ~ 642,284k 642,902k p=0.596 n=20
Memory Allocs 8,311,125 (± 0.06%) 8,308,052 (± 0.02%) ~ 8,303,856 8,318,142 p=0.430 n=20
Config Time 0.014s (± 1.77%) 0.014s (± 1.76%) ~ 0.013s 0.014s p=0.193 n=20
Parse Time 0.221s (± 1.59%) 0.219s (± 2.79%) ~ 0.199s 0.239s p=0.571 n=20
Bind Time 0.062s (± 8.26%) 0.072s (±12.75%) ~ 0.055s 0.111s p=0.193 n=20
Check Time 1.145s (± 0.70%) 1.143s (± 0.97%) ~ 1.113s 1.179s p=0.985 n=20
Emit Time 0.787s (± 0.87%) 0.786s (± 0.90%) ~ 0.766s 0.829s p=0.869 n=20
Total Time 2.244s (± 0.49%) 2.252s (± 0.51%) ~ 2.218s 2.299s p=0.498 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 676,875 676,875 ~ ~ ~ p=1.000 n=20
Types 937,868 937,868 ~ ~ ~ p=1.000 n=20
Memory Used 473,800k (± 0.01%) 473,752k (± 0.01%) ~ 473,582k 473,988k p=0.231 n=20
Memory Allocs 11,786,479 (± 0.01%) 11,786,776 (± 0.01%) ~ 11,783,966 11,792,756 p=0.648 n=20
Config Time 0.002s (± 5.09%) 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.069s (± 2.22%) 0.070s (± 2.45%) ~ 0.064s 0.077s p=0.841 n=20
Bind Time 0.022s (±11.15%) 0.022s (±10.65%) ~ 0.018s 0.034s p=0.660 n=20
Check Time 1.507s (± 0.57%) 1.507s (± 0.48%) ~ 1.484s 1.541s p=0.956 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.643s (± 0.49%) 1.645s (± 0.40%) ~ 1.622s 1.671s p=0.898 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,379 45,379 ~ ~ ~ p=1.000 n=20
Types 7,571 7,571 ~ ~ ~ p=1.000 n=20
Memory Used 27,707k (± 0.03%) 27,699k (± 0.02%) ~ 27,678k 27,722k p=0.090 n=20
Memory Allocs 231,607 (± 0.06%) 231,562 (± 0.04%) ~ 231,300 231,898 p=0.898 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.017s (± 2.35%) 0.017s (± 2.54%) ~ 0.015s 0.019s p=0.230 n=20
Bind Time 0.006s (±12.10%) 0.006s (±12.06%) ~ 0.004s 0.008s p=0.461 n=20
Check Time 0.015s (± 5.99%) 0.015s (± 6.37%) ~ 0.013s 0.018s p=0.456 n=20
Emit Time 0.015s (± 7.49%) 0.015s (± 7.17%) ~ 0.013s 0.019s p=0.624 n=20
Total Time 0.055s (± 1.88%) 0.055s (± 1.48%) ~ 0.052s 0.058s p=0.552 n=20
effect - native
Errors 4 4 ~ ~ ~ p=1.000 n=20
Symbols 1,233,598 1,233,598 ~ ~ ~ p=1.000 n=20
Types 890,152 890,152 ~ ~ ~ p=1.000 n=20
Memory Used 938,642k (± 0.02%) 938,565k (± 0.01%) ~ 937,980k 938,986k p=0.674 n=20
Memory Allocs 11,680,273 (± 0.02%) 11,677,782 (± 0.01%) ~ 11,673,020 11,687,595 p=0.105 n=20
Config Time 0.006s (± 1.75%) 0.006s ~ ~ ~ p=1.000 n=20
Parse Time 0.336s (± 1.21%) 0.332s (± 1.33%) ~ 0.312s 0.347s p=0.177 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.800s (± 0.56%) 1.793s (± 0.33%) ~ 1.773s 1.823s p=0.245 n=20
Emit Time 0.951s (± 2.31%) 0.951s (± 2.79%) ~ 0.844s 1.086s p=0.898 n=20
Total Time 3.258s (± 0.56%) 3.249s (± 0.70%) ~ 3.159s 3.360s p=0.388 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,692,472 3,692,472 ~ ~ ~ p=1.000 n=20
Types 1,350,271 1,350,271 ~ ~ ~ p=1.000 n=20
Memory Used 1,652,073k (± 0.07%) 1,651,611k (± 0.07%) ~ 1,647,447k 1,655,893k p=0.729 n=20
Memory Allocs 24,316,012 (± 0.06%) 24,325,013 (± 0.06%) ~ 24,270,069 24,388,533 p=0.294 n=20
Config Time 0.014s (± 1.21%) 0.014s (± 1.21%) ~ 0.014s 0.015s p=0.391 n=20
Parse Time 0.550s (± 2.26%) 0.545s (± 1.80%) ~ 0.495s 0.599s p=0.349 n=20
Bind Time 0.002s (±14.45%) 0.002s (± 6.84%) 🟩-0.000s (-18.35%) 0.002s 0.003s p=0.020 n=20
Check Time 5.454s (± 0.49%) 5.441s (± 0.40%) ~ 5.367s 5.613s p=0.330 n=20
Emit Time 0.588s (± 6.02%) 0.604s (± 5.01%) ~ 0.493s 0.725s p=0.546 n=20
Total Time 7.537s (± 0.60%) 7.548s (± 0.50%) ~ 7.343s 7.730s p=0.985 n=20
sentry - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,781,856 4,781,856 ~ ~ ~ p=1.000 n=20
Types 2,590,628 2,590,628 ~ ~ ~ p=1.000 n=20
Memory Used 2,790,994k (± 0.02%) 2,792,184k (± 0.03%) ~ 2,789,592k 2,796,043k p=0.090 n=20
Memory Allocs 73,820,433 (± 0.07%) 73,777,277 (± 0.08%) ~ 73,515,842 74,018,065 p=0.261 n=20
Config Time 0.044s (± 0.52%) 0.044s (± 0.52%) ~ 0.043s 0.044s p=0.209 n=20
Parse Time 0.985s (± 1.63%) 0.998s (± 1.73%) ~ 0.917s 1.039s p=0.202 n=20
Bind Time 0.299s (± 9.84%) 0.301s (±12.62%) ~ 0.251s 0.467s p=0.622 n=20
Check Time 13.197s (± 0.37%) 13.249s (± 0.39%) ~ 13.004s 13.458s p=0.053 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 14.595s (± 0.32%) 14.659s (± 0.43%) ~ 14.448s 14.960s p=0.090 n=20
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,839,004 1,839,004 ~ ~ ~ p=1.000 n=20
Types 1,147,065 1,147,065 ~ ~ ~ p=1.000 n=20
Memory Used 938,428k (± 0.01%) 938,416k (± 0.01%) ~ 938,025k 938,928k p=1.000 n=20
Memory Allocs 13,249,548 (± 0.14%) 13,256,020 (± 0.10%) ~ 13,212,010 13,312,810 p=0.498 n=20
Config Time 0.013s (± 1.30%) 0.013s (± 1.75%) +0.000s (+ 1.87%) 0.013s 0.014s p=0.018 n=20
Parse Time 0.334s (± 2.31%) 0.333s (± 1.41%) ~ 0.317s 0.349s p=0.966 n=20
Bind Time 0.085s (±10.72%) 0.086s (±11.42%) ~ 0.070s 0.142s p=0.898 n=20
Check Time 2.869s (± 0.58%) 2.856s (± 0.59%) ~ 2.796s 2.906s p=0.114 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.324s (± 0.39%) 3.311s (± 0.32%) ~ 3.283s 3.354s p=0.154 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,182,507 1,182,507 ~ ~ ~ p=1.000 n=20
Types 435,504 435,504 ~ ~ ~ p=1.000 n=20
Memory Used 1,166,929k (± 0.27%) 1,166,926k (± 0.50%) ~ 1,151,882k 1,193,915k p=0.596 n=20
Memory Allocs 39,927,237 (± 0.09%) 39,972,963 (± 0.06%) ~ 39,903,322 40,083,905 p=0.123 n=20
Config Time 0.004s (± 9.34%) 0.004s (±10.01%) ~ 0.002s 0.006s p=0.530 n=20
Parse Time 0.288s (± 1.58%) 0.285s (± 1.30%) ~ 0.270s 0.297s p=0.324 n=20
Bind Time 0.000s (±208.60%) 0.000s (±169.87%) ~ 0.000s 0.004s p=0.744 n=20
Check Time 1.707s (± 0.32%) 1.707s (± 0.34%) ~ 1.688s 1.740s p=0.898 n=20
Emit Time 0.299s (± 1.94%) 0.306s (± 2.37%) ~ 0.276s 0.333s p=0.133 n=20
Total Time 20.390s (± 0.29%) 20.441s (± 0.23%) ~ 20.287s 20.655s p=0.245 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 262,139 262,139 ~ ~ ~ p=1.000 n=20
Types 195,077 195,077 ~ ~ ~ p=1.000 n=20
Memory Used 221,486k (± 0.02%) 221,453k (± 0.03%) ~ 221,195k 221,789k p=0.330 n=20
Memory Allocs 1,885,244 (± 0.02%) 1,885,113 (± 0.03%) ~ 1,883,178 1,886,625 p=0.898 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.101s (± 3.70%) 0.105s (± 3.28%) ~ 0.094s 0.119s p=0.165 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.830s (± 0.50%) 0.833s (± 0.52%) ~ 0.818s 0.853s p=0.332 n=20
Emit Time 0.091s (± 4.12%) 0.088s (± 2.58%) ~ 0.080s 0.099s p=0.177 n=20
Total Time 1.072s (± 0.60%) 1.073s (± 0.63%) ~ 1.047s 1.102s p=0.956 n=20
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 4,345,111 4,345,111 ~ ~ ~ p=1.000 n=20
Types 3,039,273 3,039,273 ~ ~ ~ p=1.000 n=20
Memory Used 2,392,942k (± 0.02%) 2,393,100k (± 0.03%) ~ 2,391,450k 2,398,082k p=0.784 n=20
Memory Allocs 36,902,345 (± 0.04%) 36,919,211 (± 0.05%) ~ 36,858,074 37,037,571 p=0.133 n=20
Config Time 0.006s 0.006s ~ ~ ~ p=1.000 n=20
Parse Time 0.545s (± 1.67%) 0.569s (± 2.20%) 🔻+0.023s (+ 4.28%) 0.522s 0.611s p=0.001 n=20
Bind Time 0.143s (± 4.05%) 0.140s (± 5.16%) ~ 0.132s 0.204s p=0.145 n=20
Check Time 12.095s (± 0.48%) 12.029s (± 0.39%) ~ 11.768s 12.201s p=0.087 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 12.805s (± 0.48%) 12.759s (± 0.36%) ~ 12.498s 12.918s p=0.293 n=20
tanstack-router - native
Errors 3 3 ~ ~ ~ p=1.000 n=20
Symbols 567,390 567,390 ~ ~ ~ p=1.000 n=20
Types 395,720 395,720 ~ ~ ~ p=1.000 n=20
Memory Used 311,085k (± 0.01%) 311,102k (± 0.01%) ~ 310,881k 311,253k p=0.430 n=20
Memory Allocs 3,966,919 (± 0.10%) 3,964,867 (± 0.03%) ~ 3,961,076 3,970,694 p=0.294 n=20
Config Time 0.002s 0.002s (± 5.35%) ~ 0.001s 0.002s p=1.000 n=20
Parse Time 0.080s (± 3.41%) 0.082s (± 3.07%) ~ 0.074s 0.092s p=0.113 n=20
Bind Time 0.030s (±12.46%) 0.028s (±13.30%) ~ 0.020s 0.047s p=0.648 n=20
Check Time 0.997s (± 0.66%) 1.003s (± 0.63%) ~ 0.980s 1.027s p=0.143 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.112s (± 0.47%) 1.121s (± 0.58%) +0.010s (+ 0.86%) 1.099s 1.145s p=0.045 n=20
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 230,307 230,307 ~ ~ ~ p=1.000 n=20
Types 180,514 180,514 ~ ~ ~ p=1.000 n=20
Memory Used 190,428k (± 0.01%) 190,441k (± 0.01%) ~ 190,347k 190,533k p=0.231 n=20
Memory Allocs 1,284,164 (± 0.01%) 1,284,101 (± 0.01%) ~ 1,283,744 1,284,998 p=0.596 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.076s (± 3.51%) 0.074s (± 3.19%) ~ 0.065s 0.085s p=0.090 n=20
Bind Time 0.031s (± 7.24%) 0.032s (± 7.04%) ~ 0.026s 0.041s p=0.322 n=20
Check Time 0.555s (± 0.83%) 0.552s (± 0.66%) ~ 0.540s 0.564s p=0.430 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.674s (± 0.59%) 0.671s (± 0.56%) ~ 0.659s 0.690s p=0.105 n=20
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 9,047,209 9,047,209 ~ ~ ~ p=1.000 n=20
Types 5,227,589 5,227,589 ~ ~ ~ p=1.000 n=20
Memory Used 6,008,239k (± 0.01%) 6,007,369k (± 0.01%) ~ 6,004,447k 6,010,562k p=0.165 n=20
Memory Allocs 66,645,925 (± 0.02%) 66,639,569 (± 0.01%) ~ 66,624,556 66,700,338 p=0.114 n=20
Config Time 0.048s (± 0.53%) 0.048s (± 0.35%) ~ 0.048s 0.049s p=0.250 n=20
Parse Time 1.882s (± 1.46%) 1.894s (± 2.01%) ~ 1.760s 2.014s p=0.784 n=20
Bind Time 0.603s (± 8.15%) 0.617s (±10.52%) ~ 0.526s 0.934s p=1.000 n=20
Check Time 15.314s (± 0.63%) 15.360s (± 0.55%) ~ 15.036s 15.734s p=0.515 n=20
Emit Time 4.596s (± 7.31%) 4.563s (± 6.66%) ~ 4.073s 5.783s p=0.756 n=20
Total Time 22.515s (± 1.30%) 22.554s (± 1.32%) ~ 22.053s 23.644s p=0.332 n=20
webpack - native
Errors 1,385 1,385 ~ ~ ~ p=1.000 n=20
Symbols 849,063 849,063 ~ ~ ~ p=1.000 n=20
Types 592,726 592,726 ~ ~ ~ p=1.000 n=20
Memory Used 738,268k (± 0.01%) 738,223k (± 0.02%) ~ 737,814k 738,898k p=0.622 n=20
Memory Allocs 6,207,500 (± 0.18%) 6,193,460 (± 0.13%) -12,626 (- 0.20%) 6,181,392 6,243,378 p=0.040 n=20
Config Time 0.008s (± 2.79%) 0.008s (± 2.82%) ~ 0.008s 0.009s p=0.084 n=20
Parse Time 0.325s (± 2.90%) 0.324s (± 2.91%) ~ 0.290s 0.359s p=0.927 n=20
Bind Time 0.090s (±11.14%) 0.091s (±11.95%) ~ 0.072s 0.142s p=0.794 n=20
Check Time 3.046s (± 0.25%) 3.037s (± 0.34%) ~ 2.988s 3.085s p=0.145 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.520s (± 0.40%) 3.511s (± 0.48%) ~ 3.460s 3.583s p=0.430 n=20
xstate-main - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,381,423 4,381,423 ~ ~ ~ p=1.000 n=20
Types 4,494,120 4,494,120 ~ ~ ~ p=1.000 n=20
Memory Used 2,408,918k (± 0.01%) 2,409,029k (± 0.01%) ~ 2,408,369k 2,409,851k p=0.368 n=20
Memory Allocs 48,482,442 (± 0.01%) 48,485,095 (± 0.01%) ~ 48,470,754 48,505,953 p=0.368 n=20
Config Time 0.004s 0.004s (± 2.58%) ~ 0.004s 0.005s p=1.000 n=20
Parse Time 0.215s (± 1.86%) 0.212s (± 1.95%) ~ 0.194s 0.226s p=0.293 n=20
Bind Time 0.064s (± 8.26%) 0.067s (±10.99%) ~ 0.054s 0.107s p=0.856 n=20
Check Time 8.361s (± 0.27%) 8.310s (± 0.45%) -0.029s (- 0.35%) 8.096s 8.396s p=0.015 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 8.651s (± 0.23%) 8.600s (± 0.40%) -0.032s (- 0.38%) 8.396s 8.682s p=0.011 n=20
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • arktype - native
  • class-transformer - native
  • effect - native
  • mui-docs - native
  • sentry - native
  • social-app - native
  • strada-build-src - native
  • strada-compiler - native
  • t3code-server - native
  • tanstack-router - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 20
Baseline baseline 20

Developer Information:

Download Benchmarks

@typescript-automation

Copy link
Copy Markdown
Contributor

Daniel Rosenwasser (@DanielRosenwasser) Here are the results of running the top 400 repos with tsc comparing baseline and pr:

Everything looks good!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parser splits JSX from a following computed property access, call, or template literal

3 participants