In This Article

DynamicLexicalScope Class

Contains information about a lexical scope.

public class DynamicLexicalScope : LexicalScopeBase, ILexicalScope
Inheritance:
Object LexicalScopeBase Object
Implements:
ILexicalScope

Constructors

DynamicLexicalScope()

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