ReadonlyincrementalWhether the parser has incremental parsing capabilities
ReadonlynameStaticinitInitializes the underlying tree-sitter parser. This only needs to be called once globally.
Optionalconfig: TreeSitterEngineConfig
The configuration for the tree-sitter engine, which can include paths to the wasm files.
OptionaloverrideWasmPath: string
The path to the tree-sitter-r wasm file, which takes precedence over the config and default paths if set.
OptionaloverrideTreeSitterWasmPath: string
The path to the tree-sitter wasm file, which takes precedence over the config and default paths if set.
StaticisWhether initTreeSitter has loaded the R grammar, which every parser needs.
Parses the given request and uses the provided context (only if the parser itself supports incrementality ParserContent#incremental).
Parses code that belongs to no analysis, like the sources of a package, without incremental reparsing.
Synchronous and (way) faster alternative to the RShell using tree-sitter.