TreeSitterParseResult
TreeSitterParseResult =
object
Properties
Section titled “Properties”analysis?
Section titled “analysis?”
readonlyoptionalanalysis?:EditorSyntaxAnalysis
brackets
Section titled “brackets”
readonlybrackets: readonlyBracketInfo[]
captures
Section titled “captures”
readonlycaptures: readonlyTreeSitterCapture[]
degraded?
Section titled “degraded?”
readonlyoptionaldegraded?: readonlyTreeSitterDegradedState[]
documentId
Section titled “documentId”
readonlydocumentId:string
errors
Section titled “errors”
readonlyerrors: readonlyTreeSitterError[]
readonlyfolds: readonlyFoldRange[]
injections
Section titled “injections”
readonlyinjections: readonlyTreeSitterInjectionInfo[]
languageId
Section titled “languageId”
readonlylanguageId:TreeSitterLanguageId
missingLanguages?
Section titled “missingLanguages?”
readonlyoptionalmissingLanguages?: readonlystring[]
records?
Section titled “records?”
readonlyoptionalrecords?:object
readonlydata:Uint32Array
languageId
Section titled “languageId”
readonlylanguageId:string
snapshotVersion
Section titled “snapshotVersion”
readonlysnapshotVersion:number
source?
Section titled “source?”
readonlyoptionalsource?:Pick<DocumentWorkerReadReference,"identity"|"point">
statistics?
Section titled “statistics?”
readonlyoptionalstatistics?:Readonly<Record<string,number>>
timings
Section titled “timings”
readonlytimings: readonlyTreeSitterTimingMeasurement[]
tokens?
Section titled “tokens?”
readonlyoptionaltokens?: readonlyEditorToken[]
tokensPacked?
Section titled “tokensPacked?”
readonlyoptionaltokensPacked?:PackedEditorTokens