Commit 291fb03
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>1 parent 01fe483 commit 291fb03
File tree
2 files changed
+16
-11
lines changed- src/Compiler/Checking
- tests/FSharp.Compiler.Service.Tests
2 files changed
+16
-11
lines changed| 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 | | |
| |||
| 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