Class RenameTarget
- Namespace
- RDCore.SDK.Semantics.Refactoring
- Assembly
- RDCore.SDK.dll
A symbol that is renamed: the name where the rename was asked for, and every symbol the name is.
public sealed record RenameTarget : IEquatable<RenameTarget>
- Inheritance
-
RenameTarget
- Implements
- Inherited Members
Constructors
RenameTarget(string, Uri, SourceRange, ImmutableArray<SemanticId>)
A symbol that is renamed: the name where the rename was asked for, and every symbol the name is.
public RenameTarget(string Name, Uri Module, SourceRange Range, ImmutableArray<SemanticId> Symbols)
Parameters
NamestringThe name, as the symbol declares it.
ModuleUriThe module the rename was asked for in.
RangeSourceRangeWhere the name is written there.
SymbolsImmutableArray<SemanticId>The symbols renamed together: one, or each accessor of a property -
Get,LetandSetare the one property, under one name.
Properties
Module
The module the rename was asked for in.
public Uri Module { get; init; }
Property Value
Name
The name, as the symbol declares it.
public string Name { get; init; }
Property Value
Range
Where the name is written there.
public SourceRange Range { get; init; }
Property Value
Symbols
The symbols renamed together: one, or each accessor of a property - Get, Let and Set are the one property, under one name.
public ImmutableArray<SemanticId> Symbols { get; init; }