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 a0a9666
File tree
324 files changed
+5641
-8
lines changed- 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.
324 files changed
+5641
-8
lines changed| 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 | | |
| |||
| 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 | | |
| |||
| 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 | | |
| |||
| 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1702 | 1702 | | |
1703 | 1703 | | |
1704 | 1704 | | |
1705 | | - | |
| 1705 | + | |
1706 | 1706 | | |
1707 | 1707 | | |
1708 | 1708 | | |
| |||
Lines 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 | + | |
| 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 | + | |
Lines 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 | + | |
| 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 | + | |
Lines 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 | + | |
0 commit comments