block
{ "{"
let_declaration (+32 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "allow"
token_tree
( "("
identifier "unused_variables"
) ")"
] "]"
let_declaration
let "let"
identifier "running_tests"
= "="
identifier "test"
; ";"
let_declaration (+58 nodes collapsed)
let_declaration (+73 nodes collapsed)
let_declaration (+74 nodes collapsed)
expression_statement (+27 nodes collapsed)
let_declaration (+324 nodes collapsed)
let_declaration
let "let"
identifier "out_dir"
= "="
try_expression
call_expression
identifier "ensure_out_dir"
arguments
( "("
) ")"
? "?"
; ";"
let_declaration (+295 nodes collapsed)
let_declaration (+184 nodes collapsed)
let_declaration (+62 nodes collapsed)
let_declaration (+78 nodes collapsed)
let_declaration (+74 nodes collapsed)
let_declaration (+130 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
] "]"
let_declaration (+481 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "not"
token_tree
( "("
identifier "target_os"
= "="
string_literal
" "\""
string_content "macos"
" "\""
) ")"
) ")"
] "]"
let_declaration
let "let"
identifier "maybe_embed_plist_block"
= "="
macro_invocation
identifier "quote"
! "!"
token_tree
( "("
) ")"
; ";"
let_declaration (+413 nodes collapsed)
let_declaration
let "let"
identifier "acl_file_path"
= "="
call_expression
field_expression
identifier "out_dir"
. "."
field_identifier "join"
arguments
( "("
identifier "ACL_MANIFESTS_FILE_NAME"
) ")"
; ";"
let_declaration (+90 nodes collapsed)
let_declaration
let "let"
identifier "capabilities_file_path"
= "="
call_expression
field_expression
identifier "out_dir"
. "."
field_identifier "join"
arguments
( "("
identifier "CAPABILITIES_FILE_NAME"
) ")"
; ";"
let_declaration
let "let"
identifier "capabilities_from_files"
= "="
if_expression
if "if"
call_expression
field_expression
identifier "capabilities_file_path"
. "."
field_identifier "exists"
arguments
( "("
) ")"
block
{ "{"
let_declaration
let "let"
identifier "capabilities_json"
= "="
call_expression
field_expression
call_expression
scoped_identifier
scoped_identifier
identifier "std"
:: "::"
identifier "fs"
:: "::"
identifier "read_to_string"
arguments
( "("
reference_expression
& "&"
identifier "capabilities_file_path"
) ")"
. "."
field_identifier "expect"
arguments
( "("
string_literal
" "\""
string_content "failed to read capabilities"
" "\""
) ")"
; ";"
call_expression
field_expression
call_expression
scoped_identifier
identifier "serde_json"
:: "::"
identifier "from_str"
arguments
( "("
reference_expression
& "&"
identifier "capabilities_json"
) ")"
. "."
field_identifier "expect"
arguments
( "("
string_literal
" "\""
string_content "failed to parse capabilities"
" "\""
) ")"
} "}"
else_clause
else "else"
block
{ "{"
call_expression
scoped_identifier
identifier "Default"
:: "::"
identifier "default"
arguments
( "("
) ")"
} "}"
; ";"
let_declaration
let "let"
identifier "capabilities"
= "="
call_expression
field_expression
call_expression
identifier "get_capabilities"
arguments
( "("
reference_expression
& "&"
identifier "config"
, ","
identifier "capabilities_from_files"
, ","
call_expression
field_expression
identifier "additional_capabilities"
. "."
field_identifier "as_deref"
arguments
( "("
) ")"
, ","
) ")"
. "."
field_identifier "unwrap"
arguments
( "("
) ")"
; ";"
let_declaration (+31 nodes collapsed)
let_declaration (+31 nodes collapsed)
let_declaration (+24 nodes collapsed)
let_declaration (+145 nodes collapsed)
let_declaration (+53 nodes collapsed)
let_declaration (+82 nodes collapsed)
call_expression (+119 nodes collapsed)
} "}"