ITokenSet Interface
Provides the base requirements for a class that stores token data for a range of text.
public interface ITokenSet : ITextRangeProvider
Properties
Count
The count of tokens that are stored in the token set.
FirstToken
The first IToken in the set.
FirstTokenExtendsBack
Indicates whether the FirstToken extends back to another token set.
bool FirstTokenExtendsBack { get; }
Property Value
- bool:
trueif the FirstToken extends back to another token set; otherwise,false.
See Also
LastToken
The last IToken in the set.
LastTokenExtendsForward
Indicates whether the LastToken extends forward to another token set.
bool LastTokenExtendsForward { get; }
Property Value
See Also
ParseContext
An optional object that may be used to help provide context information when resuming incremental parsing near the end of this token set.
this[int]
An IToken in the token set.
IToken this[int index] { get; }
| Parameter | Type | Description |
|---|---|---|
| index | int | The index of the IToken to return. |
Property Value
See Also
Methods
IndexOf(int, int)
Returns the index of the IToken in the set that contains the specified offset; otherwise, -1.
int IndexOf(int offset, int hintIndex)
| Parameter | Type | Description |
|---|---|---|
| offset | int | The offset for which to search. |
| hintIndex | int | The hint index at which to begin searching; otherwise, |
Returns
See Also
Inherited Members
Extension Methods
- ObjectExtensions.TryConvertToDouble(object, out double)
- ObjectExtensions.TryConvertToDouble(object, IFormatProvider, out double)