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
ResolverISymbolResolverThe resolver of the composed workspace, which says what each name means where it is written.
ScopeTreeScopeTreeThe scope tree of the composed workspace.
ModulesIReadOnlyList<RenameModule>Every module of the workspace: a name is renamed wherever it refers to the symbol, and nowhere else.
EnvironmentStaticEnvironmentWhat 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
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
Resolver
The resolver of the composed workspace, which says what each name means where it is written.
public ISymbolResolver Resolver { get; init; }
Property Value
ScopeTree
The scope tree of the composed workspace.
public ScopeTree ScopeTree { get; init; }