Class: Language
typings/treeSitter.Parser.Language
Constructors
constructor
• new Language()
Properties
fieldCount
• Readonly
fieldCount: number
Defined in
typings/treeSitter.ts:150
nodeTypeCount
• Readonly
nodeTypeCount: number
Defined in
typings/treeSitter.ts:151
version
• Readonly
version: number
Defined in
typings/treeSitter.ts:149
Methods
fieldIdForName
▸ fieldIdForName(fieldName
): null
| number
Parameters
Name | Type |
---|---|
fieldName | string |
Returns
null
| number
Defined in
typings/treeSitter.ts:154
fieldNameForId
▸ fieldNameForId(fieldId
): null
| string
Parameters
Name | Type |
---|---|
fieldId | number |
Returns
null
| string
Defined in
typings/treeSitter.ts:153
idForNodeType
▸ idForNodeType(type
, named
): number
Parameters
Name | Type |
---|---|
type | string |
named | boolean |
Returns
number
Defined in
typings/treeSitter.ts:155
nodeTypeForId
▸ nodeTypeForId(typeId
): null
| string
Parameters
Name | Type |
---|---|
typeId | number |
Returns
null
| string
Defined in
typings/treeSitter.ts:156
nodeTypeIsNamed
▸ nodeTypeIsNamed(typeId
): boolean
Parameters
Name | Type |
---|---|
typeId | number |
Returns
boolean
Defined in
typings/treeSitter.ts:157
nodeTypeIsVisible
▸ nodeTypeIsVisible(typeId
): boolean
Parameters
Name | Type |
---|---|
typeId | number |
Returns
boolean
Defined in
typings/treeSitter.ts:158
query
▸ query(source
): Query
Parameters
Name | Type |
---|---|
source | string |
Returns
Defined in
typings/treeSitter.ts:159
load
▸ Static
load(input
): Promise
<Language
>
Parameters
Name | Type |
---|---|
input | string | Uint8Array |
Returns
Promise
<Language
>
Defined in
typings/treeSitter.ts:147