Class SymbolLenses
- Namespace
- RDCore.SDK.Semantics.Refactoring
- Assembly
- RDCore.SDK.dll
The members of a module whose references a client shows (LSP 3.17 §Code Lens Request), and those references: what ReferencesAt(RenameContext, Uri, SourcePosition, bool) finds of each, its declarations not included.
public static class SymbolLenses
- Inheritance
-
SymbolLenses
- Inherited Members
Remarks
A member is a procedure (Sub, Function, and each procedure of a property), a Declare statement, an Event, a Type or an
Enum (MS-VBAL §5.2.3, §5.3). A variable or a constant of the module is not one, nor is a field of a Type or a member of an
Enum. Each procedure of a property says the names that call it: its Property Get those that read the property, its Property Let
and Property Set those that assign it - a property that nothing assigns has a Property Let with no reference. The result that the body of a
function or a Property Get assigns or reads is no reference of it; a recursive call is.
Methods
In(RenameModule)
The members module declares, in the order they are written.
public static IReadOnlyList<SymbolLens> In(RenameModule module)
Parameters
moduleRenameModuleThe module.
Returns
- IReadOnlyList<SymbolLens>
Each member whose name is written in the module: a member the parser could not place the name of has none.
ReferencesOf(RenameContext, Uri, SourcePosition)
The names that refer to the member a lens is of, in every module of the workspace.
public static IReadOnlyList<SymbolSite> ReferencesOf(RenameContext context, Uri module, SourcePosition namePosition)
Parameters
contextRenameContextThe workspace.
moduleUriThe module the lens is of.
namePositionSourcePositionWhere the name of the member is written: the start of NameRange.
Returns
- IReadOnlyList<SymbolSite>
Each name, as a site whose range is the name, by module and then in the order written; none where what the name refers to is not known.