Table of Contents

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

Name string

The name, as the symbol declares it.

Module Uri

The module the rename was asked for in.

Range SourceRange

Where the name is written there.

Symbols ImmutableArray<SemanticId>

The symbols renamed together: one, or each accessor of a property - Get, Let and Set are the one property, under one name.

Properties

Module

The module the rename was asked for in.

public Uri Module { get; init; }

Property Value

Uri

Name

The name, as the symbol declares it.

public string Name { get; init; }

Property Value

string

Range

Where the name is written there.

public SourceRange Range { get; init; }

Property Value

SourceRange

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; }

Property Value

ImmutableArray<SemanticId>