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(Int32, String)

Initializes a new instance of the DynamicLexicalState class.

public DynamicLexicalState(int id, string key)
Parameter Type Description
id Int32

The ID of the lexical state.

key String

The key of the lexical state.

DynamicLexicalState(String)

Initializes a new instance of the DynamicLexicalState class.

public DynamicLexicalState(string key)
Parameter Type Description
key String

The key of the lexical state.

Properties

ChildLexicalStates

Gets the collection of child lexical states.

public IDynamicLexicalStateCollection ChildLexicalStates { get; }

Property Value

IDynamicLexicalStateCollection:

A IDynamicLexicalStateCollection containing the child lexical states.

DefaultCaseSensitivity

Gets or sets 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:

A CaseSensitivity determining how the lexer should handle case sensitivity for patterns in the state's pattern groups. The default value is CaseSensitivity.Insensitive.

Remarks

This property provides the default value for lexical pattern groups within the state without an explicit case sensitivity option set.

DefaultClassificationType

Gets or sets the IClassificationType of the default token that this state assigns.

public IClassificationType DefaultClassificationType { get; set; }

Property Value

IClassificationType:

The IClassificationType of the default token that this state assigns.

Lexer

Gets the IDynamicLexer that contains the state.

public IDynamicLexer Lexer { get; }

Property Value

IDynamicLexer:

The IDynamicLexer that contains the state.

LexicalPatternGroups

Gets the collection of lexical pattern groups.

public IDynamicLexicalPatternGroupCollection LexicalPatternGroups { get; }

Property Value

IDynamicLexicalPatternGroupCollection:

A IDynamicLexicalPatternGroupCollection containing the lexical pattern groups.

LexicalScopes

Gets the collection of lexical scopes.

public IDynamicLexicalScopeCollection LexicalScopes { get; }

Property Value

IDynamicLexicalScopeCollection:

A IDynamicLexicalScopeCollection containing the lexical scopes.

Methods

CreateChildLexicalStates()

Creates the ILexicalStateCollection collection that is returned by ChildLexicalStatesCore.

protected override ILexicalStateCollection CreateChildLexicalStates()

Returns

ILexicalStateCollection:

The ILexicalStateCollection that was created.

CreateLexicalScopes()

Creates the ILexicalScopeCollection collection that is returned by LexicalScopesCore.

protected override ILexicalScopeCollection CreateLexicalScopes()

Returns

ILexicalScopeCollection:

The ILexicalScopeCollection that was created.

Inherited Members