In This Article

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

IDynamicLexicalStateCollection

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

CaseSensitivity

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

IClassificationType

Lexer

The ILexer that contains the state.

public IDynamicLexer? Lexer { get; }

Property Value

IDynamicLexer

LexicalPatternGroups

The collection of lexical pattern groups.

public IDynamicLexicalPatternGroupCollection LexicalPatternGroups { get; }

Property Value

IDynamicLexicalPatternGroupCollection

LexicalScopes

The collection of lexical scopes.

public IDynamicLexicalScopeCollection LexicalScopes { get; }

Property Value

IDynamicLexicalScopeCollection

Methods

CreateChildLexicalStates()

Creates the ILexicalStateCollection collection that is returned by ChildLexicalStatesCore.

protected override ILexicalStateCollection CreateChildLexicalStates()

Returns

ILexicalStateCollection

CreateLexicalScopes()

Creates the ILexicalScopeCollection collection that is returned by LexicalScopesCore.

protected override ILexicalScopeCollection CreateLexicalScopes()

Returns

ILexicalScopeCollection

Inherited Members

Extension Methods