1
0
dust/tree-sitter-dust/src/node-types.json

1085 lines
16 KiB
JSON
Raw Normal View History

[
2024-02-13 14:19:23 +00:00
{
"type": "as",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "expression",
"named": true
},
{
"type": "type",
"named": true
}
]
}
},
{
"type": "assignment",
"named": true,
2023-11-30 14:30:25 +00:00
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "assignment_operator",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "statement",
"named": true
},
{
"type": "type_specification",
2023-11-30 14:30:25 +00:00
"named": true
}
]
}
},
{
"type": "assignment_operator",
"named": true,
"fields": {}
},
{
"type": "block",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "statement",
"named": true
}
]
}
},
{
"type": "boolean",
"named": true,
"fields": {}
},
{
"type": "built_in_value",
"named": true,
"fields": {}
},
2024-01-25 12:10:45 +00:00
{
"type": "command",
"named": true,
"fields": {},
"children": {
"multiple": true,
2024-01-26 20:23:24 +00:00
"required": true,
2024-01-25 12:10:45 +00:00
"types": [
{
"type": "command_argument",
2024-01-25 12:10:45 +00:00
"named": true
2024-01-26 20:23:24 +00:00
},
{
"type": "command_text",
"named": true
2024-01-25 12:10:45 +00:00
}
]
}
},
2024-01-25 13:57:55 +00:00
{
"type": "command_argument",
2024-01-25 13:57:55 +00:00
"named": true,
"fields": {}
},
{
"type": "else",
"named": true,
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
{
"type": "block",
"named": true
}
]
}
},
{
"type": "else_if",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "block",
"named": true
},
{
"type": "expression",
"named": true
}
]
}
},
{
"type": "expression",
"named": true,
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
2024-02-13 14:19:23 +00:00
{
"type": "as",
"named": true
},
2024-01-25 12:10:45 +00:00
{
"type": "command",
"named": true
},
{
"type": "function_call",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "index",
"named": true
},
{
"type": "logic",
"named": true
},
{
"type": "math",
"named": true
},
2024-01-06 06:05:13 +00:00
{
"type": "new",
"named": true
},
{
"type": "value",
"named": true
},
{
"type": "yield",
"named": true
}
]
}
},
{
"type": "float",
"named": true,
"fields": {}
},
{
"type": "for",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "block",
"named": true
},
{
"type": "expression",
"named": true
},
{
"type": "identifier",
"named": true
}
]
}
},
{
"type": "function",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "block",
"named": true
},
{
2023-11-30 00:23:42 +00:00
"type": "identifier",
"named": true
2023-12-12 23:21:16 +00:00
},
{
"type": "type_specification",
2023-12-12 23:21:16 +00:00
"named": true
}
]
}
},
{
2023-12-02 03:54:25 +00:00
"type": "function_call",
"named": true,
"fields": {},
"children": {
"multiple": true,
2023-11-30 14:30:25 +00:00
"required": true,
"types": [
2023-11-30 14:30:25 +00:00
{
2023-12-02 03:54:25 +00:00
"type": "expression",
2023-11-30 14:30:25 +00:00
"named": true
},
{
"type": "function_expression",
"named": true
}
]
}
},
{
"type": "function_expression",
"named": true,
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
{
2023-12-30 01:14:03 +00:00
"type": "function_call",
"named": true
},
{
2023-12-30 01:14:03 +00:00
"type": "identifier",
"named": true
},
{
2023-12-30 01:14:03 +00:00
"type": "index",
"named": true
2023-12-30 02:15:03 +00:00
},
{
2024-01-01 09:59:27 +00:00
"type": "value",
2023-12-30 02:15:03 +00:00
"named": true
2024-01-01 09:59:27 +00:00
},
2023-12-11 16:17:37 +00:00
{
2024-01-01 09:59:27 +00:00
"type": "yield",
2023-12-11 16:17:37 +00:00
"named": true
}
]
}
},
{
"type": "if",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "block",
"named": true
},
{
"type": "expression",
"named": true
}
]
}
},
{
"type": "if_else",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "else",
"named": true
},
{
"type": "else_if",
"named": true
},
{
"type": "if",
"named": true
}
]
}
},
{
"type": "index",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "index_expression",
"named": true
}
]
}
},
{
"type": "index_assignment",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "assignment_operator",
"named": true
},
{
"type": "index",
"named": true
},
{
"type": "statement",
"named": true
}
]
}
},
{
"type": "index_expression",
"named": true,
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
{
"type": "function_call",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "index",
"named": true
},
2024-01-23 22:35:12 +00:00
{
"type": "range",
"named": true
},
{
"type": "value",
"named": true
}
]
}
},
{
"type": "list",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "expression",
"named": true
}
]
}
},
{
"type": "logic",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "expression",
"named": true
},
{
"type": "logic_operator",
"named": true
}
]
}
},
{
"type": "logic_operator",
"named": true,
"fields": {}
},
{
"type": "map",
"named": true,
"fields": {},
"children": {
"multiple": true,
2024-01-29 22:36:21 +00:00
"required": false,
"types": [
{
"type": "identifier",
"named": true
},
{
"type": "statement",
"named": true
2023-12-20 23:29:18 +00:00
},
{
"type": "type_specification",
2023-12-20 23:29:18 +00:00
"named": true
}
]
}
},
{
"type": "match",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "expression",
"named": true
},
{
"type": "statement",
"named": true
}
]
}
},
{
"type": "math",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "expression",
"named": true
},
{
"type": "math_operator",
"named": true
}
]
}
},
{
"type": "math_operator",
"named": true,
"fields": {}
},
2024-01-06 06:05:13 +00:00
{
"type": "new",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "identifier",
"named": true
},
{
"type": "statement",
"named": true
},
{
"type": "type_specification",
2024-01-06 06:05:13 +00:00
"named": true
}
]
}
},
{
"type": "option",
"named": true,
"fields": {},
"children": {
"multiple": false,
"required": false,
"types": [
{
"type": "expression",
"named": true
}
]
}
},
2024-01-25 13:27:24 +00:00
{
"type": "pipe",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "command",
"named": true
},
{
"type": "function_call",
"named": true
},
{
"type": "pipe",
"named": true
}
]
}
},
{
"type": "return",
"named": true,
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
{
2023-12-31 19:04:10 +00:00
"type": "statement",
"named": true
}
]
}
},
{
"type": "root",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "statement",
"named": true
}
]
}
},
{
"type": "statement",
"named": true,
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
{
"type": "assignment",
"named": true
},
{
"type": "block",
"named": true
},
{
"type": "expression",
"named": true
},
{
"type": "for",
"named": true
},
{
"type": "if_else",
"named": true
},
{
"type": "index_assignment",
"named": true
},
{
"type": "match",
"named": true
},
2024-01-25 13:27:24 +00:00
{
"type": "pipe",
"named": true
},
{
"type": "return",
"named": true
},
{
"type": "while",
"named": true
}
]
}
},
2024-01-25 13:57:55 +00:00
{
"type": "string",
"named": true,
"fields": {}
},
{
2024-01-06 06:05:13 +00:00
"type": "structure",
"named": true,
2023-11-30 00:23:42 +00:00
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
2024-01-04 00:57:06 +00:00
{
"type": "identifier",
"named": true
},
2023-11-30 00:23:42 +00:00
{
2024-01-06 06:05:13 +00:00
"type": "statement",
2023-11-30 00:23:42 +00:00
"named": true
2024-01-04 00:57:06 +00:00
},
{
"type": "type_specification",
2024-01-04 00:57:06 +00:00
"named": true
2023-11-30 00:23:42 +00:00
}
]
}
},
2024-01-06 06:05:13 +00:00
{
"type": "type",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "identifier",
"named": true
},
{
"type": "type",
"named": true
}
]
}
},
2023-11-30 00:23:42 +00:00
{
"type": "type_specification",
2023-11-30 00:23:42 +00:00
"named": true,
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
{
"type": "type",
"named": true
}
]
}
},
{
"type": "value",
"named": true,
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
{
"type": "boolean",
"named": true
},
{
"type": "built_in_value",
"named": true
},
{
"type": "float",
"named": true
},
2023-12-02 03:54:25 +00:00
{
"type": "function",
"named": true
},
{
"type": "integer",
"named": true
},
{
"type": "list",
"named": true
},
{
"type": "map",
"named": true
},
{
"type": "option",
"named": true
},
2024-01-23 22:35:12 +00:00
{
"type": "range",
"named": true
},
{
"type": "string",
"named": true
2024-01-06 06:05:13 +00:00
},
{
2024-01-23 20:46:20 +00:00
"type": "structure",
2024-01-06 06:05:13 +00:00
"named": true
}
]
}
},
{
"type": "while",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "block",
"named": true
},
{
"type": "expression",
"named": true
}
]
}
},
{
"type": "yield",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "expression",
"named": true
},
{
"type": "function_expression",
"named": true
}
]
}
},
{
"type": "!=",
"named": false
},
{
"type": "%",
"named": false
},
{
"type": "&&",
"named": false
},
{
"type": "(",
"named": false
},
{
"type": ")",
"named": false
},
{
"type": "*",
"named": false
},
{
"type": "+",
"named": false
},
{
"type": "+=",
"named": false
},
{
"type": ",",
"named": false
},
{
"type": "-",
"named": false
},
{
"type": "-=",
"named": false
},
{
"type": "->",
"named": false
},
{
"type": "/",
"named": false
},
{
"type": ":",
"named": false
},
{
"type": ";",
"named": false
},
{
"type": "<",
"named": false
},
{
"type": "<=",
"named": false
},
{
"type": "=",
"named": false
},
{
"type": "==",
"named": false
},
{
"type": "=>",
"named": false
},
{
"type": ">",
"named": false
},
{
"type": ">=",
"named": false
},
{
"type": "Infinity",
"named": false
},
{
"type": "NaN",
"named": false
},
{
"type": "[",
"named": false
},
{
"type": "]",
"named": false
},
{
"type": "^",
"named": false
},
{
"type": "any",
"named": false
},
2023-12-11 16:17:37 +00:00
{
2024-01-01 09:59:27 +00:00
"type": "args",
2023-12-11 16:17:37 +00:00
"named": false
},
2024-02-13 14:19:23 +00:00
{
"type": "as",
"named": false
},
2023-12-11 16:17:37 +00:00
{
"type": "assert_equal",
"named": false
},
{
"type": "async",
"named": false
},
{
"type": "async for",
"named": false
},
{
"type": "bool",
"named": false
},
2024-01-01 10:20:11 +00:00
{
"type": "collection",
"named": false
},
2024-01-26 20:23:24 +00:00
{
"type": "command_text",
"named": true
},
{
"type": "else",
"named": false
},
{
"type": "else if",
"named": false
},
{
2024-01-01 09:59:27 +00:00
"type": "env",
"named": false
},
{
2024-01-01 09:59:27 +00:00
"type": "false",
2023-12-11 16:17:37 +00:00
"named": false
},
2023-12-11 16:17:37 +00:00
{
"type": "float",
"named": false
2023-12-11 16:17:37 +00:00
},
{
"type": "for",
"named": false
},
2024-01-01 12:46:47 +00:00
{
"type": "fs",
"named": false
},
{
2024-01-01 09:59:27 +00:00
"type": "identifier",
"named": true
},
{
"type": "if",
"named": false
},
{
"type": "in",
"named": false
},
{
"type": "infinity",
"named": false
},
{
"type": "int",
"named": false
},
{
"type": "integer",
"named": true
},
2024-01-01 12:46:47 +00:00
{
"type": "json",
"named": false
},
2023-12-11 16:17:37 +00:00
{
"type": "length",
"named": false
},
{
"type": "map",
"named": false
},
{
"type": "match",
"named": false
},
{
"type": "nan",
"named": false
},
2024-01-06 06:05:13 +00:00
{
"type": "new",
"named": false
},
{
"type": "none",
"named": false
},
{
2023-11-30 00:23:42 +00:00
"type": "num",
"named": false
},
{
"type": "option",
"named": false
},
2023-12-11 16:17:37 +00:00
{
"type": "output",
"named": false
},
{
"type": "random",
"named": false
},
{
"type": "range",
"named": true
},
{
2023-11-30 00:23:42 +00:00
"type": "return",
"named": false
},
{
"type": "some",
"named": false
},
{
"type": "str",
"named": false
},
2024-01-06 06:05:13 +00:00
{
"type": "struct",
"named": false
},
{
"type": "true",
"named": false
},
{
"type": "while",
"named": false
},
{
"type": "{",
"named": false
},
2024-01-25 13:27:24 +00:00
{
"type": "|",
"named": false
},
{
"type": "||",
"named": false
},
{
"type": "}",
"named": false
}
]