SourceRange class

Position class

Constructors

SourceRange(ParserRuleContext, string, number)

Creates a new instance of the SourceRange class.

SourceRange(Range, string)

Creates a new instance of the SourceRange class.

Properties

range

Range of block.

source

Code source, used as the lg file path.

Constructor Details

SourceRange(ParserRuleContext, string, number)

Creates a new instance of the SourceRange class.

new SourceRange(parseTree: ParserRuleContext, source?: string, offset?: number)

Parameters

parseTree

ParserRuleContext

ParserRuleContext. Rule invocation record for parsing.

source

string

Optional. Source, used as the lg file path.

offset

number

Optional. Offset in the parse tree.

SourceRange(Range, string)

Creates a new instance of the SourceRange class.

new SourceRange(range: Range, source?: string)

Parameters

range
Range

(xref:botbuilder-lg.Range) of block.

source

string

Optional. Source, used as the lg file path.

Property Details

range

Range of block.

range: Range

Property Value

source

Code source, used as the lg file path.

source: string

Property Value

string