Class: Parser
typings/treeSitter.Parser
Constructors
constructor
• new Parser()
Methods
delete
▸ delete(): void
Returns
void
Defined in
typings/treeSitter.ts:6
getLanguage
▸ getLanguage(): any
Returns
any
Defined in
typings/treeSitter.ts:12
getLogger
▸ getLogger(): Logger
Returns
Defined in
typings/treeSitter.ts:14
parse
▸ parse(input
, previousTree?
, options?
): Tree
Parameters
Name | Type |
---|---|
input | string | Input |
previousTree? | Tree |
options? | Options |
Returns
Defined in
typings/treeSitter.ts:7
setLanguage
▸ setLanguage(language
): void
Parameters
Name | Type |
---|---|
language | any |
Returns
void
Defined in
typings/treeSitter.ts:13
setLogger
▸ setLogger(logFunc
): void
Parameters
Name | Type |
---|---|
logFunc | Logger |
Returns
void
Defined in
typings/treeSitter.ts:15
init
▸ Static
init(): Promise
<void
>
Returns
Promise
<void
>
Defined in
typings/treeSitter.ts:5