CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 01:50:31 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/"5e6d9d38d5b5a07d474c891e615eaa17"
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=K8V%2FJIhKxH4UlsCgN2aK3pgaifw7V4KFIbcq0pdaxS0VToML4HI%2Fw1oiJIE%2BTOdsGesCCXXDwEjaVkoQIsAWKI0OxUYv%2Fil3M%2F1T5JSSyz%2Bv5gDe25ha%2FLE0rKGeW0jmASWdYrWnmDNfBhRmImkO4opJ0fDmysU1GPQSHt01HXdsed5kJLMkqMniW4pPw9rEqDgdbSIfPInmldQhYr7MlY%2Bl3oVTiu95u0wpARA4OE1tBZwBB7TRFh6VdHnNJskJ8pcQhFiQM%2BIwb5E7%2FctnSg%3D%3D--qwR7VyjxTpw6Ua5q--VZwXYlkv7Shh1QWFrsWUDg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1677719918.1753321827; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 01:50:27 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 01:50:27 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E018:12BD61:11D74FF:159DC30:68819163
Proposal class static block support (#43370) · microsoft/TypeScript@906cbd2 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeFactory.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeTests.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 906cbd2
Proposal class static block support (#43370)
* Class static block (#9)
* Add types factory and parser
* Add some case
* Make class static block as a container
* Update cases
* Add visitor
* Add emitter and more compile target
* Check boundary of break and continue
* Add basic transformer
* Fix emit behavior
* Add more tests
* Add friend tests
* Update baseline
* Fix cr issues
* Accept baseline
* Add decorator and modifier check
* Add functional boundary check
* Fix conflict
* Fix computed prop name within context
* Add more tests
* Update baseline
* Avoid invalid test baseline
* Support use before initialize check
* wip
* Fix class static block context
* Fix checks
* Fix missing case
* Improve assert message
* Accept baseline
* Avoid new context
* Update diagnostic message
* Fix name collision
* Fix targets
* Avoid unnecessary files
* Add more case
* Add more test cases
* Fix strict mode function declaration
* Avoid private fields initializer if no private identifier references
* Avoid private fields and add more test case
* Add more case
* Add tests and support for related services functionality
* Fix this reference in static block
* Split parser diagnostic and binder diagnostic
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>1 parent 1694c77 commit 906cbd2Copy full SHA for 906cbd2
File tree
Expand file treeCollapse file tree
217 files changed
+8636
-469
lines changedFilter options
- src
- compiler
- factory
- transformers
- services
- tests
- baselines/reference
- api
- cases
- conformance/classes/classStaticBlock
- 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
217 files changed
+8636
-469
lines changed+5-3Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1832 | 1832 |
| |
1833 | 1833 |
| |
1834 | 1834 |
| |
| 1835 | + | |
1835 | 1836 |
| |
1836 | 1837 |
| |
1837 | 1838 |
| |
| |||
1867 | 1868 |
| |
1868 | 1869 |
| |
1869 | 1870 |
| |
1870 |
| - | |
| 1871 | + | |
1871 | 1872 |
| |
1872 | 1873 |
| |
1873 | 1874 |
| |
| |||
1929 | 1930 |
| |
1930 | 1931 |
| |
1931 | 1932 |
| |
| 1933 | + | |
1932 | 1934 |
| |
1933 | 1935 |
| |
1934 | 1936 |
| |
| |||
2328 | 2330 |
| |
2329 | 2331 |
| |
2330 | 2332 |
| |
2331 |
| - | |
| 2333 | + | |
2332 | 2334 |
| |
2333 | 2335 |
| |
2334 | 2336 |
| |
| |||
2712 | 2714 |
| |
2713 | 2715 |
| |
2714 | 2716 |
| |
2715 |
| - | |
| 2717 | + | |
2716 | 2718 |
| |
2717 | 2719 |
| |
2718 | 2720 |
| |
|
+53-22Lines changed: 53 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24186 | 24186 |
| |
24187 | 24187 |
| |
24188 | 24188 |
| |
24189 |
| - | |
| 24189 | + | |
24190 | 24190 |
| |
24191 | 24191 |
| |
24192 | 24192 |
| |
| |||
24544 | 24544 |
| |
24545 | 24545 |
| |
24546 | 24546 |
| |
| 24547 | + | |
| 24548 | + | |
| 24549 | + | |
24547 | 24550 |
| |
24548 | 24551 |
| |
24549 | 24552 |
| |
| |||
24602 | 24605 |
| |
24603 | 24606 |
| |
24604 | 24607 |
| |
24605 |
| - | |
| 24608 | + | |
| 24609 | + | |
24606 | 24610 |
| |
24607 | 24611 |
| |
24608 | 24612 |
| |
| |||
27565 | 27569 |
| |
27566 | 27570 |
| |
27567 | 27571 |
| |
27568 |
| - | |
| 27572 | + | |
27569 | 27573 |
| |
27570 | 27574 |
| |
27571 | 27575 |
| |
| |||
27586 | 27590 |
| |
27587 | 27591 |
| |
27588 | 27592 |
| |
27589 |
| - | |
| 27593 | + | |
27590 | 27594 |
| |
27591 | 27595 |
| |
27592 | 27596 |
| |
| |||
27606 | 27610 |
| |
27607 | 27611 |
| |
27608 | 27612 |
| |
| 27613 | + | |
| 27614 | + | |
27609 | 27615 |
| |
27610 | 27616 |
| |
27611 | 27617 |
| |
| |||
31303 | 31309 |
| |
31304 | 31310 |
| |
31305 | 31311 |
| |
31306 |
| - | |
| 31312 | + | |
| 31313 | + | |
| 31314 | + | |
| 31315 | + | |
| 31316 | + | |
31307 | 31317 |
| |
31308 | 31318 |
| |
31309 | 31319 |
| |
| |||
31328 | 31338 |
| |
31329 | 31339 |
| |
31330 | 31340 |
| |
31331 |
| - | |
31332 |
| - | |
31333 |
| - | |
| 31341 | + | |
| 31342 | + | |
31334 | 31343 |
| |
31335 | 31344 |
| |
31336 | 31345 |
| |
| |||
33489 | 33498 |
| |
33490 | 33499 |
| |
33491 | 33500 |
| |
| 33501 | + | |
| 33502 | + | |
| 33503 | + | |
| 33504 | + | |
| 33505 | + | |
| 33506 | + | |
33492 | 33507 |
| |
33493 | 33508 |
| |
33494 | 33509 |
| |
| |||
35096 | 35111 |
| |
35097 | 35112 |
| |
35098 | 35113 |
| |
| 35114 | + | |
35099 | 35115 |
| |
35100 | 35116 |
| |
35101 | 35117 |
| |
35102 |
| - | |
| 35118 | + | |
35103 | 35119 |
| |
35104 | 35120 |
| |
35105 | 35121 |
| |
| |||
35531 | 35547 |
| |
35532 | 35548 |
| |
35533 | 35549 |
| |
| 35550 | + | |
35534 | 35551 |
| |
35535 | 35552 |
| |
35536 | 35553 |
| |
| |||
35907 | 35924 |
| |
35908 | 35925 |
| |
35909 | 35926 |
| |
| 35927 | + | |
35910 | 35928 |
| |
35911 |
| - | |
35912 |
| - | |
35913 |
| - | |
35914 |
| - | |
| 35929 | + | |
| 35930 | + | |
| 35931 | + | |
| 35932 | + | |
| 35933 | + | |
| 35934 | + | |
| 35935 | + | |
| 35936 | + | |
| 35937 | + | |
35915 | 35938 |
| |
35916 | 35939 |
| |
35917 | 35940 |
| |
| |||
36791 | 36814 |
| |
36792 | 36815 |
| |
36793 | 36816 |
| |
36794 |
| - | |
36795 |
| - | |
| 36817 | + | |
| 36818 | + | |
| 36819 | + | |
| 36820 | + | |
| 36821 | + | |
| 36822 | + | |
| 36823 | + | |
36796 | 36824 |
| |
36797 | 36825 |
| |
36798 | 36826 |
| |
36799 | 36827 |
| |
36800 |
| - | |
| 36828 | + | |
36801 | 36829 |
| |
36802 |
| - | |
| 36830 | + | |
36803 | 36831 |
| |
36804 | 36832 |
| |
36805 |
| - | |
| 36833 | + | |
36806 | 36834 |
| |
36807 | 36835 |
| |
36808 | 36836 |
| |
36809 | 36837 |
| |
36810 |
| - | |
| 36838 | + | |
36811 | 36839 |
| |
36812 | 36840 |
| |
36813 | 36841 |
| |
36814 | 36842 |
| |
36815 |
| - | |
| 36843 | + | |
36816 | 36844 |
| |
36817 | 36845 |
| |
36818 | 36846 |
| |
| |||
36825 | 36853 |
| |
36826 | 36854 |
| |
36827 | 36855 |
| |
36828 |
| - | |
| 36856 | + | |
36829 | 36857 |
| |
36830 | 36858 |
| |
36831 | 36859 |
| |
| |||
38655 | 38683 |
| |
38656 | 38684 |
| |
38657 | 38685 |
| |
| 38686 | + | |
| 38687 | + | |
38658 | 38688 |
| |
38659 | 38689 |
| |
38660 | 38690 |
| |
| |||
41132 | 41162 |
| |
41133 | 41163 |
| |
41134 | 41164 |
| |
| 41165 | + | |
41135 | 41166 |
| |
41136 | 41167 |
| |
41137 | 41168 |
| |
| |||
41869 | 41900 |
| |
41870 | 41901 |
| |
41871 | 41902 |
| |
41872 |
| - | |
| 41903 | + | |
41873 | 41904 |
| |
41874 | 41905 |
| |
41875 | 41906 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+16Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7154 | 7154 |
| |
7155 | 7155 |
| |
7156 | 7156 |
| |
| 7157 | + | |
| 7158 | + | |
| 7159 | + | |
| 7160 | + | |
| 7161 | + | |
| 7162 | + | |
| 7163 | + | |
| 7164 | + | |
| 7165 | + | |
| 7166 | + | |
| 7167 | + | |
| 7168 | + | |
| 7169 | + | |
| 7170 | + | |
| 7171 | + | |
| 7172 | + | |
7157 | 7173 |
| |
7158 | 7174 |
|
+9Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1351 | 1351 |
| |
1352 | 1352 |
| |
1353 | 1353 |
| |
| 1354 | + | |
| 1355 | + | |
1354 | 1356 |
| |
1355 | 1357 |
| |
1356 | 1358 |
| |
| |||
2063 | 2065 |
| |
2064 | 2066 |
| |
2065 | 2067 |
| |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
2066 | 2075 |
| |
2067 | 2076 |
| |
2068 | 2077 |
| |
|
src/compiler/factory/nodeFactory.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeFactory.ts+34Lines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
| 97 | + | |
| 98 | + | |
97 | 99 |
| |
98 | 100 |
| |
99 | 101 |
| |
| |||
1415 | 1417 |
| |
1416 | 1418 |
| |
1417 | 1419 |
| |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
1418 | 1452 |
| |
1419 | 1453 |
| |
1420 | 1454 |
| |
|
src/compiler/factory/nodeTests.ts
Copy file name to clipboardExpand all lines: src/compiler/factory/nodeTests.ts+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
185 | 189 |
| |
186 | 190 |
| |
187 | 191 |
| |
|
You can’t perform that action at this time.
0 commit comments