Class SymbolDescriptorReader
Reconstructs runtime member Symbols from the descriptors carried by a
DefineSymbolsParams. The inverse of the language server's descriptor projection;
one trivial method per SymbolDescriptorKind, mirroring the language server's
SymbolBuilder. Declared types are bound through a caller-supplied resolver so the same
call path binds real types once the environment host composes a project/library resolver — a
name the resolver returns null for stays VBUnknownType.
public static class SymbolDescriptorReader
- Inheritance
-
SymbolDescriptorReader
- Inherited Members
Methods
Read(DefineSymbolsParams, Func<string, VBType?>)
Reconstructs every member symbol in the request, including the nested members
(Enum constants, user-defined-Type fields) parented to their owner rather than
the module.
public static IEnumerable<Symbol> Read(DefineSymbolsParams request, Func<string, VBType?> resolveType)
Parameters
requestDefineSymbolsParamsThe define-symbols request.
resolveTypeFunc<string, VBType>Resolves a declared type name to a VBType, or returns
nullwhen it cannot.
Returns
Exceptions
- ArgumentException
WorkspaceRoot is not set.