DynamicLexicalScope Class
Contains information about a lexical scope.
public class DynamicLexicalScope : LexicalScopeBase, ILexicalScope
- Inheritance:
- object LexicalScopeBase object
- Implements:
- ILexicalScope
Constructors
DynamicLexicalScope()
Initializes an instance of the class.
public DynamicLexicalScope()
Properties
EndLexicalPatternGroup
The lexical pattern group that ends the scope.
public DynamicLexicalPatternGroup? EndLexicalPatternGroup { get; set; }
Property Value
LexicalState
The ILexicalState that defines the lexical scope.
StartLexicalPatternGroup
The lexical pattern group that starts the scope.
public DynamicLexicalPatternGroup? StartLexicalPatternGroup { get; set; }
Property Value
Methods
IsScopeEnd(ITextBufferReader)
Performs a lex to determine if the current text in the ITextBufferReader ends the lexical scope.
public override 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.
public override 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.
Inherited Members
- LexicalScopeBase.IsAncestorEndScopeCheckEnabled
- LexicalScopeBase.LexicalStateCore
- LexicalScopeBase.ParentTransitionCore
- LexicalScopeBase.Tag
- LexicalScopeBase.Transition
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()