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
Gets or sets the lexical pattern group that ends the scope.
public DynamicLexicalPatternGroup EndLexicalPatternGroup { get; set; }
Property Value
- DynamicLexicalPatternGroup:
The DynamicLexicalPatternGroup that ends the scope.
LexicalState
Gets the DynamicLexicalState that defines the lexical scope.
public DynamicLexicalState LexicalState { get; }
Property Value
- DynamicLexicalState:
The DynamicLexicalState that defines the lexical scope.
StartLexicalPatternGroup
Gets or sets the lexical pattern group that starts the scope.
public DynamicLexicalPatternGroup StartLexicalPatternGroup { get; set; }
Property Value
- DynamicLexicalPatternGroup:
The DynamicLexicalPatternGroup that starts the scope.
Methods
IsScopeEnd(ITextBufferReader)
Performs a lex to determine if the current text in the ITextBufferReader ends the lexical scope.
public override MergableLexerResult IsScopeEnd(ITextBufferReader reader)
Parameter | Type | Description |
---|---|---|
reader | ITextBufferReader | An ITextBufferReader that is reading a text source. |
Returns
- MergableLexerResult:
A MergableLexerResult indicating the lexer result.
IsScopeStart(ITextBufferReader)
Performs a lex to determine if the current text in the ITextBufferReader starts the lexical scope.
public override MergableLexerResult IsScopeStart(ITextBufferReader reader)
Parameter | Type | Description |
---|---|---|
reader | ITextBufferReader | An ITextBufferReader that is reading a text source. |
Returns
- MergableLexerResult:
A MergableLexerResult 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()