Table of Contents

Class RenameContext

Namespace
RDCore.SDK.Semantics.Refactoring
Assembly
RDCore.SDK.dll

What a rename is worked out in: the workspace, composed, and every module of it.

public sealed record RenameContext : IEquatable<RenameContext>
Inheritance
RenameContext
Implements
Inherited Members

Constructors

RenameContext(ISymbolResolver, ScopeTree, IReadOnlyList<RenameModule>, StaticEnvironment?)

What a rename is worked out in: the workspace, composed, and every module of it.

public RenameContext(ISymbolResolver Resolver, ScopeTree ScopeTree, IReadOnlyList<RenameModule> Modules, StaticEnvironment? Environment = null)

Parameters

Resolver ISymbolResolver

The resolver of the composed workspace, which says what each name means where it is written.

ScopeTree ScopeTree

The scope tree of the composed workspace.

Modules IReadOnlyList<RenameModule>

Every module of the workspace: a name is renamed wherever it refers to the symbol, and nowhere else.

Environment StaticEnvironment

What the environment the code is compiled for decides, when it is stated.

Properties

Environment

What the environment the code is compiled for decides, when it is stated.

public StaticEnvironment? Environment { get; init; }

Property Value

StaticEnvironment

Modules

Every module of the workspace: a name is renamed wherever it refers to the symbol, and nowhere else.

public IReadOnlyList<RenameModule> Modules { get; init; }

Property Value

IReadOnlyList<RenameModule>

Resolver

The resolver of the composed workspace, which says what each name means where it is written.

public ISymbolResolver Resolver { get; init; }

Property Value

ISymbolResolver

ScopeTree

The scope tree of the composed workspace.

public ScopeTree ScopeTree { get; init; }

Property Value

ScopeTree