SourceRange class
Position 類別
建構函式
Source |
建立 SourceRange 類別的新實例。 |
Source |
建立 SourceRange 類別的新實例。 |
屬性
range | 區塊的範圍。 |
source | 程式代碼來源,用來作為 lg 檔案路徑。 |
建構函式詳細資料
SourceRange(ParserRuleContext, string, number)
建立 SourceRange 類別的新實例。
new SourceRange(parseTree: ParserRuleContext, source?: string, offset?: number)
參數
- parseTree
-
ParserRuleContext
ParserRuleContext
。 剖析的規則調用記錄。
- source
-
string
自選。 來源,用來作為 lg 檔案路徑。
- offset
-
number
自選。 剖析樹狀結構中的位移。
SourceRange(Range, string)
建立 SourceRange 類別的新實例。
new SourceRange(range: Range, source?: string)
參數
- range
- Range
(xref:botbuilder-lg.區塊的範圍。
- source
-
string
自選。 來源,用來作為 lg 檔案路徑。
屬性詳細資料
range
source
程式代碼來源,用來作為 lg 檔案路徑。
source: string
屬性值
string