tree-sitter-go
Advanced tools
Comparing version 0.15.0 to 0.15.1
379
grammar.js
@@ -22,31 +22,43 @@ const | ||
unicodeValue = unicodeChar, | ||
letter = choice(unicodeLetter, '_'), | ||
newline = '\n', | ||
terminator = choice(newline, ';'), | ||
hexDigit = /[0-9a-fA-F]/, | ||
octalDigit = /[0-7]/, | ||
decimalDigit = /[0-9]/, | ||
hexByteValue = seq('\\', 'x', hexDigit, hexDigit), | ||
octalByteValue = seq('\\', octalDigit, octalDigit, octalDigit) | ||
byteValue = choice(octalByteValue, hexByteValue), | ||
binaryDigit = /[01]/, | ||
newline = '\n', | ||
letter = choice(unicodeLetter, '_'), | ||
hexDigits = seq(hexDigit, repeat(seq(optional('_'), hexDigit))), | ||
octalDigits = seq(octalDigit, repeat(seq(optional('_'), octalDigit))), | ||
decimalDigits = seq(decimalDigit, repeat(seq(optional('_'), decimalDigit))), | ||
binaryDigits = seq(binaryDigit, repeat(seq(optional('_'), binaryDigit))), | ||
decimals = repeat1(decimalDigit), | ||
exponent = seq( | ||
choice('e', 'E'), | ||
optional(choice('+', '-')), | ||
repeat1(decimalDigit) | ||
hexLiteral = seq('0', choice('x', 'X'), optional('_'), hexDigits), | ||
octalLiteral = seq('0', optional(choice('o', 'O')), optional('_'), octalDigits), | ||
decimalLiteral = choice('0', seq(/[1-9]/, optional(seq(optional('_'), decimalDigits)))), | ||
binaryLiteral = seq('0', choice('b', 'B'), optional('_'), binaryDigits), | ||
intLiteral = choice(binaryLiteral, decimalLiteral, octalLiteral, hexLiteral), | ||
decimalExponent = seq(choice('e', 'E'), optional(choice('+', '-')), decimalDigits), | ||
decimalFloatLiteral = choice( | ||
seq(decimalDigits, '.', optional(decimalDigits), optional(decimalExponent)), | ||
seq(decimalDigits, decimalExponent), | ||
seq('.', decimalDigits, optional(decimalExponent)), | ||
), | ||
hexLiteral = seq('0', choice('x', 'X'), repeat1(hexDigit)), | ||
octalLiteral = seq('0', repeat(octalDigit)), | ||
decimalLiteral = seq(/[1-9]/, repeat(decimalDigit)), | ||
floatLiteral = choice( | ||
seq(decimals, '.', optional(decimals), optional(exponent)), | ||
seq(decimals, exponent), | ||
seq('.', decimals, optional(exponent)) | ||
hexExponent = seq(choice('p', 'P'), optional(choice('+', '-')), decimalDigits), | ||
hexMantissa = choice( | ||
seq(optional('_'), hexDigits, '.', optional(hexDigits)), | ||
seq(optional('_'), hexDigits), | ||
seq('.', hexDigits), | ||
), | ||
hexFloatLiteral = seq('0', choice('x', 'X'), hexMantissa, hexExponent), | ||
terminator = choice(newline, ';') | ||
floatLiteral = choice(decimalFloatLiteral, hexFloatLiteral), | ||
imaginaryLiteral = seq(choice(decimalDigits, intLiteral, floatLiteral), 'i') | ||
module.exports = grammar({ | ||
@@ -65,2 +77,3 @@ name: 'go', | ||
$._package_identifier, | ||
$._string_literal, | ||
], | ||
@@ -78,16 +91,22 @@ | ||
supertypes: $ => [ | ||
$._expression, | ||
$._type, | ||
$._simple_type, | ||
$._statement, | ||
$._simple_statement, | ||
], | ||
rules: { | ||
source_file: $ => repeat(seq( | ||
$._top_level_declaration, | ||
choice( | ||
$.package_clause, | ||
$.function_declaration, | ||
$.method_declaration, | ||
$.import_declaration, | ||
$._declaration | ||
), | ||
optional(terminator) | ||
)), | ||
_top_level_declaration: $ => choice( | ||
$.package_clause, | ||
$.function_declaration, | ||
$.method_declaration, | ||
$.import_declaration, | ||
$._declaration | ||
), | ||
package_clause: $ => seq( | ||
@@ -107,8 +126,8 @@ 'package', | ||
import_spec: $ => seq( | ||
optional(choice( | ||
optional(field('name', choice( | ||
$.dot, | ||
$.blank_identifier, | ||
$._package_identifier | ||
)), | ||
$._string_literal | ||
))), | ||
field('path', $._string_literal) | ||
), | ||
@@ -146,7 +165,7 @@ dot: $ => '.', | ||
const_spec: $ => prec.left(seq( | ||
commaSep1($.identifier), | ||
field('name', commaSep1($.identifier)), | ||
optional(seq( | ||
optional($._type), | ||
optional(field('type', $._type)), | ||
'=', | ||
$.expression_list | ||
field('value', $.expression_list) | ||
)) | ||
@@ -168,9 +187,9 @@ )), | ||
var_spec: $ => seq( | ||
commaSep1($.identifier), | ||
field('name', commaSep1($.identifier)), | ||
choice( | ||
seq( | ||
$._type, | ||
optional(seq('=', $.expression_list)) | ||
field('type', $._type), | ||
optional(seq('=', field('value', $.expression_list))) | ||
), | ||
seq('=', $.expression_list) | ||
seq('=', field('value', $.expression_list)) | ||
) | ||
@@ -181,6 +200,6 @@ ), | ||
'func', | ||
$.identifier, | ||
$.parameter_list, | ||
optional(choice($.parameter_list, $._simple_type)), | ||
optional($.block) | ||
field('name', $.identifier), | ||
field('parameters', $.parameter_list), | ||
field('result', optional(choice($.parameter_list, $._simple_type))), | ||
field('body', optional($.block)) | ||
)), | ||
@@ -190,7 +209,7 @@ | ||
'func', | ||
$.parameter_list, | ||
$._field_identifier, | ||
$.parameter_list, | ||
optional(choice($.parameter_list, $._simple_type)), | ||
optional($.block) | ||
field('receiver', $.parameter_list), | ||
field('name', $._field_identifier), | ||
field('parameters', $.parameter_list), | ||
field('result', optional(choice($.parameter_list, $._simple_type))), | ||
field('body', optional($.block)) | ||
)), | ||
@@ -208,16 +227,16 @@ | ||
parameter_declaration: $ => seq( | ||
commaSep($.identifier), | ||
$._type | ||
field('name', commaSep($.identifier)), | ||
field('type', $._type) | ||
), | ||
variadic_parameter_declaration: $ => seq( | ||
optional($.identifier), | ||
field('name', optional($.identifier)), | ||
'...', | ||
$._type | ||
field('type', $._type) | ||
), | ||
type_alias: $ => seq( | ||
$._type_identifier, | ||
field('name', $._type_identifier), | ||
'=', | ||
$._type | ||
field('type', $._type) | ||
), | ||
@@ -239,4 +258,4 @@ | ||
type_spec: $ => seq( | ||
$._type_identifier, | ||
$._type | ||
field('name', $._type_identifier), | ||
field('type', $._type) | ||
), | ||
@@ -272,5 +291,5 @@ | ||
'[', | ||
$._expression, | ||
field('length', $._expression), | ||
']', | ||
$._type | ||
field('element', $._type) | ||
), | ||
@@ -282,3 +301,3 @@ | ||
']', | ||
$._type | ||
field('element', $._type) | ||
), | ||
@@ -289,3 +308,3 @@ | ||
']', | ||
$._type | ||
field('element', $._type) | ||
), | ||
@@ -311,14 +330,14 @@ | ||
seq( | ||
commaSep1($._field_identifier), | ||
$._type | ||
field('name', commaSep1($._field_identifier)), | ||
field('type', $._type) | ||
), | ||
seq( | ||
optional('*'), | ||
choice( | ||
field('type', choice( | ||
$._type_identifier, | ||
$.qualified_type | ||
) | ||
)) | ||
) | ||
), | ||
optional($._string_literal) | ||
field('tag', optional($._string_literal)) | ||
), | ||
@@ -342,5 +361,5 @@ | ||
method_spec: $ => seq( | ||
$._field_identifier, | ||
$.parameter_list, | ||
optional(choice($.parameter_list, $._simple_type)) | ||
field('name', $._field_identifier), | ||
field('parameters', $.parameter_list), | ||
field('result', optional(choice($.parameter_list, $._simple_type))) | ||
), | ||
@@ -351,11 +370,11 @@ | ||
'[', | ||
$._type, | ||
field('key', $._type), | ||
']', | ||
$._type | ||
field('value', $._type) | ||
), | ||
channel_type: $ => choice( | ||
seq('chan', $._type), | ||
seq('chan', '<-', $._type), | ||
prec(PREC.unary, seq('<-', 'chan', $._type)) | ||
seq('chan', field('value', $._type)), | ||
seq('chan', '<-', field('value', $._type)), | ||
prec(PREC.unary, seq('<-', 'chan', field('value', $._type))) | ||
), | ||
@@ -365,4 +384,4 @@ | ||
'func', | ||
$.parameter_list, | ||
optional(choice($.parameter_list, $._simple_type)) | ||
field('parameters', $.parameter_list), | ||
field('result', optional(choice($.parameter_list, $._simple_type))) | ||
), | ||
@@ -420,5 +439,5 @@ | ||
send_statement: $ => seq( | ||
$._expression, | ||
field('channel', $._expression), | ||
'<-', | ||
$._expression | ||
field('value', $._expression) | ||
), | ||
@@ -428,6 +447,6 @@ | ||
optional(seq( | ||
$.expression_list, | ||
field('left', $.expression_list), | ||
choice('=', ':=') | ||
)), | ||
$._expression | ||
field('right', $._expression) | ||
), | ||
@@ -446,5 +465,5 @@ | ||
assignment_statement: $ => seq( | ||
$.expression_list, | ||
choice(...assignment_operators), | ||
$.expression_list | ||
field('left', $.expression_list), | ||
field('operator', choice(...assignment_operators)), | ||
field('right', $.expression_list) | ||
), | ||
@@ -455,9 +474,9 @@ | ||
// conflicts between identifiers as expressions vs identifiers here. | ||
$.expression_list, | ||
field('left', $.expression_list), | ||
':=', | ||
$.expression_list | ||
field('right', $.expression_list) | ||
), | ||
labeled_statement: $ => seq( | ||
alias($.identifier, $.label_name), | ||
field('label', alias($.identifier, $.label_name)), | ||
':', | ||
@@ -468,3 +487,3 @@ $._statement | ||
empty_labeled_statement: $ => seq( | ||
alias($.identifier, $.label_name), | ||
field('label', alias($.identifier, $.label_name)), | ||
':' | ||
@@ -492,27 +511,26 @@ ), | ||
'if', | ||
optional($.if_initializer), | ||
$._expression, | ||
$.block, | ||
optional($.else_clause) | ||
optional(seq( | ||
field('initializer', $._simple_statement), | ||
';' | ||
)), | ||
field('condition', $._expression), | ||
field('consequence', $.block), | ||
optional(seq( | ||
'else', | ||
field('alternative', choice($.block, $.if_statement)) | ||
)) | ||
), | ||
if_initializer: $ => seq($._simple_statement, ';'), | ||
else_clause: $ => seq( | ||
'else', | ||
choice($.block, $.if_statement) | ||
), | ||
for_statement: $ => seq( | ||
'for', | ||
optional(choice($._expression, $.for_clause, $.range_clause)), | ||
$.block | ||
field('body', $.block) | ||
), | ||
for_clause: $ => seq( | ||
optional($._simple_statement), | ||
field('initializer', optional($._simple_statement)), | ||
';', | ||
optional($._expression), | ||
field('condition', optional($._expression)), | ||
';', | ||
optional($._simple_statement) | ||
field('update', optional($._simple_statement)) | ||
), | ||
@@ -522,7 +540,7 @@ | ||
optional(seq( | ||
$.expression_list, | ||
field('left', $.expression_list), | ||
choice('=', ':=') | ||
)), | ||
'range', | ||
$._expression | ||
field('right', $._expression) | ||
), | ||
@@ -532,18 +550,17 @@ | ||
'switch', | ||
optional(seq($._simple_statement, ';')), | ||
optional($._expression), | ||
optional(seq( | ||
field('initializer', $._simple_statement), | ||
';' | ||
)), | ||
field('value', optional($._expression)), | ||
'{', | ||
repeat($.expression_case_clause), | ||
repeat(choice($.expression_case, $.default_case)), | ||
'}' | ||
), | ||
expression_case_clause: $ => seq( | ||
choice($.expression_case, $.default_case), | ||
optional($._statement_list) | ||
), | ||
expression_case: $ => seq( | ||
'case', | ||
$.expression_list, | ||
':' | ||
field('value', $.expression_list), | ||
':', | ||
optional($._statement_list) | ||
), | ||
@@ -553,3 +570,4 @@ | ||
'default', | ||
':' | ||
':', | ||
optional($._statement_list) | ||
), | ||
@@ -559,26 +577,26 @@ | ||
'switch', | ||
optional(seq( | ||
$._simple_statement, | ||
';' | ||
)), | ||
$.type_switch_guard, | ||
$._type_switch_header, | ||
'{', | ||
repeat($.type_case_clause), | ||
repeat(choice($.type_case, $.default_case)), | ||
'}' | ||
), | ||
type_switch_guard: $ => seq( | ||
optional(seq($.expression_list, ':=' )), | ||
$._expression, '.', '(', 'type', ')' | ||
_type_switch_header: $ => seq( | ||
optional(seq( | ||
field('initializer', $._simple_statement), | ||
';' | ||
)), | ||
optional(seq(field('alias', $.expression_list), ':=')), | ||
field('value', $._expression), | ||
'.', | ||
'(', | ||
'type', | ||
')' | ||
), | ||
type_case_clause: $ => seq( | ||
choice($.type_case, $.default_case), | ||
optional($._statement_list) | ||
), | ||
type_case: $ => seq( | ||
'case', | ||
commaSep1($._type), | ||
':' | ||
field('type', commaSep1($._type)), | ||
':', | ||
optional($._statement_list) | ||
), | ||
@@ -589,15 +607,11 @@ | ||
'{', | ||
repeat($.communication_clause), | ||
repeat(choice($.communication_case, $.default_case)), | ||
'}' | ||
), | ||
communication_clause: $ => seq( | ||
choice($.communication_case, $.default_case), | ||
optional($._statement_list) | ||
), | ||
communication_case: $ => seq( | ||
'case', | ||
choice($.send_statement, $.receive_statement), | ||
':' | ||
field('communication', choice($.send_statement, $.receive_statement)), | ||
':', | ||
optional($._statement_list) | ||
), | ||
@@ -637,8 +651,8 @@ | ||
seq( | ||
alias(choice('new', 'make'), $.identifier), | ||
alias($.special_argument_list, $.argument_list) | ||
field('function', alias(choice('new', 'make'), $.identifier)), | ||
field('arguments', alias($.special_argument_list, $.argument_list)) | ||
), | ||
seq( | ||
$._expression, | ||
$.argument_list | ||
field('function', $._expression), | ||
field('arguments', $.argument_list) | ||
) | ||
@@ -671,11 +685,11 @@ )), | ||
selector_expression: $ => prec(PREC.primary, seq( | ||
$._expression, | ||
field('operand', $._expression), | ||
'.', | ||
$._field_identifier | ||
field('field', $._field_identifier) | ||
)), | ||
index_expression: $ => prec(PREC.primary, seq( | ||
$._expression, | ||
field('operand', $._expression), | ||
'[', | ||
$._expression, | ||
field('index', $._expression), | ||
']' | ||
@@ -685,7 +699,17 @@ )), | ||
slice_expression: $ => prec(PREC.primary, seq( | ||
$._expression, | ||
field('operand', $._expression), | ||
'[', | ||
choice( | ||
seq(optional($._expression), ':', optional($._expression)), | ||
seq(optional($._expression), ':', $._expression, ':', $._expression) | ||
seq( | ||
field('start', optional($._expression)), | ||
':', | ||
field('end', optional($._expression)) | ||
), | ||
seq( | ||
field('start', optional($._expression)), | ||
':', | ||
field('end', $._expression), | ||
':', | ||
field('capacity', $._expression) | ||
) | ||
), | ||
@@ -696,6 +720,6 @@ ']' | ||
type_assertion_expression: $ => prec(PREC.primary, seq( | ||
$._expression, | ||
field('operand', $._expression), | ||
'.', | ||
'(', | ||
$._type, | ||
field('type', $._type), | ||
')' | ||
@@ -705,5 +729,5 @@ )), | ||
type_conversion_expression: $ => prec.dynamic(-1, seq( | ||
$._type, | ||
field('type', $._type), | ||
'(', | ||
$._expression, | ||
field('operand', $._expression), | ||
optional(','), | ||
@@ -714,3 +738,3 @@ ')' | ||
composite_literal: $ => prec(PREC.composite_literal, seq( | ||
choice( | ||
field('type', choice( | ||
$.map_type, | ||
@@ -723,4 +747,4 @@ $.slice_type, | ||
$.qualified_type | ||
), | ||
$.literal_value | ||
)), | ||
field('body', $.literal_value) | ||
)), | ||
@@ -757,22 +781,36 @@ | ||
'func', | ||
$.parameter_list, | ||
optional(choice($.parameter_list, $._simple_type)), | ||
$.block | ||
field('parameters', $.parameter_list), | ||
field('result', optional(choice($.parameter_list, $._simple_type))), | ||
field('body', $.block) | ||
), | ||
unary_expression: $ => prec(PREC.unary, seq( | ||
choice('+', '-', '!', '^', '*', '&', '<-'), | ||
$._expression | ||
field('operator', choice('+', '-', '!', '^', '*', '&', '<-')), | ||
field('operand', $._expression) | ||
)), | ||
binary_expression: $ => choice( | ||
prec.left(PREC.multiplicative, seq($._expression, choice(...multiplicative_operators), $._expression)), | ||
prec.left(PREC.additive, seq($._expression, choice(...additive_operators), $._expression)), | ||
prec.left(PREC.comparative, seq($._expression, choice(...comparative_operators), $._expression)), | ||
prec.left(PREC.and, seq($._expression, '&&', $._expression)), | ||
prec.left(PREC.or, seq($._expression, '||', $._expression)) | ||
binary_expression: $ => { | ||
const table = [ | ||
[PREC.multiplicative, choice(...multiplicative_operators)], | ||
[PREC.additive, choice(...additive_operators)], | ||
[PREC.comparative, choice(...comparative_operators)], | ||
[PREC.and, '&&'], | ||
[PREC.or, '||'], | ||
]; | ||
return choice(...table.map(([precedence, operator]) => | ||
prec.left(precedence, seq( | ||
field('left', $._expression), | ||
field('operator', operator), | ||
field('right', $._expression) | ||
)) | ||
)); | ||
}, | ||
qualified_type: $ => seq( | ||
field('package', $._package_identifier), | ||
'.', | ||
field('name', $._type_identifier) | ||
), | ||
qualified_type: $ => seq($._package_identifier, '.', $._type_identifier), | ||
identifier: $ => token(seq( | ||
@@ -818,10 +856,7 @@ letter, | ||
int_literal: $ => token(choice(decimalLiteral, octalLiteral, hexLiteral)), | ||
int_literal: $ => token(intLiteral), | ||
float_literal: $ => token(floatLiteral), | ||
imaginary_literal: $ => token(seq( | ||
choice(floatLiteral, repeat1(decimalDigit)), | ||
'i' | ||
)), | ||
imaginary_literal: $ => token(imaginaryLiteral), | ||
@@ -828,0 +863,0 @@ rune_literal: $ => token(seq( |
{ | ||
"name": "tree-sitter-go", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"description": "Go grammar for tree-sitter", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"tree-sitter-cli": "^0.15.3", | ||
"tree-sitter-cli": "^0.15.14", | ||
"tree-sitter-highlight-schema": "^0.1.1" | ||
@@ -29,6 +29,5 @@ }, | ||
"go" | ||
], | ||
"highlights": "src/highlights.json" | ||
] | ||
} | ||
] | ||
} |
[ | ||
{ | ||
"type": "_expression", | ||
"named": true, | ||
"subtypes": [ | ||
{ | ||
"type": "binary_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "call_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "composite_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "false", | ||
"named": true | ||
}, | ||
{ | ||
"type": "float_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "func_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "identifier", | ||
"named": true | ||
}, | ||
{ | ||
"type": "imaginary_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "index_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "int_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "interpreted_string_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "nil", | ||
"named": true | ||
}, | ||
{ | ||
"type": "parenthesized_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "raw_string_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "rune_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "selector_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "slice_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "true", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_assertion_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_conversion_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "unary_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "_simple_statement", | ||
"named": true, | ||
"subtypes": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "assignment_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "dec_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "inc_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "send_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "short_var_declaration", | ||
"named": true | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "_simple_type", | ||
"named": true, | ||
"subtypes": [ | ||
{ | ||
"type": "array_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "channel_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "function_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "interface_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "map_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "pointer_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "qualified_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "slice_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "struct_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "_statement", | ||
"named": true, | ||
"subtypes": [ | ||
{ | ||
"type": "_simple_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "block", | ||
"named": true | ||
}, | ||
{ | ||
"type": "break_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "const_declaration", | ||
"named": true | ||
}, | ||
{ | ||
"type": "continue_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "defer_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "empty_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "expression_switch_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "fallthrough_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "for_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "go_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "goto_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "if_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "labeled_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "return_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "select_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_declaration", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_switch_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "var_declaration", | ||
"named": true | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "_type", | ||
"named": true, | ||
"subtypes": [ | ||
{ | ||
"type": "_simple_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "parenthesized_type", | ||
"named": true | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "argument_list", | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "variadic_argument", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -10,3 +290,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"element": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"length": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -16,3 +317,78 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"left": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"operator": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"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 | ||
} | ||
] | ||
}, | ||
"right": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -22,3 +398,106 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"left": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"operator": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"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 | ||
} | ||
] | ||
}, | ||
"right": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -28,3 +507,17 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "labeled_statement", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -34,3 +527,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "label_name", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -40,3 +543,28 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"arguments": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "argument_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"function": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "identifier", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -46,3 +574,14 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"value": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -52,13 +591,82 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"communication": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "receive_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "send_statement", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "labeled_statement", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "communication_clause", | ||
"named": true, | ||
"fields": {} | ||
}, | ||
{ | ||
"type": "composite_literal", | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"body": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "literal_value", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"type": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "array_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "implicit_length_array_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "map_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "qualified_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "slice_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "struct_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_identifier", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -68,3 +676,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "const_spec", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -74,3 +692,38 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"name": { | ||
"multiple": true, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": ",", | ||
"named": false | ||
}, | ||
{ | ||
"type": "identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"type": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"value": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -80,3 +733,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "label_name", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -86,3 +749,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -92,3 +765,17 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "labeled_statement", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -98,3 +785,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -109,10 +806,19 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "literal_value", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "else_clause", | ||
"named": true, | ||
"fields": {} | ||
}, | ||
{ | ||
"type": "empty_statement", | ||
@@ -125,13 +831,43 @@ "named": true, | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"value": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "labeled_statement", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "expression_case_clause", | ||
"named": true, | ||
"fields": {} | ||
}, | ||
{ | ||
"type": "expression_list", | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -141,3 +877,38 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"initializer": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_simple_statement", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"value": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "default_case", | ||
"named": true | ||
}, | ||
{ | ||
"type": "expression_case", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -152,3 +923,50 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"name": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": ",", | ||
"named": false | ||
}, | ||
{ | ||
"type": "field_identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"tag": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "interpreted_string_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "raw_string_literal", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"type": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "qualified_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_identifier", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -158,13 +976,49 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "field_declaration", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "field_name_list", | ||
"named": true, | ||
"fields": {} | ||
}, | ||
{ | ||
"type": "for_clause", | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"condition": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"initializer": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_simple_statement", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"update": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_simple_statement", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -174,3 +1028,32 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"body": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "block", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
"children": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "for_clause", | ||
"named": true | ||
}, | ||
{ | ||
"type": "range_clause", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -180,3 +1063,38 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"body": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "block", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"parameters": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"result": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_simple_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -186,3 +1104,48 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"body": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "block", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"name": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"parameters": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"result": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_simple_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -192,3 +1155,28 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"parameters": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"result": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_simple_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -198,3 +1186,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -204,13 +1202,63 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "label_name", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "if_initializer", | ||
"named": true, | ||
"fields": {} | ||
}, | ||
{ | ||
"type": "if_statement", | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"alternative": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "block", | ||
"named": true | ||
}, | ||
{ | ||
"type": "if_statement", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"condition": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"consequence": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "block", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"initializer": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_simple_statement", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -220,3 +1268,14 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"element": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -226,3 +1285,17 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "import_spec", | ||
"named": true | ||
}, | ||
{ | ||
"type": "import_spec_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -232,3 +1305,36 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"name": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "blank_identifier", | ||
"named": true | ||
}, | ||
{ | ||
"type": "dot", | ||
"named": true | ||
}, | ||
{ | ||
"type": "package_identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"path": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "interpreted_string_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "raw_string_literal", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -238,3 +1344,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "import_spec", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -244,3 +1360,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -250,3 +1376,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"index": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"operand": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -256,3 +1403,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "method_spec_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -262,3 +1419,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "escape_sequence", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -268,3 +1435,21 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
}, | ||
{ | ||
"type": "field_identifier", | ||
"named": true | ||
}, | ||
{ | ||
"type": "literal_value", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -274,3 +1459,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"label": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "label_name", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_statement", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -280,3 +1486,17 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "element", | ||
"named": true | ||
}, | ||
{ | ||
"type": "keyed_element", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -286,3 +1506,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"key": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"value": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -292,3 +1533,58 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"body": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "block", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"name": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "field_identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"parameters": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"receiver": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"result": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_simple_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -298,3 +1594,38 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"name": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "field_identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"parameters": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"result": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_simple_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "parameter_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -304,3 +1635,21 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "method_spec", | ||
"named": true | ||
}, | ||
{ | ||
"type": "qualified_type", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_identifier", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -310,3 +1659,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "package_identifier", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -316,3 +1675,28 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"name": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": ",", | ||
"named": false | ||
}, | ||
{ | ||
"type": "identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"type": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -322,3 +1706,17 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "parameter_declaration", | ||
"named": true | ||
}, | ||
{ | ||
"type": "variadic_parameter_declaration", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -328,3 +1726,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -334,3 +1742,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -340,3 +1758,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -346,3 +1774,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"name": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "type_identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"package": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "package_identifier", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -352,3 +1801,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"left": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"right": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -358,3 +1828,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"left": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"right": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -364,3 +1855,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -370,3 +1871,17 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "communication_case", | ||
"named": true | ||
}, | ||
{ | ||
"type": "default_case", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -376,3 +1891,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"field": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "field_identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"operand": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -382,3 +1918,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"channel": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"value": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -388,3 +1945,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"left": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"right": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -394,3 +1972,44 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"capacity": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"end": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"operand": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"start": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -400,3 +2019,14 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"element": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -406,3 +2036,37 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "const_declaration", | ||
"named": true | ||
}, | ||
{ | ||
"type": "function_declaration", | ||
"named": true | ||
}, | ||
{ | ||
"type": "import_declaration", | ||
"named": true | ||
}, | ||
{ | ||
"type": "method_declaration", | ||
"named": true | ||
}, | ||
{ | ||
"type": "package_clause", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_declaration", | ||
"named": true | ||
}, | ||
{ | ||
"type": "var_declaration", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -412,3 +2076,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "field_declaration_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -418,3 +2092,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"name": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "type_identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"type": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -424,3 +2119,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"operand": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"type": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -430,13 +2146,58 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"type": { | ||
"multiple": true, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": ",", | ||
"named": false | ||
}, | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_statement", | ||
"named": true | ||
}, | ||
{ | ||
"type": "labeled_statement", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "type_case_clause", | ||
"named": true, | ||
"fields": {} | ||
}, | ||
{ | ||
"type": "type_conversion_expression", | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"operand": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"type": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -446,3 +2207,17 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "type_alias", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_spec", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -452,13 +2227,74 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"name": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "type_identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"type": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "type_switch_guard", | ||
"named": true, | ||
"fields": {} | ||
}, | ||
{ | ||
"type": "type_switch_statement", | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"alias": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"initializer": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_simple_statement", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"value": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "default_case", | ||
"named": true | ||
}, | ||
{ | ||
"type": "type_case", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -468,3 +2304,48 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"operand": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"operator": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "!", | ||
"named": false | ||
}, | ||
{ | ||
"type": "&", | ||
"named": false | ||
}, | ||
{ | ||
"type": "*", | ||
"named": false | ||
}, | ||
{ | ||
"type": "+", | ||
"named": false | ||
}, | ||
{ | ||
"type": "-", | ||
"named": false | ||
}, | ||
{ | ||
"type": "<-", | ||
"named": false | ||
}, | ||
{ | ||
"type": "^", | ||
"named": false | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -474,3 +2355,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "var_spec", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -480,3 +2371,38 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"name": { | ||
"multiple": true, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": ",", | ||
"named": false | ||
}, | ||
{ | ||
"type": "identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"type": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"value": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "expression_list", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -486,3 +2412,13 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_expression", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
@@ -492,3 +2428,24 @@ { | ||
"named": true, | ||
"fields": {} | ||
"fields": { | ||
"name": { | ||
"multiple": false, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "identifier", | ||
"named": true | ||
} | ||
] | ||
}, | ||
"type": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "_type", | ||
"named": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
@@ -500,349 +2457,353 @@ { | ||
{ | ||
"type": ";", | ||
"type": "!", | ||
"named": false | ||
}, | ||
{ | ||
"type": "package", | ||
"type": "!=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "import", | ||
"type": "\"", | ||
"named": false | ||
}, | ||
{ | ||
"type": ".", | ||
"type": "%", | ||
"named": false | ||
}, | ||
{ | ||
"type": "blank_identifier", | ||
"named": true | ||
"type": "%=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "(", | ||
"type": "&", | ||
"named": false | ||
}, | ||
{ | ||
"type": ")", | ||
"type": "&&", | ||
"named": false | ||
}, | ||
{ | ||
"type": "const", | ||
"type": "&=", | ||
"named": false | ||
}, | ||
{ | ||
"type": ",", | ||
"type": "&^", | ||
"named": false | ||
}, | ||
{ | ||
"type": "=", | ||
"type": "&^=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "var", | ||
"type": "(", | ||
"named": false | ||
}, | ||
{ | ||
"type": "func", | ||
"type": ")", | ||
"named": false | ||
}, | ||
{ | ||
"type": "...", | ||
"type": "*", | ||
"named": false | ||
}, | ||
{ | ||
"type": "type", | ||
"type": "*=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "*", | ||
"type": "+", | ||
"named": false | ||
}, | ||
{ | ||
"type": "[", | ||
"type": "++", | ||
"named": false | ||
}, | ||
{ | ||
"type": "]", | ||
"type": "+=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "struct", | ||
"type": ",", | ||
"named": false | ||
}, | ||
{ | ||
"type": "{", | ||
"type": "-", | ||
"named": false | ||
}, | ||
{ | ||
"type": "}", | ||
"type": "--", | ||
"named": false | ||
}, | ||
{ | ||
"type": "interface", | ||
"type": "-=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "map", | ||
"type": ".", | ||
"named": false | ||
}, | ||
{ | ||
"type": "chan", | ||
"type": "...", | ||
"named": false | ||
}, | ||
{ | ||
"type": "<-", | ||
"type": "/", | ||
"named": false | ||
}, | ||
{ | ||
"type": ":=", | ||
"type": "/=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "++", | ||
"type": ":", | ||
"named": false | ||
}, | ||
{ | ||
"type": "--", | ||
"type": ":=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "*=", | ||
"type": ";", | ||
"named": false | ||
}, | ||
{ | ||
"type": "/=", | ||
"type": "<", | ||
"named": false | ||
}, | ||
{ | ||
"type": "%=", | ||
"type": "<-", | ||
"named": false | ||
}, | ||
{ | ||
"type": "<<=", | ||
"type": "<<", | ||
"named": false | ||
}, | ||
{ | ||
"type": ">>=", | ||
"type": "<<=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "&=", | ||
"type": "<=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "&^=", | ||
"type": "=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "+=", | ||
"type": "==", | ||
"named": false | ||
}, | ||
{ | ||
"type": "-=", | ||
"type": ">", | ||
"named": false | ||
}, | ||
{ | ||
"type": "|=", | ||
"type": ">=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "^=", | ||
"type": ">>", | ||
"named": false | ||
}, | ||
{ | ||
"type": ":", | ||
"type": ">>=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "fallthrough", | ||
"type": "[", | ||
"named": false | ||
}, | ||
{ | ||
"type": "break", | ||
"type": "]", | ||
"named": false | ||
}, | ||
{ | ||
"type": "continue", | ||
"type": "^", | ||
"named": false | ||
}, | ||
{ | ||
"type": "goto", | ||
"type": "^=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "return", | ||
"named": false | ||
"type": "blank_identifier", | ||
"named": true | ||
}, | ||
{ | ||
"type": "go", | ||
"type": "break", | ||
"named": false | ||
}, | ||
{ | ||
"type": "defer", | ||
"type": "case", | ||
"named": false | ||
}, | ||
{ | ||
"type": "if", | ||
"type": "chan", | ||
"named": false | ||
}, | ||
{ | ||
"type": "else", | ||
"type": "const", | ||
"named": false | ||
}, | ||
{ | ||
"type": "for", | ||
"type": "continue", | ||
"named": false | ||
}, | ||
{ | ||
"type": "range", | ||
"type": "default", | ||
"named": false | ||
}, | ||
{ | ||
"type": "switch", | ||
"type": "defer", | ||
"named": false | ||
}, | ||
{ | ||
"type": "case", | ||
"type": "else", | ||
"named": false | ||
}, | ||
{ | ||
"type": "default", | ||
"named": false | ||
"type": "escape_sequence", | ||
"named": true | ||
}, | ||
{ | ||
"type": "select", | ||
"type": "fallthrough", | ||
"named": false | ||
}, | ||
{ | ||
"type": "new", | ||
"named": false | ||
"type": "false", | ||
"named": true | ||
}, | ||
{ | ||
"type": "make", | ||
"named": false | ||
"type": "field_identifier", | ||
"named": true | ||
}, | ||
{ | ||
"type": "+", | ||
"named": false | ||
"type": "float_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "-", | ||
"type": "for", | ||
"named": false | ||
}, | ||
{ | ||
"type": "!", | ||
"type": "func", | ||
"named": false | ||
}, | ||
{ | ||
"type": "^", | ||
"type": "go", | ||
"named": false | ||
}, | ||
{ | ||
"type": "&", | ||
"type": "goto", | ||
"named": false | ||
}, | ||
{ | ||
"type": "/", | ||
"named": false | ||
"type": "identifier", | ||
"named": true | ||
}, | ||
{ | ||
"type": "%", | ||
"type": "if", | ||
"named": false | ||
}, | ||
{ | ||
"type": "<<", | ||
"named": false | ||
"type": "imaginary_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": ">>", | ||
"type": "import", | ||
"named": false | ||
}, | ||
{ | ||
"type": "&^", | ||
"named": false | ||
"type": "int_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "|", | ||
"type": "interface", | ||
"named": false | ||
}, | ||
{ | ||
"type": "==", | ||
"named": false | ||
"type": "label_name", | ||
"named": true | ||
}, | ||
{ | ||
"type": "!=", | ||
"type": "map", | ||
"named": false | ||
}, | ||
{ | ||
"type": "<", | ||
"named": false | ||
"type": "nil", | ||
"named": true | ||
}, | ||
{ | ||
"type": "<=", | ||
"type": "package", | ||
"named": false | ||
}, | ||
{ | ||
"type": ">", | ||
"named": false | ||
"type": "package_identifier", | ||
"named": true | ||
}, | ||
{ | ||
"type": ">=", | ||
"type": "range", | ||
"named": false | ||
}, | ||
{ | ||
"type": "&&", | ||
"named": false | ||
"type": "raw_string_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "||", | ||
"type": "return", | ||
"named": false | ||
}, | ||
{ | ||
"type": "identifier", | ||
"type": "rune_literal", | ||
"named": true | ||
}, | ||
{ | ||
"type": "raw_string_literal", | ||
"named": true | ||
"type": "select", | ||
"named": false | ||
}, | ||
{ | ||
"type": "\"", | ||
"type": "struct", | ||
"named": false | ||
}, | ||
{ | ||
"type": "escape_sequence", | ||
"named": true | ||
"type": "switch", | ||
"named": false | ||
}, | ||
{ | ||
"type": "int_literal", | ||
"type": "true", | ||
"named": true | ||
}, | ||
{ | ||
"type": "float_literal", | ||
"named": true | ||
"type": "type", | ||
"named": false | ||
}, | ||
{ | ||
"type": "imaginary_literal", | ||
"type": "type_identifier", | ||
"named": true | ||
}, | ||
{ | ||
"type": "rune_literal", | ||
"named": true | ||
"type": "var", | ||
"named": false | ||
}, | ||
{ | ||
"type": "nil", | ||
"named": true | ||
"type": "{", | ||
"named": false | ||
}, | ||
{ | ||
"type": "true", | ||
"named": true | ||
"type": "|", | ||
"named": false | ||
}, | ||
{ | ||
"type": "false", | ||
"named": true | ||
"type": "|=", | ||
"named": false | ||
}, | ||
{ | ||
"type": "comment", | ||
"named": true | ||
"type": "||", | ||
"named": false | ||
}, | ||
{ | ||
"type": "}", | ||
"named": false | ||
} | ||
] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1792051
13
9997