ILexicalScope Interface
Provides the base requirements for a lexical scope.
public interface ILexicalScope
Properties
IsAncestorEndScopeCheckEnabled
Indicates whether ancestor end scope checking is enabled while parsing inside the scope.
bool IsAncestorEndScopeCheckEnabled { get; }
Property Value
- bool:
trueif ancestor end scope checking is enabled; otherwise,false.
Remarks
When enabled, this allows ancestor scopes to be examined to see a pattern matches their end scope. In the event a match is found, this scope exits as well as the ancestor's scope.
LexicalState
The ILexicalState that defines the lexical scope.
ParentTransition
The ILexicalStateTransition that is the parent of this scope.
Tag
The object that contains user-defined data about the object.
Transition
The ILexicalStateTransition that this scope performs after ending
or null if no state transition is performed when the scope ends.
ILexicalStateTransition? Transition { get; }
Property Value
Remarks
The state transition may be made to a child language.
Methods
IsScopeEnd(ITextBufferReader)
Performs a lex to determine if the current text in the ITextBufferReader ends the lexical scope.
MergeableLexerResult IsScopeEnd(ITextBufferReader reader)
| Parameter | Type | Description |
|---|---|---|
| reader | ITextBufferReader | An ITextBufferReader that is reading a text source. |
Returns
- MergeableLexerResult:
A MergeableLexerResult indicating the lexer result.
IsScopeStart(ITextBufferReader)
Performs a lex to determine if the current text in the ITextBufferReader starts the lexical scope.
MergeableLexerResult IsScopeStart(ITextBufferReader reader)
| Parameter | Type | Description |
|---|---|---|
| reader | ITextBufferReader | An ITextBufferReader that is reading a text source. |
Returns
- MergeableLexerResult:
A MergeableLexerResult indicating the lexer result.