80 lines
3.8 KiB
Plaintext
80 lines
3.8 KiB
Plaintext
(program [0, 0] - [43, 0]
|
|
(import_statement [0, 0] - [0, 45]
|
|
(import_clause [0, 7] - [0, 15]
|
|
(named_imports [0, 7] - [0, 15]
|
|
(import_specifier [0, 9] - [0, 13]
|
|
name: (identifier [0, 9] - [0, 13]))))
|
|
source: (string [0, 21] - [0, 44]
|
|
(string_fragment [0, 22] - [0, 43])))
|
|
(export_statement [2, 0] - [31, 1]
|
|
declaration: (function_declaration [2, 7] - [31, 1]
|
|
name: (identifier [2, 16] - [2, 40])
|
|
parameters: (formal_parameters [2, 40] - [2, 73]
|
|
(required_parameter [2, 41] - [2, 56]
|
|
pattern: (identifier [2, 41] - [2, 48])
|
|
type: (type_annotation [2, 48] - [2, 56]
|
|
(predefined_type [2, 50] - [2, 56])))
|
|
(required_parameter [2, 58] - [2, 72]
|
|
pattern: (identifier [2, 58] - [2, 65])
|
|
value: (true [2, 68] - [2, 72])))
|
|
body: (statement_block [2, 74] - [31, 1]
|
|
(lexical_declaration [3, 2] - [3, 58]
|
|
(variable_declarator [3, 8] - [3, 57]
|
|
name: (identifier [3, 8] - [3, 15])
|
|
value: (ternary_expression [3, 18] - [3, 57]
|
|
condition: (identifier [3, 18] - [3, 25])
|
|
consequence: (string [3, 28] - [3, 40]
|
|
(string_fragment [3, 29] - [3, 39]))
|
|
alternative: (string [3, 43] - [3, 57]
|
|
(string_fragment [3, 44] - [3, 56])))))
|
|
(lexical_declaration [4, 2] - [4, 42]
|
|
(variable_declarator [4, 8] - [4, 41]
|
|
name: (identifier [4, 8] - [4, 12])
|
|
value: (ternary_expression [4, 15] - [4, 41]
|
|
condition: (identifier [4, 15] - [4, 22])
|
|
consequence: (string [4, 25] - [4, 33]
|
|
(string_fragment [4, 26] - [4, 32]))
|
|
alternative: (string [4, 36] - [4, 41]
|
|
(string_fragment [4, 37] - [4, 40])))))
|
|
(comment [6, 2] - [6, 90])
|
|
(return_statement [7, 2] - [30, 4]
|
|
(call_expression [7, 9] - [30, 3]
|
|
function: (identifier [7, 9] - [7, 13])
|
|
arguments: (template_string [7, 13] - [30, 3]
|
|
(string_fragment [7, 14] - [11, 39])
|
|
(template_substitution [11, 39] - [11, 49]
|
|
(identifier [11, 41] - [11, 48]))
|
|
(string_fragment [11, 49] - [13, 14])
|
|
(template_substitution [13, 14] - [13, 21]
|
|
(identifier [13, 16] - [13, 20]))
|
|
(string_fragment [13, 21] - [14, 34])
|
|
(template_substitution [14, 34] - [14, 44]
|
|
(identifier [14, 36] - [14, 43]))
|
|
(string_fragment [14, 44] - [30, 2])))))))
|
|
(export_statement [33, 0] - [42, 1]
|
|
declaration: (function_declaration [33, 7] - [42, 1]
|
|
name: (identifier [33, 16] - [33, 40])
|
|
parameters: (formal_parameters [33, 40] - [33, 75]
|
|
(required_parameter [33, 41] - [33, 56]
|
|
pattern: (identifier [33, 41] - [33, 48])
|
|
type: (type_annotation [33, 48] - [33, 56]
|
|
(predefined_type [33, 50] - [33, 56])))
|
|
(required_parameter [33, 58] - [33, 74]
|
|
pattern: (identifier [33, 58] - [33, 66])
|
|
type: (type_annotation [33, 66] - [33, 74]
|
|
(predefined_type [33, 68] - [33, 74]))))
|
|
body: (statement_block [33, 76] - [42, 1]
|
|
(comment [34, 2] - [34, 62])
|
|
(comment [35, 2] - [35, 93])
|
|
(return_statement [36, 2] - [41, 4]
|
|
(call_expression [36, 9] - [41, 3]
|
|
function: (identifier [36, 9] - [36, 13])
|
|
arguments: (template_string [36, 13] - [41, 3]
|
|
(string_fragment [36, 14] - [37, 11])
|
|
(template_substitution [37, 11] - [37, 21]
|
|
(identifier [37, 13] - [37, 20]))
|
|
(string_fragment [37, 21] - [39, 6])
|
|
(template_substitution [39, 6] - [39, 17]
|
|
(identifier [39, 8] - [39, 16]))
|
|
(string_fragment [39, 17] - [41, 2]))))))))
|