-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Milestone
Description
This code fixer is currently using internal Rename APIs, which prevents porting it to shared layer (no IVTs to Workspaces/Features assemblies).
roslyn/src/Features/Core/Portable/UseAutoProperty/AbstractUseAutoPropertyCodeFixProvider.cs
Lines 88 to 96 in efa5d64
| var fieldLocations = await Renamer.GetRenameLocationsAsync( | |
| solution, SymbolAndProjectId.Create(fieldSymbol, fieldDocument.Project.Id), | |
| solution.Options, cancellationToken).ConfigureAwait(false); | |
| // First, create the updated property we want to replace the old property with | |
| var isWrittenToOutsideOfConstructor = IsWrittenToOutsideOfConstructorOrProperty(fieldSymbol, fieldLocations, property, cancellationToken); | |
| var updatedProperty = await UpdatePropertyAsync( | |
| propertyDocument, compilation, fieldSymbol, propertySymbol, property, | |
| isWrittenToOutsideOfConstructor, cancellationToken).ConfigureAwait(false); |