XmlNavigableSymbolProvider Class
Represents a navigable symbol provider for the XML language.
public class XmlNavigableSymbolProvider : INavigableSymbolProvider
- Inheritance:
- object object
- Implements:
- INavigableSymbolProvider
Constructors
XmlNavigableSymbolProvider()
Initializes an instance of the class.
public XmlNavigableSymbolProvider()
Methods
CreateAttributeSymbol(ElementAttribute, ITextSnapshot, int)
Creates an INavigableSymbol for an attribute.
protected virtual INavigableSymbol CreateAttributeSymbol(ElementAttribute astNode, ITextSnapshot snapshot, int hierarchyLevel)
| Parameter | Type | Description |
|---|---|---|
| astNode | ElementAttribute | The ElementAttribute to examine. |
| snapshot | ITextSnapshot | The ITextSnapshot from which the AST was constructed. |
| hierarchyLevel | int | The hierarchy level. |
Returns
- INavigableSymbol:
The INavigableSymbol that was created.
CreateElementSymbol(Element, ITextSnapshot, int)
Creates an INavigableSymbol for an element.
protected virtual INavigableSymbol CreateElementSymbol(Element astNode, ITextSnapshot snapshot, int hierarchyLevel)
| Parameter | Type | Description |
|---|---|---|
| astNode | Element | The Element to examine. |
| snapshot | ITextSnapshot | The ITextSnapshot from which the AST was constructed. |
| hierarchyLevel | int | The hierarchy level. |
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.