In This Article

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

DynamicLexicalPatternGroup

LexicalState

The ILexicalState that defines the lexical scope.

public DynamicLexicalState? LexicalState { get; }

Property Value

DynamicLexicalState

StartLexicalPatternGroup

The lexical pattern group that starts the scope.

public DynamicLexicalPatternGroup? StartLexicalPatternGroup { get; set; }

Property Value

DynamicLexicalPatternGroup

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

Extension Methods