forked fromdotnet/fsharp
- Notifications
You must be signed in to change notification settings - Fork0
Commit6efa3b3
Optimize simplify name analyzer (dotnet#2254)
* remove unnecessary filtering and deduplication* write lazy early return functions for SimplifyName analyzer* make the rest of nr lazyadd cache* fix cache locking* do not try to resolve ctors for non-ctor Item* more lazyness to NameResolution* optimize GetBestEnvForPos by indexing nameres environments (scopes) by line number* look for best resolution env on previous line as well* Reformat ResolveObjectConstructorPrim* remove double hash table lookup in NotifyNameResolution* make CurrentSink non-optional* eliminate a list creation* renaming* optimize ValRef* small optimizations* make Ident a struct* add MaybeLazy* SimplifyNameDiagnosticAnalyzer should do semantic analysis, not syntax one* remove dead code* fix after merge* Revert "make CurrentSink non-optional"This reverts commita2f791d.# Conflicts:#src/fsharp/TypeChecker.fs* Revert "optimize GetBestEnvForPos by indexing nameres environments (scopes) by line number"This reverts commitc8edcc3.# Conflicts:#src/fsharp/vs/service.fs#src/fsharp/vs/service.fsi* turn off SimplifyNameDiagnosticAnalyzer for now1 parent7755f90 commit6efa3b3
File tree
13 files changed
+580
-161
lines changed- src/fsharp
- vs
- vsintegration/src/FSharp.Editor/Diagnostics
13 files changed
+580
-161
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3957 | 3957 | | |
3958 | 3958 | | |
3959 | 3959 | | |
3960 | | - | |
| 3960 | + | |
3961 | 3961 | | |
3962 | 3962 | | |
3963 | 3963 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
| 422 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3087 | 3087 | | |
3088 | 3088 | | |
3089 | 3089 | | |
3090 | | - | |
| 3090 | + | |
3091 | 3091 | | |
3092 | 3092 | | |
3093 | 3093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
983 | | - | |
| 983 | + | |
984 | 984 | | |
985 | 985 | | |
986 | 986 | | |
| |||
3566 | 3566 | | |
3567 | 3567 | | |
3568 | 3568 | | |
3569 | | - | |
| 3569 | + | |
3570 | 3570 | | |
3571 | 3571 | | |
3572 | 3572 | | |
| |||
4972 | 4972 | | |
4973 | 4973 | | |
4974 | 4974 | | |
4975 | | - | |
4976 | | - | |
4977 | | - | |
| 4975 | + | |
| 4976 | + | |
4978 | 4977 | | |
4979 | 4978 | | |
4980 | 4979 | | |
| |||
7637 | 7636 | | |
7638 | 7637 | | |
7639 | 7638 | | |
7640 | | - | |
7641 | | - | |
7642 | | - | |
7643 | | - | |
| 7639 | + | |
| 7640 | + | |
7644 | 7641 | | |
7645 | 7642 | | |
7646 | 7643 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
| 439 | + | |
441 | 440 | | |
442 | 441 | | |
443 | 442 | | |
| |||
473 | 472 | | |
474 | 473 | | |
475 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
476 | 481 | | |
477 | 482 | | |
478 | 483 | | |
| |||
1727 | 1732 | | |
1728 | 1733 | | |
1729 | 1734 | | |
1730 | | - | |
| 1735 | + | |
1731 | 1736 | | |
1732 | 1737 | | |
1733 | 1738 | | |
| |||
2012 | 2017 | | |
2013 | 2018 | | |
2014 | 2019 | | |
2015 | | - | |
| 2020 | + | |
2016 | 2021 | | |
2017 | 2022 | | |
2018 | 2023 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | | - | |
| 1318 | + | |
1319 | 1319 | | |
1320 | 1320 | | |
1321 | 1321 | | |
| |||
13385 | 13385 | | |
13386 | 13386 | | |
13387 | 13387 | | |
13388 | | - | |
| 13388 | + | |
13389 | 13389 | | |
13390 | 13390 | | |
13391 | 13391 | | |
13392 | 13392 | | |
13393 | 13393 | | |
13394 | | - | |
| 13394 | + | |
13395 | 13395 | | |
13396 | 13396 | | |
13397 | 13397 | | |
| |||
14344 | 14344 | | |
14345 | 14345 | | |
14346 | 14346 | | |
14347 | | - | |
| 14347 | + | |
14348 | 14348 | | |
14349 | 14349 | | |
14350 | 14350 | | |
| |||
14385 | 14385 | | |
14386 | 14386 | | |
14387 | 14387 | | |
14388 | | - | |
| 14388 | + | |
14389 | 14389 | | |
14390 | 14390 | | |
14391 | 14391 | | |
| |||
16101 | 16101 | | |
16102 | 16102 | | |
16103 | 16103 | | |
16104 | | - | |
| 16104 | + | |
16105 | 16105 | | |
16106 | 16106 | | |
16107 | 16107 | | |
16108 | | - | |
| 16108 | + | |
16109 | 16109 | | |
16110 | 16110 | | |
16111 | 16111 | | |
| |||
16421 | 16421 | | |
16422 | 16422 | | |
16423 | 16423 | | |
16424 | | - | |
| 16424 | + | |
16425 | 16425 | | |
16426 | 16426 | | |
16427 | 16427 | | |
16428 | 16428 | | |
16429 | 16429 | | |
16430 | | - | |
| 16430 | + | |
16431 | 16431 | | |
16432 | 16432 | | |
16433 | 16433 | | |
| |||
16614 | 16614 | | |
16615 | 16615 | | |
16616 | 16616 | | |
16617 | | - | |
| 16617 | + | |
16618 | 16618 | | |
16619 | 16619 | | |
16620 | 16620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| |||
0 commit comments
Comments
(0)