DotNetNavigableSymbolProviderBase Class
Provides a base class for the navigable symbol provider of a .NET language.
public abstract class DotNetNavigableSymbolProviderBase : INavigableSymbolProvider
- Inheritance:
- object object
- Implements:
- INavigableSymbolProvider
Constructors
DotNetNavigableSymbolProviderBase()
Initializes an instance of the class.
protected DotNetNavigableSymbolProviderBase()
Methods
CreateTypeMemberSymbol(TypeMemberDeclaration, ITextSnapshot)
Creates an INavigableSymbol for a TypeMemberDeclaration.
protected abstract INavigableSymbol CreateTypeMemberSymbol(TypeMemberDeclaration memberDecl, ITextSnapshot snapshot)
Parameter | Type | Description |
---|---|---|
memberDecl | TypeMemberDeclaration | The TypeMemberDeclaration to examine. |
snapshot | ITextSnapshot | The ITextSnapshot from which the AST was constructed. |
Returns
- INavigableSymbol:
The INavigableSymbol that was created.
CreateTypeSymbol(TypeDeclaration, ITextSnapshot)
Creates an INavigableSymbol for a TypeDeclaration.
protected abstract INavigableSymbol CreateTypeSymbol(TypeDeclaration typeDecl, ITextSnapshot snapshot)
Parameter | Type | Description |
---|---|---|
typeDecl | TypeDeclaration | The TypeDeclaration to examine. |
snapshot | ITextSnapshot | The ITextSnapshot from which the AST was constructed. |
Returns
- INavigableSymbol:
The INavigableSymbol that was created.
GetSymbols(INavigableRequestContext, TextSnapshotOffset, INavigableSymbol)
Returns a set of INavigableSymbol objects that are accessible within the optional parent INavigableSymbol.
public virtual INavigableSymbolSet GetSymbols(INavigableRequestContext context, TextSnapshotOffset snapshotOffset, INavigableSymbol parentSymbol)
Parameter | Type | Description |
---|---|---|
context | INavigableRequestContext | An INavigableRequestContext that provides the context of the request. |
snapshotOffset | TextSnapshotOffset | The TextSnapshotOffset that contains the ITextSnapshot to examine, along with a contextual offset. |
parentSymbol | INavigableSymbol | The optional parent INavigableSymbol to examine, or a null value if the root symbols are requested. |
Returns
- INavigableSymbolSet:
An INavigableSymbolSet containing the INavigableSymbol objects that were located.