René's URL Explorer Experiment


Title: Simple control flow analysis by vladima · Pull Request #1287 · microsoft/TypeScript · GitHub

Open Graph Title: Simple control flow analysis by vladima · Pull Request #1287 · microsoft/TypeScript

X Title: Simple control flow analysis by vladima · Pull Request #1287 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Simple control flow analysis by vladima · Pull Request #1287 · microsoft/TypeScript

Open Graph Description: This PR adds a basic control flow analysis to typescript compiler. Now it can detect unreachable code, implicit returns of undefined in functions, unused labels, fall- through between cases in swit...

X Description: This PR adds a basic control flow analysis to typescript compiler. Now it can detect unreachable code, implicit returns of undefined in functions, unused labels, fall- through between cases in swit...

Opengraph URL: https://github.com/microsoft/TypeScript/pull/1287

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:7fb7861d-b7d9-3061-7447-4f4ff978bbea
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id868C:2A01CD:2D37C5:3FF0F0:6B006CE0
html-safe-nonced7d11edb7c90dd5d562882f4364abefdcb437bc731170f2eaa24e6b2c78ce774
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjhDOjJBMDFDRDoyRDM3QzU6M0ZGMEYwOjZCMDA2Q0UwIiwidmlzaXRvcl9pZCI6IjYwNTYwNjA5MjkzMTYyNDE2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacad62d73e8a821d3d9a5a7a66d0b9e64178d727b65f2b25cd25d469607e64ccde
hovercard-subject-tagpull_request:25122160
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/1287/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/28bc772868dc89f25770e538f5675db59912840719a469122ed4e9d02e11934b/microsoft/TypeScript/pull/1287
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/28bc772868dc89f25770e538f5675db59912840719a469122ed4e9d02e11934b/microsoft/TypeScript/pull/1287
og:image:altThis PR adds a basic control flow analysis to typescript compiler. Now it can detect unreachable code, implicit returns of undefined in functions, unused labels, fall- through between cases in swit...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevladima
hostnamegithub.com
expected-hostnamegithub.com
None6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa
turbo-cache-controlno-cache
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/1287#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F1287
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F1287
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/1287
Reloadhttps://github.com/microsoft/TypeScript/pull/1287
Reloadhttps://github.com/microsoft/TypeScript/pull/1287
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests307 (307)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
Vladimir Matveev (vladima)https://github.com/vladima
masterhttps://github.com/microsoft/TypeScript/tree/master
cfahttps://github.com/microsoft/TypeScript/tree/cfa
Conversationhttps://github.com/microsoft/TypeScript/pull/1287
Commits9 (9)https://github.com/microsoft/TypeScript/pull/1287/commits
Checkshttps://github.com/microsoft/TypeScript/pull/1287/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/1287/files
Simple control flow analysis https://github.com/microsoft/TypeScript/pull/1287#top
Vladimir Matveev (vladima)https://github.com/vladima
masterhttps://github.com/microsoft/TypeScript/tree/master
cfahttps://github.com/microsoft/TypeScript/tree/cfa
https://github.com/vladima
Vladimir Matveev (vladima)https://github.com/vladima
Nov 27, 2014https://github.com/microsoft/TypeScript/pull/1287#issue-50240366
#393https://github.com/microsoft/TypeScript/issues/393
#274https://github.com/microsoft/TypeScript/issues/274
https://cloud.githubusercontent.com/assets/8052307/5210657/c5ae0f28-7585-11e4-97d8-86169ef2a160.gif
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/1287
Vladimir Matveev (vladima)https://github.com/vladima
November 7, 2014 22:21https://github.com/microsoft/TypeScript/pull/1287#commits-pushed-3ec5eb1
https://github.com/vladima
initial rev of controlflow analysishttps://github.com/microsoft/TypeScript/pull/1287/commits/3ec5eb17bc4298081f3c8fe7753aa90a31e13dcb
https://github.com/microsoft/TypeScript/commit/3ec5eb17bc4298081f3c8fe7753aa90a31e13dcb#comments
3ec5eb1https://github.com/microsoft/TypeScript/pull/1287/commits/3ec5eb17bc4298081f3c8fe7753aa90a31e13dcb
https://github.com/vladima
merge with masterhttps://github.com/microsoft/TypeScript/pull/1287/commits/d0da055453e31908c0ab4fb49f203c3dbdc60130
d0da055https://github.com/microsoft/TypeScript/pull/1287/commits/d0da055453e31908c0ab4fb49f203c3dbdc60130
DanielRosenwasserhttps://github.com/DanielRosenwasser
Nov 27, 2014 https://github.com/microsoft/TypeScript/pull/1287#discussion-diff-20973853
View reviewed changes https://github.com/microsoft/TypeScript/pull/1287/files/d0da055453e31908c0ab4fb49f203c3dbdc60130#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/1287/files#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Nov 27, 2014https://github.com/microsoft/TypeScript/pull/1287#discussion_r20973853
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/1287
https://github.com/dekajp
dekajp (dekajp)https://github.com/dekajp
Nov 30, 2014 https://github.com/microsoft/TypeScript/pull/1287#ref-issue-39755590
Switch case fallthrough #393 https://github.com/microsoft/TypeScript/issues/393
DanielRosenwasserhttps://github.com/DanielRosenwasser
Nov 30, 2014 https://github.com/microsoft/TypeScript/pull/1287#discussion-diff-21063461
View reviewed changes https://github.com/microsoft/TypeScript/pull/1287/files/d0da055453e31908c0ab4fb49f203c3dbdc60130#diff-36d19e272f7bf7aa5f106140405a49165c2b23139480b8dc9befe679d0ccd239
src/compiler/controlflow.tshttps://github.com/microsoft/TypeScript/pull/1287/files#diff-36d19e272f7bf7aa5f106140405a49165c2b23139480b8dc9befe679d0ccd239
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Nov 30, 2014https://github.com/microsoft/TypeScript/pull/1287#discussion_r21063461
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/1287
https://github.com/vladima
addressed CR feedback, exit early after reporting 'unreachable statem…https://github.com/microsoft/TypeScript/pull/1287/commits/1d6bd0d92f9736bf01d01950bf029e6d2e5316a9
1d6bd0dhttps://github.com/microsoft/TypeScript/pull/1287/commits/1d6bd0d92f9736bf01d01950bf029e6d2e5316a9
DanielRosenwasserhttps://github.com/DanielRosenwasser
Dec 1, 2014 https://github.com/microsoft/TypeScript/pull/1287#discussion-diff-21068988
View reviewed changes https://github.com/microsoft/TypeScript/pull/1287/files/1d6bd0d92f9736bf01d01950bf029e6d2e5316a9#diff-36d19e272f7bf7aa5f106140405a49165c2b23139480b8dc9befe679d0ccd239
src/compiler/controlflow.tshttps://github.com/microsoft/TypeScript/pull/1287/files#diff-36d19e272f7bf7aa5f106140405a49165c2b23139480b8dc9befe679d0ccd239
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Dec 1, 2014https://github.com/microsoft/TypeScript/pull/1287#discussion_r21068988
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/1287
Vladimir Matveev (vladima)https://github.com/vladima
December 1, 2014 10:38https://github.com/microsoft/TypeScript/pull/1287#commits-pushed-80cc8bb
https://github.com/vladima
merge with masterhttps://github.com/microsoft/TypeScript/pull/1287/commits/80cc8bbafc3afc0f8bea3764fee6f2e473d773cc
80cc8bbhttps://github.com/microsoft/TypeScript/pull/1287/commits/80cc8bbafc3afc0f8bea3764fee6f2e473d773cc
https://github.com/vladima
removed commented codehttps://github.com/microsoft/TypeScript/pull/1287/commits/147959fd31c9346674059dacec97e3a82fca2514
147959fhttps://github.com/microsoft/TypeScript/pull/1287/commits/147959fd31c9346674059dacec97e3a82fca2514
https://github.com/JsonFreeman
Jason Freeman (JsonFreeman)https://github.com/JsonFreeman
Dec 1, 2014https://github.com/microsoft/TypeScript/pull/1287#issuecomment-65138372
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/1287
Vladimir Matveev (vladima)https://github.com/vladima
December 1, 2014 13:50https://github.com/microsoft/TypeScript/pull/1287#commits-pushed-20d0cd9
https://github.com/vladima
fix post finally statehttps://github.com/microsoft/TypeScript/pull/1287/commits/20d0cd9363119fb27085012e6c3db37b4bd50a10
20d0cd9https://github.com/microsoft/TypeScript/pull/1287/commits/20d0cd9363119fb27085012e6c3db37b4bd50a10
https://github.com/vladima
move check of else statement into conditionalhttps://github.com/microsoft/TypeScript/pull/1287/commits/363a517fd66a9ce9315f352b9158b057c9a1f654
363a517https://github.com/microsoft/TypeScript/pull/1287/commits/363a517fd66a9ce9315f352b9158b057c9a1f654
https://github.com/vladima
change category of cf related notification to 'warning'https://github.com/microsoft/TypeScript/pull/1287/commits/15e630cae8359e66d90839b411dfff5b990564e7
15e630chttps://github.com/microsoft/TypeScript/pull/1287/commits/15e630cae8359e66d90839b411dfff5b990564e7
https://github.com/vladima
fix final state in if statementhttps://github.com/microsoft/TypeScript/pull/1287/commits/68b135a9656399749906d54777ce39693fba0eb2
68b135ahttps://github.com/microsoft/TypeScript/pull/1287/commits/68b135a9656399749906d54777ce39693fba0eb2
https://github.com/vladima
Vladimir Matveev (vladima)https://github.com/vladima
Jan 21, 2015 https://github.com/microsoft/TypeScript/pull/1287#ref-issue-55078334
Type narrowing is not allowed if variable is reassigned after the use site inside if block #1764 https://github.com/microsoft/TypeScript/issues/1764
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Jan 22, 2015https://github.com/microsoft/TypeScript/pull/1287#issuecomment-70983454
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/1287
https://github.com/NoelAbrahams
Noel Abrahams (NoelAbrahams)https://github.com/NoelAbrahams
Jan 22, 2015https://github.com/microsoft/TypeScript/pull/1287#issuecomment-71003130
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/1287
https://github.com/CyrusNajmabadi
Cyrus Najmabadi (CyrusNajmabadi)https://github.com/CyrusNajmabadi
Mar 1, 2015 https://github.com/microsoft/TypeScript/pull/1287#ref-issue-59418255
Suggestion: errors based on control flow analysis #2176 https://github.com/microsoft/TypeScript/issues/2176
https://github.com/awerlang
André Werlang (awerlang)https://github.com/awerlang
Mar 19, 2015https://github.com/microsoft/TypeScript/pull/1287#issuecomment-83631147
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/1287
https://github.com/CyrusNajmabadi
Cyrus Najmabadi (CyrusNajmabadi)https://github.com/CyrusNajmabadi
Apr 10, 2015 https://github.com/microsoft/TypeScript/pull/1287#ref-issue-67502324
If the expression after the return statement is on a new line, the generated code is incorrect #2704 https://github.com/microsoft/TypeScript/issues/2704
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F1287
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/1287
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/1287
https://github.com/vladima
https://github.com/JsonFreeman
https://github.com/DanielRosenwasser
https://github.com/NoelAbrahams
https://github.com/awerlang
https://github.com/CyrusNajmabadi
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.