tree-sitter-bp/src/node-types.json

601 lines
11 KiB
JSON
Raw Normal View History

2024-04-07 20:59:34 +02:00
[
2024-04-07 22:37:52 +02:00
{
"type": "assignment",
"named": true,
"fields": {
"left": {
"multiple": false,
"required": true,
"types": [
{
"type": "identifier",
"named": true
}
]
},
"operator": {
"multiple": false,
"required": true,
"types": [
2024-04-07 22:40:17 +02:00
{
2024-04-08 03:13:43 +02:00
"type": "operator",
"named": true
2024-04-07 22:37:52 +02:00
}
]
},
"right": {
"multiple": false,
"required": true,
"types": [
2024-04-08 03:12:22 +02:00
{
"type": "binary_expression",
"named": true
},
{
"type": "boolean_literal",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "integer_literal",
"named": true
},
{
"type": "interpreted_string_literal",
"named": true
},
{
"type": "list_expression",
"named": true
},
{
"type": "map_expression",
"named": true
},
{
"type": "raw_string_literal",
"named": true
},
{
"type": "select_expression",
"named": true
}
]
}
}
},
{
"type": "binary_expression",
"named": true,
"fields": {
"left": {
"multiple": false,
"required": true,
"types": [
{
"type": "binary_expression",
"named": true
},
{
"type": "boolean_literal",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "integer_literal",
"named": true
},
{
"type": "interpreted_string_literal",
"named": true
},
{
"type": "list_expression",
"named": true
},
{
"type": "map_expression",
"named": true
},
{
"type": "raw_string_literal",
"named": true
},
{
"type": "select_expression",
"named": true
}
]
},
"operator": {
"multiple": false,
"required": true,
"types": [
{
2024-04-08 03:13:43 +02:00
"type": "operator",
"named": true
2024-04-08 03:12:22 +02:00
}
]
},
"right": {
"multiple": false,
"required": true,
"types": [
{
"type": "binary_expression",
"named": true
},
2024-04-08 00:39:47 +02:00
{
"type": "boolean_literal",
"named": true
},
2024-04-07 22:37:52 +02:00
{
"type": "identifier",
"named": true
},
{
"type": "integer_literal",
"named": true
},
{
"type": "interpreted_string_literal",
"named": true
},
2024-04-08 00:24:14 +02:00
{
"type": "list_expression",
"named": true
},
2024-04-08 00:36:21 +02:00
{
"type": "map_expression",
"named": true
},
{
"type": "raw_string_literal",
"named": true
},
{
"type": "select_expression",
"named": true
2024-04-07 22:37:52 +02:00
}
]
}
}
},
2024-04-08 09:48:10 +02:00
{
"type": "boolean_literal",
2024-04-08 09:48:10 +02:00
"named": true,
"fields": {}
},
2024-04-08 00:39:47 +02:00
{
"type": "comment",
2024-04-08 00:39:47 +02:00
"named": true,
"fields": {}
},
2024-04-07 23:49:15 +02:00
{
"type": "integer_literal",
"named": true,
"fields": {}
},
{
"type": "interpreted_string_literal",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "escape_sequence",
"named": true
}
]
}
},
2024-04-08 00:24:14 +02:00
{
"type": "list_expression",
"named": true,
2024-04-08 02:46:43 +02:00
"fields": {
"element": {
"multiple": true,
"required": false,
"types": [
2024-04-08 03:12:22 +02:00
{
"type": "binary_expression",
"named": true
},
2024-04-08 02:46:43 +02:00
{
"type": "boolean_literal",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "integer_literal",
"named": true
},
{
"type": "interpreted_string_literal",
"named": true
},
{
"type": "list_expression",
"named": true
},
{
"type": "map_expression",
"named": true
},
{
"type": "raw_string_literal",
"named": true
},
{
"type": "select_expression",
"named": true
}
]
}
2024-04-08 00:24:14 +02:00
}
},
2024-04-08 00:36:21 +02:00
{
"type": "map_expression",
"named": true,
"fields": {
"property": {
"multiple": true,
"required": false,
"types": [
{
"type": "property",
"named": true
}
]
}
}
},
2024-04-08 02:36:27 +02:00
{
"type": "module",
"named": true,
"fields": {
"property": {
2024-04-08 02:36:27 +02:00
"multiple": true,
"required": false,
"types": [
{
"type": "property",
2024-04-08 02:36:27 +02:00
"named": true
}
]
},
"type": {
"multiple": false,
"required": true,
"types": [
{
"type": "identifier",
"named": true
}
]
}
}
},
{
"type": "property",
"named": true,
"fields": {
"field": {
2024-04-08 02:36:27 +02:00
"multiple": false,
"required": true,
2024-04-08 02:36:27 +02:00
"types": [
{
"type": "identifier",
"named": true
}
]
},
"value": {
"multiple": false,
"required": true,
2024-04-08 02:36:27 +02:00
"types": [
2024-04-08 03:12:22 +02:00
{
"type": "binary_expression",
"named": true
},
2024-04-08 02:36:27 +02:00
{
"type": "boolean_literal",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "integer_literal",
"named": true
},
{
"type": "interpreted_string_literal",
"named": true
},
{
"type": "list_expression",
"named": true
},
{
"type": "map_expression",
"named": true
},
{
"type": "raw_string_literal",
"named": true
},
{
"type": "select_expression",
"named": true
}
]
}
}
},
{
"type": "select_case",
"named": true,
"fields": {
"pattern": {
"multiple": false,
"required": true,
"types": [
{
"type": "default",
"named": true
},
{
"type": "interpreted_string_literal",
"named": true
},
{
"type": "raw_string_literal",
"named": true
}
]
},
"value": {
"multiple": false,
"required": true,
"types": [
2024-04-08 03:12:22 +02:00
{
"type": "binary_expression",
"named": true
},
{
"type": "boolean_literal",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "integer_literal",
"named": true
},
{
"type": "interpreted_string_literal",
"named": true
},
{
"type": "list_expression",
"named": true
},
{
"type": "map_expression",
"named": true
},
{
"type": "raw_string_literal",
"named": true
},
{
"type": "select_expression",
"named": true
},
{
"type": "unset",
"named": true
}
]
}
}
},
{
"type": "select_cases",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "select_case",
"named": true
}
]
}
},
{
"type": "select_expression",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "select_cases",
"named": true
},
{
"type": "select_value",
"named": true
}
]
}
},
{
"type": "select_value",
"named": true,
"fields": {
"condition": {
"multiple": true,
"required": false,
2024-04-08 02:25:09 +02:00
"types": [
{
"type": ",",
"named": false
},
2024-04-08 02:25:09 +02:00
{
"type": "interpreted_string_literal",
"named": true
},
{
"type": "raw_string_literal",
"named": true
}
]
},
"type": {
"multiple": false,
"required": true,
"types": [
{
"type": "selection_type",
"named": true
}
]
}
}
},
2024-04-07 20:59:34 +02:00
{
"type": "source_file",
"named": true,
2024-04-07 22:37:52 +02:00
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "assignment",
"named": true
2024-04-08 02:36:27 +02:00
},
{
"type": "module",
"named": true
2024-04-07 22:37:52 +02:00
}
]
}
2024-04-07 20:59:34 +02:00
},
{
"type": "\"",
"named": false
},
{
"type": "(",
"named": false
},
{
"type": ")",
"named": false
},
2024-04-08 00:24:14 +02:00
{
"type": ",",
"named": false
},
2024-04-07 20:59:34 +02:00
{
2024-04-07 23:49:15 +02:00
"type": "-",
2024-04-07 20:59:34 +02:00
"named": false
2024-04-07 22:37:52 +02:00
},
2024-04-08 09:48:10 +02:00
{
"type": "/",
"named": false
},
{
"type": "/*",
"named": false
},
{
"type": "//",
"named": false
},
2024-04-08 00:36:21 +02:00
{
"type": ":",
"named": false
},
2024-04-07 22:37:52 +02:00
{
2024-04-07 23:49:15 +02:00
"type": "=",
"named": false
2024-04-07 22:37:52 +02:00
},
2024-04-08 00:24:14 +02:00
{
"type": "[",
"named": false
},
{
"type": "]",
"named": false
},
{
"type": "default",
"named": true
},
{
"type": "escape_sequence",
"named": true
},
2024-04-08 00:39:47 +02:00
{
"type": "false",
"named": false
},
2024-04-07 22:37:52 +02:00
{
2024-04-07 23:49:15 +02:00
"type": "identifier",
2024-04-07 22:37:52 +02:00
"named": true
},
2024-04-08 03:13:43 +02:00
{
"type": "operator",
"named": true
},
{
"type": "raw_string_literal",
"named": true
2024-04-08 00:36:21 +02:00
},
{
"type": "select",
"named": false
},
{
"type": "selection_type",
"named": true
},
2024-04-08 00:39:47 +02:00
{
"type": "true",
"named": false
},
{
"type": "unset",
"named": true
},
2024-04-08 00:36:21 +02:00
{
"type": "{",
"named": false
},
{
"type": "}",
"named": false
2024-04-07 20:59:34 +02:00
}
]