CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 23:33:57 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/"646032556aadfb2a4756fa9afafaad92"
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=ChHSIemNx%2FhHWxtQIL3M94tRGt7vpLmr6jZZ9UqwnaoPR0NnhlCMWxNTtqSaUoto89zTPiG1a%2FtL1yH0lwR1nn8NCZcS7hK8tEaq4eWZtA8ppbtmAJjVXk88s1RvOT63p2Cl5fEXrDqEU%2FzPJQXgG3KXpffF%2BwcMbeEZQQVGBZJo3wLSBjDsoIlR%2F629cpm8PYlSWdFbCKm19okJQbD7HQEu1iY1ChSfX%2FS9%2BMpK%2FZr4MguN%2FKXwFC1XUPRo9e7%2BzTyI2r%2BXckfsZ2rifhUmFA%3D%3D--skOznmrSEqA%2Fiw7D--1dS%2F7VPS5XFvAVwRS50RUw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.643172025.1753227235; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 23:33:55 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 23:33:55 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D71C:36131:1C7486:271D90:68801FE3
Fix emit for optional chain with non-null assertion (#36539) · microsoft/TypeScript@b58a29b · GitHub
Copy file name to clipboardExpand all lines: src/compiler/factoryPublic.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/es2020.ts
Copy file name to clipboardExpand all lines: src/compiler/utilitiesPublic.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit b58a29b
File tree
Expand file treeCollapse file tree
25 files changed
+288
-69
lines changedFilter options
- src
- compiler
- transformers
- services
- tests
- baselines/reference
- api
- cases/conformance/expressions/optionalChaining
- callChain
- elementAccessChain
- propertyAccessChain
Expand file treeCollapse file tree
25 files changed
+288
-69
lines changed+18-4Lines changed: 18 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
833 | 833 |
| |
834 | 834 |
| |
835 | 835 |
| |
| 836 | + | |
| 837 | + | |
| 838 | + | |
836 | 839 |
| |
837 | 840 |
| |
838 | 841 |
| |
| |||
1668 | 1671 |
| |
1669 | 1672 |
| |
1670 | 1673 |
| |
1671 |
| - | |
1672 | 1674 |
| |
1673 | 1675 |
| |
| 1676 | + | |
1674 | 1677 |
| |
1675 | 1678 |
| |
1676 | 1679 |
| |
| 1680 | + | |
1677 | 1681 |
| |
1678 | 1682 |
| |
1679 | 1683 |
| |
| 1684 | + | |
1680 | 1685 |
| |
1681 | 1686 |
| |
1682 | 1687 |
| |
| |||
1695 | 1700 |
| |
1696 | 1701 |
| |
1697 | 1702 |
| |
1698 |
| - | |
| 1703 | + | |
1699 | 1704 |
| |
1700 | 1705 |
| |
1701 | 1706 |
| |
| |||
1718 | 1723 |
| |
1719 | 1724 |
| |
1720 | 1725 |
| |
1721 |
| - | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
1722 | 1736 |
| |
1723 | 1737 |
| |
1724 | 1738 |
| |
| |||
1727 | 1741 |
| |
1728 | 1742 |
| |
1729 | 1743 |
| |
1730 |
| - | |
| 1744 | + | |
1731 | 1745 |
| |
1732 | 1746 |
| |
1733 | 1747 |
| |
|
+8-1Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26503 | 26503 |
| |
26504 | 26504 |
| |
26505 | 26505 |
| |
| 26506 | + | |
| 26507 | + | |
| 26508 | + | |
| 26509 | + | |
| 26510 | + | |
| 26511 | + | |
26506 | 26512 |
| |
26507 |
| - | |
| 26513 | + | |
| 26514 | + | |
26508 | 26515 |
| |
26509 | 26516 |
| |
26510 | 26517 |
| |
|
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
| 169 | + | |
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
|
+9-24Lines changed: 9 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1335 | 1335 |
| |
1336 | 1336 |
| |
1337 | 1337 |
| |
1338 |
| - | |
1339 |
| - | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1340 | 1341 |
| |
| 1342 | + | |
1341 | 1343 |
| |
1342 | 1344 |
| |
1343 | 1345 |
| |
| |||
1349 | 1351 |
| |
1350 | 1352 |
| |
1351 | 1353 |
| |
| 1354 | + | |
1352 | 1355 |
| |
1353 |
| - | |
| 1356 | + | |
1354 | 1357 |
| |
1355 | 1358 |
| |
1356 | 1359 |
| |
| |||
1360 | 1363 |
| |
1361 | 1364 |
| |
1362 | 1365 |
| |
1363 |
| - | |
1364 |
| - | |
1365 |
| - | |
1366 |
| - | |
1367 |
| - | |
1368 |
| - | |
1369 |
| - | |
1370 |
| - | |
1371 |
| - | |
1372 |
| - | |
1373 |
| - | |
1374 |
| - | |
1375 |
| - | |
1376 |
| - | |
| 1366 | + | |
| 1367 | + | |
1377 | 1368 |
| |
1378 |
| - | |
1379 |
| - | |
1380 | 1369 |
| |
1381 | 1370 |
| |
1382 | 1371 |
| |
1383 | 1372 |
| |
1384 | 1373 |
| |
1385 | 1374 |
| |
1386 |
| - | |
1387 |
| - | |
1388 |
| - | |
1389 |
| - | |
1390 |
| - | |
| 1375 | + | |
1391 | 1376 |
| |
1392 | 1377 |
| |
1393 | 1378 |
| |
|
src/compiler/factoryPublic.ts
Copy file name to clipboardExpand all lines: src/compiler/factoryPublic.ts+19-4Lines changed: 19 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1076 | 1076 |
| |
1077 | 1077 |
| |
1078 | 1078 |
| |
1079 |
| - | |
1080 |
| - | |
1081 |
| - | |
1082 |
| - | |
| 1079 | + | |
| 1080 | + | |
1083 | 1081 |
| |
1084 | 1082 |
| |
1085 | 1083 |
| |
| |||
1653 | 1651 |
| |
1654 | 1652 |
| |
1655 | 1653 |
| |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
1656 | 1657 |
| |
1657 | 1658 |
| |
1658 | 1659 |
| |
1659 | 1660 |
| |
1660 | 1661 |
| |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
1661 | 1676 |
| |
1662 | 1677 |
| |
1663 | 1678 |
| |
|
+26-4Lines changed: 26 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4759 | 4759 |
| |
4760 | 4760 |
| |
4761 | 4761 |
| |
| 4762 | + | |
| 4763 | + | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
| 4776 | + | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
| 4780 | + | |
| 4781 | + | |
| 4782 | + | |
| 4783 | + | |
4762 | 4784 |
| |
4763 | 4785 |
| |
4764 | 4786 |
| |
4765 | 4787 |
| |
4766 | 4788 |
| |
4767 |
| - | |
| 4789 | + | |
4768 | 4790 |
| |
4769 | 4791 |
| |
4770 | 4792 |
| |
| |||
4790 | 4812 |
| |
4791 | 4813 |
| |
4792 | 4814 |
| |
4793 |
| - | |
| 4815 | + | |
4794 | 4816 |
| |
4795 | 4817 |
| |
4796 | 4818 |
| |
| |||
4877 | 4899 |
| |
4878 | 4900 |
| |
4879 | 4901 |
| |
4880 |
| - | |
| 4902 | + | |
4881 | 4903 |
| |
4882 | 4904 |
| |
4883 | 4905 |
| |
| |||
4889 | 4911 |
| |
4890 | 4912 |
| |
4891 | 4913 |
| |
4892 |
| - | |
| 4914 | + | |
4893 | 4915 |
| |
4894 | 4916 |
| |
4895 | 4917 |
| |
|
src/compiler/transformers/es2020.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/es2020.ts+3-1Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
45 | 46 |
| |
46 | 47 |
| |
47 |
| - | |
| 48 | + | |
| 49 | + | |
48 | 50 |
| |
49 | 51 |
| |
50 | 52 |
| |
|
+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1935 | 1935 |
| |
1936 | 1936 |
| |
1937 | 1937 |
| |
| 1938 | + | |
1938 | 1939 |
| |
1939 | 1940 |
| |
1940 | 1941 |
| |
| |||
2029 | 2030 |
| |
2030 | 2031 |
| |
2031 | 2032 |
| |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
2032 | 2037 |
| |
2033 | 2038 |
| |
2034 | 2039 |
| |
|
+1-5Lines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2674 | 2674 |
| |
2675 | 2675 |
| |
2676 | 2676 |
| |
2677 |
| - | |
2678 |
| - | |
2679 |
| - | |
2680 |
| - | |
2681 |
| - | |
| 2677 | + | |
2682 | 2678 |
| |
2683 | 2679 |
| |
2684 | 2680 |
| |
|
src/compiler/utilitiesPublic.ts
Copy file name to clipboardExpand all lines: src/compiler/utilitiesPublic.ts+16-14Lines changed: 16 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1086 | 1086 |
| |
1087 | 1087 |
| |
1088 | 1088 |
| |
1089 |
| - | |
| 1089 | + | |
1090 | 1090 |
| |
1091 | 1091 |
| |
1092 | 1092 |
| |
1093 | 1093 |
| |
1094 |
| - | |
| 1094 | + | |
| 1095 | + | |
1095 | 1096 |
| |
1096 | 1097 |
| |
1097 | 1098 |
| |
1098 | 1099 |
| |
1099 |
| - | |
| 1100 | + | |
1100 | 1101 |
| |
1101 | 1102 |
| |
1102 | 1103 |
| |
| |||
1111 | 1112 |
| |
1112 | 1113 |
| |
1113 | 1114 |
| |
1114 |
| - | |
1115 |
| - | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
1116 | 1118 |
| |
1117 |
| - | |
| 1119 | + | |
1118 | 1120 |
| |
1119 | 1121 |
| |
1120 | 1122 |
| |
1121 | 1123 |
| |
1122 |
| - | |
1123 |
| - | |
1124 |
| - | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
1125 | 1127 |
| |
1126 | 1128 |
| |
1127 | 1129 |
| |
| |||
1152 | 1154 |
| |
1153 | 1155 |
| |
1154 | 1156 |
| |
1155 |
| - | |
1156 |
| - | |
1157 |
| - | |
1158 |
| - | |
1159 |
| - | |
| 1157 | + | |
1160 | 1158 |
| |
1161 | 1159 |
| |
1162 | 1160 |
| |
| |||
1231 | 1229 |
| |
1232 | 1230 |
| |
1233 | 1231 |
| |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1234 | 1236 |
| |
1235 | 1237 |
| |
1236 | 1238 |
| |
|
You can’t perform that action at this time.
0 commit comments