CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 04:12:37 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/TypeScript.git
etag: W/"2962e965cd140ba934c224f4cc47f41f"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=ne48j%2FmTO%2FR4Yq43D0c4H8HvORi0zhyee2xCFH9YhR6WR6eudzy%2B6Rwb6rgJ0AKf%2FOe8Pr67bz5SRnDLQcfxqxHN%2FFa0MPqjorZqUKTB9vQqBl7L3pB8mg%2F8qg4MFg1f498wWBg7qc6qS2J1ni84TMx2OYjScDHS0XROJ8p81Uo6TNoDwbt43QwDmkZXocwqgtVggl6UBdOXvWpSpJSU6ZX%2FCB%2FVxx4tHwlllXUUzAHO3SCuqKl50zIrVeZbaKJcnqgOVvEP%2Fb3hfDqFIaTajg%3D%3D--%2BaCOcfofQwbZg4KO--kw4rvikp3jC6cgBMItgMCg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1962859890.1753243955; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 04:12:35 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 04:12:35 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A142:35B563:318DB9:451A4B:68806133
Support naming tuple members (#38234) · microsoft/TypeScript@5f597e6 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/factoryPublic.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/declarations.ts
Copy file name to clipboardExpand all lines: src/compiler/visitorPublic.ts
Copy file name to clipboard
Copy file name to clipboardExpand all lines: src/services/formatting/smartIndenter.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 5f597e6
authored
Support naming tuple members (#38234)
* Initial draft of named tuple members
* Show tuple labels and documentation in completions
* Swap allowed syntax to parameter-like
* Add quickfix for labeled tuple syntax mistakes
* Add refactoring to convert list of signatures to single overload
* Fix small bug in visitor verification
* Signature help for rest parameters which are unions of tuples are displayed as seperate entries now
* Expand sanity check test cases in conformance suite
* Add tests and code for preserving tuple names through spreads where possible
* More refactoring tests, some comment preservation and some fixed formatting of multiline tuples
* Handle missing parameter named in isValidDeclarationForTupleLabel
* Minor text fixes1 parent 24f53b0 commit 5f597e6Copy full SHA for 5f597e6
File tree
Expand file treeCollapse file tree
62 files changed
+2176
-489
lines changedFilter options
- src
- compiler
- transformers
- services
- codefixes
- formatting
- refactors
- testRunner/unittests
- tests
- baselines/reference
- JSDocParsing
- api
- cases
- conformance/types/tuple/named
- fourslash
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
62 files changed
+2176
-489
lines changed+190-64Lines changed: 190 additions & 64 deletions
Large diffs are not rendered by default.
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+24Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3517 | 3517 |
| |
3518 | 3518 |
| |
3519 | 3519 |
| |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
3520 | 3536 |
| |
3521 | 3537 |
| |
3522 | 3538 |
| |
| |||
5677 | 5693 |
| |
5678 | 5694 |
| |
5679 | 5695 |
| |
| 5696 | + | |
| 5697 | + | |
| 5698 | + | |
| 5699 | + | |
| 5700 | + | |
| 5701 | + | |
| 5702 | + | |
| 5703 | + | |
5680 | 5704 |
| |
5681 | 5705 |
| |
5682 | 5706 |
| |
|
+16-4Lines changed: 16 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1370 | 1370 |
| |
1371 | 1371 |
| |
1372 | 1372 |
| |
| 1373 | + | |
| 1374 | + | |
1373 | 1375 |
| |
1374 | 1376 |
| |
1375 | 1377 |
| |
| |||
2099 | 2101 |
| |
2100 | 2102 |
| |
2101 | 2103 |
| |
2102 |
| - | |
2103 |
| - | |
2104 |
| - | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
2105 | 2117 |
| |
2106 | 2118 |
| |
2107 | 2119 |
| |
| |||
4968 | 4980 |
| |
4969 | 4981 |
| |
4970 | 4982 |
| |
4971 |
| - | |
| 4983 | + | |
4972 | 4984 |
| |
4973 | 4985 |
| |
4974 | 4986 |
| |
|
src/compiler/factoryPublic.ts
Copy file name to clipboardExpand all lines: src/compiler/factoryPublic.ts+38-5Lines changed: 38 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
810 | 810 |
| |
811 | 811 |
| |
812 | 812 |
| |
813 |
| - | |
| 813 | + | |
814 | 814 |
| |
815 |
| - | |
| 815 | + | |
816 | 816 |
| |
817 | 817 |
| |
818 | 818 |
| |
819 |
| - | |
820 |
| - | |
821 |
| - | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
822 | 822 |
| |
823 | 823 |
| |
824 | 824 |
| |
| |||
934 | 934 |
| |
935 | 935 |
| |
936 | 936 |
| |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
937 | 955 |
| |
938 | 956 |
| |
939 | 957 |
| |
| |||
2616 | 2634 |
| |
2617 | 2635 |
| |
2618 | 2636 |
| |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
2619 | 2652 |
| |
2620 | 2653 |
| |
2621 | 2654 |
| |
|
+31-2Lines changed: 31 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
| 182 | + | |
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
210 | 215 |
| |
211 | 216 |
| |
212 | 217 |
| |
| |||
3056 | 3061 |
| |
3057 | 3062 |
| |
3058 | 3063 |
| |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
3059 | 3088 |
| |
3060 | 3089 |
| |
3061 |
| - | |
| 3090 | + | |
3062 | 3091 |
| |
3063 | 3092 |
| |
3064 | 3093 |
| |
|
src/compiler/transformers/declarations.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/declarations.ts+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1018 | 1018 |
| |
1019 | 1019 |
| |
1020 | 1020 |
| |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1021 | 1025 |
| |
1022 | 1026 |
| |
1023 | 1027 |
| |
|
+18-4Lines changed: 18 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
328 | 328 |
| |
329 | 329 |
| |
330 | 330 |
| |
| 331 | + | |
331 | 332 |
| |
332 | 333 |
| |
333 | 334 |
| |
| |||
700 | 701 |
| |
701 | 702 |
| |
702 | 703 |
| |
| 704 | + | |
703 | 705 |
| |
704 | 706 |
| |
705 | 707 |
| |
| |||
1274 | 1276 |
| |
1275 | 1277 |
| |
1276 | 1278 |
| |
1277 |
| - | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
1278 | 1288 |
| |
1279 | 1289 |
| |
1280 | 1290 |
| |
| |||
1478 | 1488 |
| |
1479 | 1489 |
| |
1480 | 1490 |
| |
| 1491 | + | |
1481 | 1492 |
| |
1482 | 1493 |
| |
1483 | 1494 |
| |
| |||
2590 | 2601 |
| |
2591 | 2602 |
| |
2592 | 2603 |
| |
| 2604 | + | |
2593 | 2605 |
| |
2594 | 2606 |
| |
2595 | 2607 |
| |
| |||
3495 | 3507 |
| |
3496 | 3508 |
| |
3497 | 3509 |
| |
3498 |
| - | |
| 3510 | + | |
3499 | 3511 |
| |
3500 | 3512 |
| |
3501 | 3513 |
| |
| |||
4148 | 4160 |
| |
4149 | 4161 |
| |
4150 | 4162 |
| |
| 4163 | + | |
4151 | 4164 |
| |
4152 | 4165 |
| |
4153 | 4166 |
| |
| |||
4618 | 4631 |
| |
4619 | 4632 |
| |
4620 | 4633 |
| |
4621 |
| - | |
| 4634 | + | |
4622 | 4635 |
| |
4623 | 4636 |
| |
4624 | 4637 |
| |
| |||
6559 | 6572 |
| |
6560 | 6573 |
| |
6561 | 6574 |
| |
6562 |
| - | |
| 6575 | + | |
| 6576 | + | |
6563 | 6577 |
| |
6564 | 6578 |
| |
6565 | 6579 |
| |
|
src/compiler/visitorPublic.ts
Copy file name to clipboardExpand all lines: src/compiler/visitorPublic.ts+9-1Lines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
480 | 480 |
| |
481 | 481 |
| |
482 | 482 |
| |
483 |
| - | |
| 483 | + | |
484 | 484 |
| |
485 | 485 |
| |
486 | 486 |
| |
| |||
517 | 517 |
| |
518 | 518 |
| |
519 | 519 |
| |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
520 | 528 |
| |
521 | 529 |
| |
522 | 530 |
| |
|
src/services/codefixes/fixIncorrectNamedTupleSyntax.ts
Copy file name to clipboard+52Lines changed: 52 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 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + |
src/services/formatting/smartIndenter.ts
Copy file name to clipboardExpand all lines: src/services/formatting/smartIndenter.ts+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
574 | 574 |
| |
575 | 575 |
| |
576 | 576 |
| |
577 |
| - | |
| 577 | + | |
578 | 578 |
| |
579 | 579 |
| |
580 | 580 |
| |
|
You can’t perform that action at this time.
0 commit comments