Commit 763cf17
* Fix #3939: Hide compiler-generated auto-property symbols from Symbols API
Fixes #3939
Mark the compiler-generated `v` setter parameter and backing field
identifiers in auto-property desugaring with synthetic ranges, so they
are excluded from GetAllUsesOfAllSymbolsInFile(). Previously these
internal symbols leaked through the API with empty EnclosingEntity
and misleading DisplayName/CompiledName values.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix CI: update ProjectAnalysisTests to match synthetic auto-property symbols
Remove compiler-generated auto-property backing fields and setter
parameter 'v' from expected symbol arrays in 'Test Project24 all symbols'
and 'Test symbol uses of properties with both getters and setters'.
These symbols are now correctly hidden by MakeSynthetic() ranges.
Also merge with latest main.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Bump FSBuildVersion to 101: packages 11.0.100 and 43.12.100 already published
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2bd5398 commit 763cf17
3 files changed
Lines changed: 16 additions & 23 deletions
File tree
- src/Compiler/Checking
- tests/FSharp.Compiler.Service.Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4418 | 4418 | | |
4419 | 4419 | | |
4420 | 4420 | | |
4421 | | - | |
| 4421 | + | |
4422 | 4422 | | |
4423 | 4423 | | |
4424 | 4424 | | |
| |||
4446 | 4446 | | |
4447 | 4447 | | |
4448 | 4448 | | |
4449 | | - | |
| 4449 | + | |
4450 | 4450 | | |
4451 | 4451 | | |
4452 | 4452 | | |
| |||
4475 | 4475 | | |
4476 | 4476 | | |
4477 | 4477 | | |
4478 | | - | |
| 4478 | + | |
4479 | 4479 | | |
4480 | 4480 | | |
4481 | 4481 | | |
| |||
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3512 | 3512 | | |
3513 | 3513 | | |
3514 | 3514 | | |
3515 | | - | |
3516 | | - | |
3517 | | - | |
3518 | | - | |
3519 | | - | |
3520 | | - | |
3521 | 3515 | | |
3522 | 3516 | | |
3523 | 3517 | | |
| |||
3614 | 3608 | | |
3615 | 3609 | | |
3616 | 3610 | | |
3617 | | - | |
3618 | | - | |
3619 | | - | |
3620 | | - | |
3621 | | - | |
3622 | | - | |
3623 | 3611 | | |
3624 | 3612 | | |
3625 | 3613 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
638 | | - | |
639 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
640 | 641 | | |
641 | 642 | | |
642 | 643 | | |
643 | | - | |
| 644 | + | |
644 | 645 | | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
649 | 654 | | |
650 | 655 | | |
651 | 656 | | |
| |||
0 commit comments