CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 21:04:10 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/"0f3eafdc701282e30a0cdf8f7008c4ff"
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=mI3Vba%2FPJUxVpyErNFy6AMd72UJDo0FILy%2FiRMDJcp0gtI0m8g7o60omnn5SPOctpzW9%2BaKxhNvvQz%2Ffqp2zNb9d%2BC161MUzaTqUfipABSe%2Fpf2jPrN3G4cpSCs7CciN8FHNcMiZhihkmPetlm5xh5RnhjZrgApLgo07DNCLxT%2F2PKNSZtvhEaV3dAu52se2mzr%2B2cfltUJQH8mJjyGYyvOEDfDaSdyjNbLFkpo%2BG3e7v7CrDG8YUi8PaBg%2B4hQTOlrEM5fToJ8qwEDH3N8zAA%3D%3D--V5sEWCHRPYBq5l02--y%2FDVZsqmQFsW%2B06NHGntpg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.87926241.1752872647; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 21:04:07 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 21:04:07 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CB28:29B498:17DC00:1F1B7C:687AB6C7
ES private field check (#44648) · microsoft/TypeScript@af689cc · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/factory/emitHelpers.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/parenthesizerRules.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/classFields.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 af689cc
authored
ES private field check (#44648)
* es private fields in in (#52)
add support for the 'private-fields-in-in' TC39 proposal
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [fixup] include inToken when walking forEachChild(node, cb)
* [squash] re-accept lib definition baseline changes
* [squash] reduce if/else to ternary
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] drop 'originalName' and rename parameter instead
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] extend spelling suggestion to all privateIdentifiers
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] revert the added lexical spelling suggestions logic
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] update baseline
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] inline variable as per PR suggestion
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] test targets both esnext and es2020 as per PR comment
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* switch to using a binary expression
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] PrivateIdentifier now extends PrimaryExpression
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] accept public api baseline changes
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] classPrivateFieldInHelper now has documentation
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] type-check now follows existing in-expression path
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] parser now follows existing binaryExpression path
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] correct typo in comment
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] no longer use esNext flag
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] swap 'reciever, state' helper params
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] remove change to parenthesizerRules
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] apply suggested changes to checker
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] remove need for assertion in fixSpelling
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] improve comment hint in test
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] fix comment typos
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] add flow-test for Foo | FooSub | Bar
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] add checkExternalEmitHelpers call and new test case
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] simplify and correct parser
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] move most of the added checker logic to expression level
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] always error when privateId could not be resolved
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] reword comment
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] fix codeFixSpelling test
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] do less work
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* store symbol by priateId not binaryExpression
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* moved parsePrivateIdentifier into parsePrimaryExpression
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] checkInExpressionn bails out early on silentNeverType
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] more detailed error messages
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] resolves conflict in diagnosticMessages.json
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] update baseline for importHelpersES6
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] remove redundent if and comment from parser
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] split up grammar/check/symbolLookup
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>
* [squash] reword message for existing left side of in-expression error
Signed-off-by: Ashley Claymore <acutmore@users.noreply.github.com>1 parent 59fb373 commit af689ccCopy full SHA for af689cc
File tree
Expand file treeCollapse file tree
48 files changed
+2398
-45
lines changedFilter options
- src
- compiler
- factory
- transformers
- services
- codefixes
- tests
- baselines/reference
- api
- cases
- compiler
- conformance/classes/members/privateNames
- 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
48 files changed
+2398
-45
lines changed+82-7Lines changed: 82 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23917 | 23917 |
| |
23918 | 23918 |
| |
23919 | 23919 |
| |
| 23920 | + | |
| 23921 | + | |
| 23922 | + | |
23920 | 23923 |
| |
23921 | 23924 |
| |
23922 | 23925 |
| |
| |||
23947 | 23950 |
| |
23948 | 23951 |
| |
23949 | 23952 |
| |
| 23953 | + | |
| 23954 | + | |
| 23955 | + | |
| 23956 | + | |
| 23957 | + | |
| 23958 | + | |
| 23959 | + | |
| 23960 | + | |
| 23961 | + | |
| 23962 | + | |
| 23963 | + | |
| 23964 | + | |
| 23965 | + | |
| 23966 | + | |
| 23967 | + | |
| 23968 | + | |
| 23969 | + | |
| 23970 | + | |
23950 | 23971 |
| |
23951 | 23972 |
| |
23952 | 23973 |
| |
| |||
27790 | 27811 |
| |
27791 | 27812 |
| |
27792 | 27813 |
| |
| 27814 | + | |
| 27815 | + | |
| 27816 | + | |
| 27817 | + | |
| 27818 | + | |
| 27819 | + | |
| 27820 | + | |
| 27821 | + | |
| 27822 | + | |
| 27823 | + | |
| 27824 | + | |
| 27825 | + | |
| 27826 | + | |
| 27827 | + | |
| 27828 | + | |
| 27829 | + | |
| 27830 | + | |
| 27831 | + | |
| 27832 | + | |
| 27833 | + | |
| 27834 | + | |
| 27835 | + | |
| 27836 | + | |
| 27837 | + | |
| 27838 | + | |
| 27839 | + | |
| 27840 | + | |
| 27841 | + | |
| 27842 | + | |
| 27843 | + | |
| 27844 | + | |
| 27845 | + | |
| 27846 | + | |
| 27847 | + | |
27793 | 27848 |
| |
27794 | 27849 |
| |
27795 | 27850 |
| |
| |||
32110 | 32165 |
| |
32111 | 32166 |
| |
32112 | 32167 |
| |
32113 |
| - | |
| 32168 | + | |
| 32169 | + | |
| 32170 | + | |
| 32171 | + | |
| 32172 | + | |
| 32173 | + | |
| 32174 | + | |
| 32175 | + | |
| 32176 | + | |
| 32177 | + | |
| 32178 | + | |
| 32179 | + | |
| 32180 | + | |
| 32181 | + | |
| 32182 | + | |
| 32183 | + | |
| 32184 | + | |
| 32185 | + | |
| 32186 | + | |
| 32187 | + | |
32114 | 32188 |
| |
32115 | 32189 |
| |
32116 |
| - | |
32117 |
| - | |
| 32190 | + | |
32118 | 32191 |
| |
32119 | 32192 |
| |
32120 | 32193 |
| |
| |||
32132 | 32205 |
| |
32133 | 32206 |
| |
32134 | 32207 |
| |
32135 |
| - | |
32136 |
| - | |
32137 |
| - | |
32138 |
| - | |
32139 | 32208 |
| |
32140 | 32209 |
| |
32141 | 32210 |
| |
| |||
33517 | 33586 |
| |
33518 | 33587 |
| |
33519 | 33588 |
| |
| 33589 | + | |
| 33590 | + | |
33520 | 33591 |
| |
33521 | 33592 |
| |
33522 | 33593 |
| |
| |||
40296 | 40367 |
| |
40297 | 40368 |
| |
40298 | 40369 |
| |
| 40370 | + | |
| 40371 | + | |
| 40372 | + | |
40299 | 40373 |
| |
40300 | 40374 |
| |
40301 | 40375 |
| |
| |||
41712 | 41786 |
| |
41713 | 41787 |
| |
41714 | 41788 |
| |
| 41789 | + | |
41715 | 41790 |
| |
41716 | 41791 |
| |
41717 | 41792 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+5-1Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1392 | 1392 |
| |
1393 | 1393 |
| |
1394 | 1394 |
| |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
1395 | 1399 |
| |
1396 | 1400 |
| |
1397 | 1401 |
| |
| |||
1654 | 1658 |
| |
1655 | 1659 |
| |
1656 | 1660 |
| |
1657 |
| - | |
| 1661 | + | |
1658 | 1662 |
| |
1659 | 1663 |
| |
1660 | 1664 |
| |
|
+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1684 | 1684 |
| |
1685 | 1685 |
| |
1686 | 1686 |
| |
| 1687 | + | |
| 1688 | + | |
1687 | 1689 |
| |
1688 | 1690 |
| |
1689 | 1691 |
| |
|
src/compiler/factory/emitHelpers.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/emitHelpers.ts+30Lines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
| |||
75 | 76 |
| |
76 | 77 |
| |
77 | 78 |
| |
| 79 | + | |
78 | 80 |
| |
79 | 81 |
| |
80 | 82 |
| |
| |||
395 | 397 |
| |
396 | 398 |
| |
397 | 399 |
| |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
398 | 404 |
| |
399 | 405 |
| |
400 | 406 |
| |
| |||
961 | 967 |
| |
962 | 968 |
| |
963 | 969 |
| |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
964 | 993 |
| |
965 | 994 |
| |
966 | 995 |
| |
| |||
986 | 1015 |
| |
987 | 1016 |
| |
988 | 1017 |
| |
| 1018 | + | |
989 | 1019 |
| |
990 | 1020 |
| |
991 | 1021 |
| |
|
src/compiler/factory/parenthesizerRules.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/parenthesizerRules.ts+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
452 | 452 |
| |
453 | 453 |
| |
454 | 454 |
| |
455 |
| - | |
| 455 | + |
+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5617 | 5617 |
| |
5618 | 5618 |
| |
5619 | 5619 |
| |
| 5620 | + | |
| 5621 | + | |
5620 | 5622 |
| |
5621 | 5623 |
| |
5622 | 5624 |
| |
|
src/compiler/transformers/classFields.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/classFields.ts+33-1Lines changed: 33 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
266 | 266 |
| |
267 | 267 |
| |
268 | 268 |
| |
269 |
| - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
270 | 272 |
| |
271 | 273 |
| |
272 | 274 |
| |
273 | 275 |
| |
274 | 276 |
| |
| 277 | + | |
| 278 | + | |
| 279 | + | |
275 | 280 |
| |
276 | 281 |
| |
277 | 282 |
| |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
278 | 307 |
| |
279 | 308 |
| |
280 | 309 |
| |
| |||
827 | 856 |
| |
828 | 857 |
| |
829 | 858 |
| |
| 859 | + | |
| 860 | + | |
| 861 | + | |
830 | 862 |
| |
831 | 863 |
| |
832 | 864 |
| |
|
+4-2Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1214 | 1214 |
| |
1215 | 1215 |
| |
1216 | 1216 |
| |
1217 |
| - | |
| 1217 | + | |
| 1218 | + | |
1218 | 1219 |
| |
1219 | 1220 |
| |
1220 | 1221 |
| |
| |||
6854 | 6855 |
| |
6855 | 6856 |
| |
6856 | 6857 |
| |
6857 |
| - | |
| 6858 | + | |
| 6859 | + | |
6858 | 6860 |
| |
6859 | 6861 |
| |
6860 | 6862 |
| |
|
+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1949 | 1949 |
| |
1950 | 1950 |
| |
1951 | 1951 |
| |
| 1952 | + | |
| 1953 | + | |
1952 | 1954 |
| |
1953 | 1955 |
| |
1954 | 1956 |
| |
| |||
3706 | 3708 |
| |
3707 | 3709 |
| |
3708 | 3710 |
| |
| 3711 | + | |
3709 | 3712 |
| |
3710 | 3713 |
| |
3711 | 3714 |
| |
|
src/compiler/utilitiesPublic.ts
Copy file name to clipboardExpand all lines: src/compiler/utilitiesPublic.ts+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1516 | 1516 |
| |
1517 | 1517 |
| |
1518 | 1518 |
| |
| 1519 | + | |
1519 | 1520 |
| |
1520 | 1521 |
| |
1521 | 1522 |
| |
|
You can’t perform that action at this time.
0 commit comments