CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 17:46:37 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/"692ad99045e61ef5229bf7fe6152ea30"
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=mh428bNiWUypewAYH%2FBfXNObdUeaQalUA%2F%2BX9%2FDSqm%2BmWBxXmWsByfHxirLbdWvkFw0rP2GrPrIOrJoYNgxtkxUZUFBdK0siMrTDMRhTCfYfqcP4M9TMW%2FS3KjBWr62ufmwQ8fpy0przlneLH64ZbnDnjeO8OP8fqVqg5YVWBw19ugnwDO%2BGvaiP4kODtENH7f9vtgKBt49Bur3solm6OWI1hD4%2BJr86uhRYP4DdPvlhZo%2B3xVz9A45RIPCpHkjcbdvJMHA5H2ObUui25j3VcA%3D%3D--RhKJDaG%2BEsNl7DqG--4RVi0aZmeFr8h0hoTtSqSw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.836830679.1752860795; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 17:46:35 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 17:46:35 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CD96:3001CD:46BF0:5735A:687A887B
Unused identifiers compiler code (#9200) · microsoft/TypeScript@a0a9666 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit a0a9666
authored
Unused identifiers compiler code (#9200)
* Code changes to update references of the Identifiers
* Added code for handling function, method and coonstructor level local variables and parameters
* Rebased with origin master
* Code changes to handle unused private variables, private methods and typed parameters
* Code changes to handle namespace level elements
* Code changes to handle unimplemented interfaces
* Code to optimize the d.ts check
* Correct Code change to handle the parameters for methods inside interfaces
* Fix for lint error
* Remove Trailing whitespace
* Code changes to handle interface implementations
* Changes to display the error position correctly
* Compiler Test Cases
* Adding condition to ignore constructor parameters
* Removing unnecessary tests
* Additional changes for compiler code
* Additional changes to handle constructor scenario
* Fixing the consolidated case
* Changed logic to search for private instead of public
* Response to PR Comments
* Changed the error code in test cases as result of merge with master
* Adding the missing file
* Adding the missing file II
* Response to PR comments
* Code changes for checking unused imports
* Test Cases for Unused Imports
* Response to PR comments
* Code change specific to position of Import Declaration
* Code change for handling the position for unused import
* New scenarios for handling parameters in lambda function, type parameters in methods, etc.
* Additional scenarios based on PR comments
* Removing a redundant check
* Added ambient check to imports and typeparatmeter reporting
* Added one more scenario to handle type parameters
* Added new scenario for TypeParameter on Interface
* Refactoring the code
* Added scenario to handle private class elements declared in constructor.
* Minor change to erro reporting1 parent cca7000 commit a0a9666Copy full SHA for a0a9666
File tree
Expand file treeCollapse file tree
324 files changed
+5641
-8
lines changedFilter options
- src/compiler
- tests
- baselines/reference
- cases/compiler
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
324 files changed
+5641
-8
lines changed+123-7Lines changed: 123 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8310 | 8310 |
| |
8311 | 8311 |
| |
8312 | 8312 |
| |
| 8313 | + | |
| 8314 | + | |
| 8315 | + | |
| 8316 | + | |
| 8317 | + | |
| 8318 | + | |
| 8319 | + | |
| 8320 | + | |
| 8321 | + | |
| 8322 | + | |
8313 | 8323 |
| |
8314 | 8324 |
| |
| 8325 | + | |
| 8326 | + | |
| 8327 | + | |
8315 | 8328 |
| |
8316 | 8329 |
| |
8317 | 8330 |
| |
| |||
10226 | 10239 |
| |
10227 | 10240 |
| |
10228 | 10241 |
| |
| 10242 | + | |
| 10243 | + | |
| 10244 | + | |
| 10245 | + | |
10229 | 10246 |
| |
10230 | 10247 |
| |
10231 | 10248 |
| |
| |||
12168 | 12185 |
| |
12169 | 12186 |
| |
12170 | 12187 |
| |
| 12188 | + | |
| 12189 | + | |
12171 | 12190 |
| |
12172 | 12191 |
| |
12173 | 12192 |
| |
| |||
13238 | 13257 |
| |
13239 | 13258 |
| |
13240 | 13259 |
| |
| 13260 | + | |
| 13261 | + | |
| 13262 | + | |
13241 | 13263 |
| |
13242 | 13264 |
| |
13243 | 13265 |
| |
| |||
13390 | 13412 |
| |
13391 | 13413 |
| |
13392 | 13414 |
| |
| 13415 | + | |
| 13416 | + | |
13393 | 13417 |
| |
13394 | 13418 |
| |
13395 | 13419 |
| |
| |||
13582 | 13606 |
| |
13583 | 13607 |
| |
13584 | 13608 |
| |
13585 |
| - | |
13586 |
| - | |
13587 |
| - | |
13588 |
| - | |
13589 |
| - | |
13590 |
| - | |
13591 |
| - | |
| 13609 | + | |
| 13610 | + | |
| 13611 | + | |
| 13612 | + | |
| 13613 | + | |
| 13614 | + | |
| 13615 | + | |
| 13616 | + | |
| 13617 | + | |
| 13618 | + | |
| 13619 | + | |
| 13620 | + | |
13592 | 13621 |
| |
13593 | 13622 |
| |
13594 | 13623 |
| |
| |||
14431 | 14460 |
| |
14432 | 14461 |
| |
14433 | 14462 |
| |
| 14463 | + | |
| 14464 | + | |
14434 | 14465 |
| |
14435 | 14466 |
| |
14436 | 14467 |
| |
| |||
14452 | 14483 |
| |
14453 | 14484 |
| |
14454 | 14485 |
| |
| 14486 | + | |
| 14487 | + | |
| 14488 | + | |
| 14489 | + | |
| 14490 | + | |
| 14491 | + | |
| 14492 | + | |
| 14493 | + | |
| 14494 | + | |
| 14495 | + | |
| 14496 | + | |
| 14497 | + | |
| 14498 | + | |
| 14499 | + | |
| 14500 | + | |
| 14501 | + | |
| 14502 | + | |
| 14503 | + | |
| 14504 | + | |
| 14505 | + | |
| 14506 | + | |
| 14507 | + | |
| 14508 | + | |
| 14509 | + | |
| 14510 | + | |
| 14511 | + | |
| 14512 | + | |
| 14513 | + | |
| 14514 | + | |
| 14515 | + | |
| 14516 | + | |
| 14517 | + | |
| 14518 | + | |
| 14519 | + | |
| 14520 | + | |
| 14521 | + | |
| 14522 | + | |
| 14523 | + | |
| 14524 | + | |
| 14525 | + | |
| 14526 | + | |
| 14527 | + | |
| 14528 | + | |
| 14529 | + | |
| 14530 | + | |
| 14531 | + | |
| 14532 | + | |
| 14533 | + | |
| 14534 | + | |
| 14535 | + | |
| 14536 | + | |
| 14537 | + | |
| 14538 | + | |
| 14539 | + | |
| 14540 | + | |
| 14541 | + | |
| 14542 | + | |
| 14543 | + | |
| 14544 | + | |
| 14545 | + | |
| 14546 | + | |
| 14547 | + | |
| 14548 | + | |
| 14549 | + | |
| 14550 | + | |
| 14551 | + | |
| 14552 | + | |
| 14553 | + | |
| 14554 | + | |
| 14555 | + | |
14455 | 14556 |
| |
14456 | 14557 |
| |
14457 | 14558 |
| |
14458 | 14559 |
| |
14459 | 14560 |
| |
14460 | 14561 |
| |
| 14562 | + | |
14461 | 14563 |
| |
14462 | 14564 |
| |
14463 | 14565 |
| |
| |||
14962 | 15064 |
| |
14963 | 15065 |
| |
14964 | 15066 |
| |
| 15067 | + | |
14965 | 15068 |
| |
14966 | 15069 |
| |
14967 | 15070 |
| |
| |||
15009 | 15112 |
| |
15010 | 15113 |
| |
15011 | 15114 |
| |
| 15115 | + | |
15012 | 15116 |
| |
15013 | 15117 |
| |
15014 | 15118 |
| |
| |||
15448 | 15552 |
| |
15449 | 15553 |
| |
15450 | 15554 |
| |
| 15555 | + | |
15451 | 15556 |
| |
15452 | 15557 |
| |
15453 | 15558 |
| |
| |||
15609 | 15714 |
| |
15610 | 15715 |
| |
15611 | 15716 |
| |
| 15717 | + | |
| 15718 | + | |
15612 | 15719 |
| |
15613 | 15720 |
| |
15614 | 15721 |
| |
| |||
15918 | 16025 |
| |
15919 | 16026 |
| |
15920 | 16027 |
| |
| 16028 | + | |
| 16029 | + | |
15921 | 16030 |
| |
15922 | 16031 |
| |
15923 | 16032 |
| |
| |||
16314 | 16423 |
| |
16315 | 16424 |
| |
16316 | 16425 |
| |
| 16426 | + | |
16317 | 16427 |
| |
16318 | 16428 |
| |
16319 | 16429 |
| |
| |||
16494 | 16604 |
| |
16495 | 16605 |
| |
16496 | 16606 |
| |
| 16607 | + | |
| 16608 | + | |
| 16609 | + | |
16497 | 16610 |
| |
16498 | 16611 |
| |
16499 | 16612 |
| |
| |||
16836 | 16949 |
| |
16837 | 16950 |
| |
16838 | 16951 |
| |
| 16952 | + | |
| 16953 | + | |
| 16954 | + | |
16839 | 16955 |
| |
16840 | 16956 |
| |
16841 | 16957 |
| |
|
src/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts+10Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
135 | 145 |
| |
136 | 146 |
| |
137 | 147 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+12Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2792 | 2792 |
| |
2793 | 2793 |
| |
2794 | 2794 |
| |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
2795 | 2807 |
| |
2796 | 2808 |
| |
2797 | 2809 |
| |
|
+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2127 | 2127 |
| |
2128 | 2128 |
| |
2129 | 2129 |
| |
| 2130 | + | |
2130 | 2131 |
| |
2131 | 2132 |
| |
2132 | 2133 |
| |
| |||
2557 | 2558 |
| |
2558 | 2559 |
| |
2559 | 2560 |
| |
| 2561 | + | |
| 2562 | + | |
2560 | 2563 |
| |
2561 | 2564 |
| |
2562 | 2565 |
| |
|
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1702 | 1702 |
| |
1703 | 1703 |
| |
1704 | 1704 |
| |
1705 |
| - | |
| 1705 | + | |
1706 | 1706 |
| |
1707 | 1707 |
| |
1708 | 1708 |
| |
|
tests/baselines/reference/unusedClassesinModule1.errors.txt
Copy file name to clipboard+13Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + |
tests/baselines/reference/unusedClassesinModule1.js
Copy file name to clipboard+20Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + |
tests/baselines/reference/unusedClassesinNamespace1.errors.txt
Copy file name to clipboard+12Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + |
tests/baselines/reference/unusedClassesinNamespace1.js
Copy file name to clipboard+17Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + |
tests/baselines/reference/unusedClassesinNamespace2.errors.txt
Copy file name to clipboard+16Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + |
You can’t perform that action at this time.
0 commit comments