MergeableLexerCoordinator Class
Coordinates lexer and state shifting for one or more mergeable lexers.
public class MergeableLexerCoordinator
- Inheritance:
- object object
Remarks
Features include:
Methods
Create(ITextBufferReader, IMergeableLexer)
Creates an instance of a coordinator for the specified ITextBufferReader and IMergeableLexer.
public static MergeableLexerCoordinator Create(ITextBufferReader reader, IMergeableLexer rootLexer)
| Parameter | Type | Description |
|---|---|---|
| reader | ITextBufferReader | The ITextBufferReader to use. |
| rootLexer | IMergeableLexer | The root IMergeableLexer. |
Returns
- MergeableLexerCoordinator:
The MergeableLexerCoordinator that was created.
GetNextToken()
Returns the next IMergeableToken.
Parse(TextSnapshotRange, ILexerTarget)
Lexically parses the specified TextRange of the ITextSnapshot.
public static TextRange Parse(TextSnapshotRange snapshotRange, ILexerTarget lexerTarget)
| Parameter | Type | Description |
|---|---|---|
| snapshotRange | TextSnapshotRange | A TextSnapshotRange indicating the offset range to parse. |
| lexerTarget | ILexerTarget | The ILexerTarget to update. |
Returns
Pop()
Pops the top coordinator state from the stack and restores the coordinator to that state.
Push()
Pushes the coordinator state onto a stack for later restoration, generally to begin a multiple token look-ahead operation.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()