DynamicLexicalState Class
Contains information about a lexical state.
public class DynamicLexicalState : LexicalStateBase, ILexicalState, IKeyedObject
- Inheritance:
- object LexicalStateBase object
- Implements:
- ILexicalState IKeyedObject
Constructors
DynamicLexicalState(int, string)
Initializes an instance of the class.
public DynamicLexicalState(int id, string key)
| Parameter | Type | Description |
|---|---|---|
| id | int | The ID of the lexical state. |
| key | string | The key of the lexical state. |
DynamicLexicalState(string)
Initializes an instance of the class.
public DynamicLexicalState(string key)
| Parameter | Type | Description |
|---|---|---|
| key | string | The key of the lexical state. |
Properties
ChildLexicalStates
The collection of child lexical states.
public IDynamicLexicalStateCollection ChildLexicalStates { get; }
Property Value
DefaultCaseSensitivity
A CaseSensitivity determining how the lexer should handle case sensitivity for patterns in the state's pattern groups.
public CaseSensitivity DefaultCaseSensitivity { get; set; }
Property Value
Remarks
This property provides the default value for lexical pattern groups within the state without an explicit case sensitivity option set.
DefaultClassificationType
The IClassificationType of the default token that this state assigns.
public IClassificationType? DefaultClassificationType { get; set; }
Property Value
Lexer
The ILexer that contains the state.
LexicalPatternGroups
The collection of lexical pattern groups.
public IDynamicLexicalPatternGroupCollection LexicalPatternGroups { get; }
Property Value
LexicalScopes
The collection of lexical scopes.
public IDynamicLexicalScopeCollection LexicalScopes { get; }
Property Value
Methods
CreateChildLexicalStates()
Creates the ILexicalStateCollection collection that is returned by ChildLexicalStatesCore.
protected override ILexicalStateCollection CreateChildLexicalStates()
Returns
CreateLexicalScopes()
Creates the ILexicalScopeCollection collection that is returned by LexicalScopesCore.
Inherited Members
- LexicalStateBase.ChildLexicalStatesCore
- LexicalStateBase.DefaultTokenId
- LexicalStateBase.DefaultTokenKey
- LexicalStateBase.Id
- LexicalStateBase.Key
- LexicalStateBase.LexerCore
- LexicalStateBase.LexicalScopesCore
- LexicalStateBase.Tag
- LexicalStateBase.Transition
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()