CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 20:55:34 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/"3ba8cd145c2583b707ea6e11ba6f28b0"
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=k63ly45PustnzJJbGB1EdzaeHzw%2BPh3WiGqJXMrngIidwWmlEDxBlwFT4YhU3lLSW1zRnSgIwlwzxSV%2BP%2F3ouFN1JeJ43OhKr%2FloTEQebe%2BotqiIhifBEGtIhy%2F8Hc9jjBeiijDc%2Fw9GGxzakZJlhq5mkg4zxHRswZSimuDBjZ5Pw7lracAkvS%2FaazTBNfofaExI0BljZ5xwIu9Mua7EE8lR99VweeGRS8NzthO1pqn6NXsIeZLw%2BL34DDhbOVTT8niNTz%2FKmGC9RfLWDT9pqQ%3D%3D--gA8k4Gf3unXnYUVV--jqpzyBl0f1ikUxgsywL2KA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2128782991.1752872133; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 20:55:33 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 20:55:33 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: ACDC:2DAD44:177BF5:1E75B4:687AB4C5
Add support for Optional Chaining (#33294) · microsoft/TypeScript@fcd9334 · GitHub
Dismiss banner
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit fcd9334
authored
Add support for Optional Chaining (#33294)
* Add support for Optional Chaining
* Add grammar error for invalid tagged template, more tests
* Prototype
* PR feedback
* Add errors for invalid assignments and a trailing '?.'
* Add additional signature help test, fix lint warnings
* Fix to insert text for completions
* Add initial control-flow analysis for optional chains
* PR Feedback and more tests
* Update to control flow
* Remove mangled smart quotes in comments
* Fix lint, PR feedback
* Updates to control flow
* Switch to FlowCondition for CFA of optional chains
* Fix ?. insertion for completions on type variables
* Accept API baseline change
* Clean up types
* improve control-flow debug output
* Revert Debug.formatControlFlowGraph helper1 parent 7ce793c commit fcd9334Copy full SHA for fcd9334
File tree
Expand file treeCollapse file tree
76 files changed
+6422
-885
lines changedFilter options
- src
- compiler
- transformers
- services
- testRunner
- unittests/evaluation
- tests
- baselines/reference
- api
- cases
- conformance
- controlFlow
- expressions/optionalChaining
- callChain
- elementAccessChain
- propertyAccessChain
- taggedTemplateChain
- 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
76 files changed
+6422
-885
lines changed+121-24Lines changed: 121 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
797 | 797 |
| |
798 | 798 |
| |
799 | 799 |
| |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
800 | 804 |
| |
801 | 805 |
| |
802 | 806 |
| |
| |||
941 | 945 |
| |
942 | 946 |
| |
943 | 947 |
| |
944 |
| - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
945 | 951 |
| |
946 | 952 |
| |
947 | 953 |
| |
| |||
1015 | 1021 |
| |
1016 | 1022 |
| |
1017 | 1023 |
| |
1018 |
| - | |
1019 |
| - | |
1020 |
| - | |
| 1024 | + | |
| 1025 | + | |
1021 | 1026 |
| |
1022 | 1027 |
| |
1023 |
| - | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1024 | 1031 |
| |
1025 | 1032 |
| |
1026 |
| - | |
1027 |
| - | |
1028 |
| - | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
1029 | 1036 |
| |
1030 | 1037 |
| |
1031 |
| - | |
1032 |
| - | |
1033 |
| - | |
1034 |
| - | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
1035 | 1046 |
| |
1036 | 1047 |
| |
1037 | 1048 |
| |
| |||
1536 | 1547 |
| |
1537 | 1548 |
| |
1538 | 1549 |
| |
1539 |
| - | |
1540 |
| - | |
1541 |
| - | |
1542 |
| - | |
1543 |
| - | |
1544 |
| - | |
1545 |
| - | |
1546 |
| - | |
1547 |
| - | |
1548 |
| - | |
1549 |
| - | |
1550 |
| - | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
1551 | 1616 |
| |
1552 | 1617 |
| |
1553 | 1618 |
| |
1554 | 1619 |
| |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
1555 | 1640 |
| |
1556 | 1641 |
| |
1557 | 1642 |
| |
| |||
3297 | 3382 |
| |
3298 | 3383 |
| |
3299 | 3384 |
| |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
3300 | 3389 |
| |
3301 | 3390 |
| |
3302 | 3391 |
| |
| |||
3692 | 3781 |
| |
3693 | 3782 |
| |
3694 | 3783 |
| |
| 3784 | + | |
| 3785 | + | |
| 3786 | + | |
| 3787 | + | |
3695 | 3788 |
| |
3696 | 3789 |
| |
3697 | 3790 |
| |
| |||
3707 | 3800 |
| |
3708 | 3801 |
| |
3709 | 3802 |
| |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
3710 | 3807 |
| |
3711 | 3808 |
| |
3712 | 3809 |
| |
|
You can’t perform that action at this time.
0 commit comments