source_file
mod_item
mod "mod"
identifier "ignore"
; ";"
mod_item
mod "mod"
identifier "worktree_settings"
; ";"
use_declaration
use "use"
scoped_use_list
scoped_identifier
scoped_identifier
:: "::"
identifier "ignore"
:: "::"
identifier "gitignore"
:: "::"
use_list
{ "{"
identifier "Gitignore"
, ","
identifier "GitignoreBuilder"
} "}"
; ";"
use_declaration
use "use"
scoped_use_list
identifier "anyhow"
:: "::"
use_list
{ "{"
use_as_clause
identifier "Context"
as "as"
identifier "_"
, ","
identifier "Result"
, ","
identifier "anyhow"
} "}"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "chardetng"
:: "::"
identifier "EncodingDetector"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "clock"
:: "::"
identifier "ReplicaId"
; ";"
use_declaration
use "use"
scoped_use_list
identifier "collections"
:: "::"
use_list
{ "{"
identifier "HashMap"
, ","
identifier "HashSet"
, ","
identifier "VecDeque"
} "}"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "encoding_rs"
:: "::"
identifier "Encoding"
; ";"
use_declaration (+22 nodes collapsed)
use_declaration (+46 nodes collapsed)
use_declaration
use "use"
scoped_identifier
identifier "fuzzy"
:: "::"
identifier "CharBag"
; ";"
use_declaration (+28 nodes collapsed)
use_declaration (+30 nodes collapsed)
use_declaration
use "use"
scoped_identifier
identifier "ignore"
:: "::"
identifier "IgnoreStack"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "language"
:: "::"
identifier "DiskState"
; ";"
use_declaration
use "use"
scoped_identifier
identifier "parking_lot"
:: "::"
identifier "Mutex"
; ";"
use_declaration
use "use"
scoped_use_list
identifier "paths"
:: "::"
use_list
{ "{"
identifier "local_settings_folder_name"
, ","
identifier "local_vscode_folder_name"
} "}"
; ";"
use_declaration (+29 nodes collapsed)
use_declaration (+21 nodes collapsed)
use_declaration
visibility_modifier
pub "pub"
use "use"
scoped_identifier
identifier "settings"
:: "::"
identifier "WorktreeId"
; ";"
use_declaration
use "use"
scoped_use_list
identifier "settings"
:: "::"
use_list
{ "{"
identifier "Settings"
, ","
identifier "SettingsLocation"
, ","
identifier "SettingsStore"
} "}"
; ";"
use_declaration
use "use"
scoped_use_list
identifier "smallvec"
:: "::"
use_list
{ "{"
identifier "SmallVec"
, ","
identifier "smallvec"
} "}"
; ";"
use_declaration
use "use"
scoped_use_list
scoped_identifier
identifier "smol"
:: "::"
identifier "channel"
:: "::"
use_list
{ "{"
self "self"
, ","
identifier "Sender"
} "}"
; ";"
use_declaration (+116 nodes collapsed)
use_declaration (+26 nodes collapsed)
use_declaration
use "use"
scoped_use_list
identifier "text"
:: "::"
use_list
{ "{"
identifier "LineEnding"
, ","
identifier "Rope"
} "}"
; ";"
use_declaration (+34 nodes collapsed)
use_declaration
visibility_modifier
pub "pub"
use "use"
scoped_identifier
identifier "worktree_settings"
:: "::"
identifier "WorktreeSettings"
; ";"
use_declaration
use "use"
scoped_identifier
scoped_identifier
crate "crate"
:: "::"
identifier "ignore"
:: "::"
identifier "IgnoreKind"
; ";"
const_item
visibility_modifier
pub "pub"
const "const"
identifier "FS_WATCH_LATENCY"
: ":"
type_identifier "Duration"
= "="
call_expression
scoped_identifier
identifier "Duration"
:: "::"
identifier "from_millis"
arguments
( "("
integer_literal "100"
) ")"
; ";"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " A set of local or remote files that are being opened as par"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Responsible for tracking related FS (for local)/collab (for"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Stores git repositories data and the diagnostics for the fi"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Has an absolute path, and may be set to be visible in Zed U"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " May correspond to a directory or a single file.\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Possible examples:\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " * a drag and dropped file — may be added as an invisible, \""...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " * a directory opened in Zed — may be added as a visible ent"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment "\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Uses [`Entry`] to track the state of each file/directory, c"...
enum_item (+22 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " An entry, created in the worktree.\n"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
enum_item (+35 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
struct_item (+46 nodes collapsed)
struct_item (+32 nodes collapsed)
impl_item (+108 nodes collapsed)
struct_item (+139 nodes collapsed)
struct_item (+36 nodes collapsed)
struct_item (+39 nodes collapsed)
struct_item (+135 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
) ")"
] "]"
struct_item (+133 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " This path corresponds to the 'content path' of a repository"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " to Zed's project root.\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " In the majority of the cases, this is the folder that conta"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " But if a sub-folder of a git repository is opened, this cor"...
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " project root and the .git folder is located in a parent dir"...
attribute_item (+22 nodes collapsed)
enum_item (+50 nodes collapsed)
impl_item (+184 nodes collapsed)
impl_item (+47 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
) ")"
] "]"
struct_item (+154 nodes collapsed)
struct_item (+108 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
struct_item (+131 nodes collapsed)
impl_item (+97 nodes collapsed)
impl_item (+42 nodes collapsed)
impl_item (+39 nodes collapsed)
impl_item (+39 nodes collapsed)
impl_item (+36 nodes collapsed)
enum_item (+64 nodes collapsed)
struct_item (+56 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
) ")"
] "]"
enum_item (+29 nodes collapsed)
impl_item
impl "impl"
generic_type
type_identifier "EventEmitter"
type_arguments
< "<"
type_identifier "Event"
> ">"
for "for"
type_identifier "Worktree"
declaration_list
{ "{"
} "}"
impl_item (+6056 nodes collapsed)
impl_item
impl "impl"
type_identifier "LocalWorktree"
declaration_list
{ "{"
function_item (+31 nodes collapsed)
function_item (+43 nodes collapsed)
function_item
visibility_modifier
pub "pub"
fn "fn"
identifier "fs_is_case_sensitive"
parameters
( "("
self_parameter
& "&"
self "self"
) ")"
-> "->"
primitive_type "bool"
block
{ "{"
field_expression
self "self"
. "."
field_identifier "fs_case_sensitive"
} "}"
function_item (+149 nodes collapsed)
function_item (+795 nodes collapsed)
function_item (+209 nodes collapsed)
function_item (+956 nodes collapsed)
function_item (+124 nodes collapsed)
function_item (+27 nodes collapsed)
function_item (+27 nodes collapsed)
function_item
fn "fn"
identifier "load_binary_file"
parameters (+26 nodes collapsed)
-> "->"
generic_type
type_identifier "Task"
type_arguments
< "<"
generic_type
type_identifier "Result"
type_arguments
< "<"
type_identifier "LoadedBinaryFile"
> ">"
> ">"
block
{ "{"
let_declaration
let "let"
identifier "path"
= "="
call_expression
scoped_identifier
identifier "Arc"
:: "::"
identifier "from"
arguments
( "("
identifier "path"
) ")"
; ";"
let_declaration
let "let"
identifier "abs_path"
= "="
call_expression
field_expression
self "self"
. "."
field_identifier "absolutize"
arguments
( "("
reference_expression
& "&"
identifier "path"
) ")"
; ";"
let_declaration
let "let"
identifier "fs"
= "="
call_expression
field_expression
field_expression
self "self"
. "."
field_identifier "fs"
. "."
field_identifier "clone"
arguments
( "("
) ")"
; ";"
let_declaration (+25 nodes collapsed)
let_declaration
let "let"
identifier "is_private"
= "="
call_expression
field_expression
self "self"
. "."
field_identifier "is_path_private"
arguments
( "("
reference_expression
& "&"
identifier "path"
) ")"
; ";"
let_declaration
let "let"
identifier "worktree"
= "="
call_expression
field_expression
identifier "cx"
. "."
field_identifier "weak_entity"
arguments
( "("
) ")"
; ";"
call_expression
field_expression
identifier "cx"
. "."
field_identifier "background_spawn"
arguments
( "("
async_block
async "async"
move "move"
block
{ "{"
let_declaration (+21 nodes collapsed)
let_declaration (+26 nodes collapsed)
let_declaration
let "let"
identifier "file"
= "="
match_expression
match "match"
try_expression
await_expression
identifier "entry"
. "."
await "await"
? "?"
match_block
{ "{"
match_arm
match_pattern
tuple_struct_pattern
identifier "Some"
( "("
identifier "entry"
) ")"
=> "=>"
call_expression
scoped_identifier
identifier "File"
:: "::"
identifier "for_entry"
arguments
( "("
identifier "entry"
, ","
identifier "worktree"
) ")"
, ","
match_arm
match_pattern
identifier "None"
=> "=>"
block
{ "{"
let_declaration (+71 nodes collapsed)
call_expression
scoped_identifier
identifier "Arc"
:: "::"
identifier "new"
arguments
( "("
struct_expression
type_identifier "File"
field_initializer_list
{ "{"
field_initializer
field_identifier "entry_id"
: ":"
identifier "None"
, ","
shorthand_field_initializer
identifier "worktree"
, ","
shorthand_field_initializer
identifier "path"
, ","
field_initializer
field_identifier "disk_state"
: ":"
struct_expression
scoped_type_identifier
identifier "DiskState"
:: "::"
type_identifier "Present"
field_initializer_list
{ "{"
field_initializer
field_identifier "mtime"
: ":"
field_expression
identifier "metadata"
. "."
field_identifier "mtime"
, ","
} "}"
, ","
field_initializer
field_identifier "is_local"
: ":"
boolean_literal
true "true"
, ","
shorthand_field_initializer
identifier "is_private"
, ","
} "}"
) ")"
} "}"
} "}"
; ";"
call_expression
identifier "Ok"
arguments
( "("
struct_expression
type_identifier "LoadedBinaryFile"
field_initializer_list
{ "{"
shorthand_field_initializer
identifier "file"
, ","
shorthand_field_initializer
identifier "content"
} "}"
) ")"
} "}"
) ")"
} "}"
attribute_item
# "#"
[ "["
attribute
scoped_identifier
identifier "ztracing"
:: "::"
identifier "instrument"
token_tree
( "("
identifier "skip_all"
) ")"
] "]"
function_item
fn "fn"
identifier "load_file"
parameters (+25 nodes collapsed)
-> "->"
generic_type
type_identifier "Task"
type_arguments
< "<"
generic_type
type_identifier "Result"
type_arguments
< "<"
type_identifier "LoadedFile"
> ">"
> ">"
block
{ "{"
let_declaration
let "let"
identifier "path"
= "="
call_expression
scoped_identifier
identifier "Arc"
:: "::"
identifier "from"
arguments
( "("
identifier "path"
) ")"
; ";"
let_declaration
let "let"
identifier "abs_path"
= "="
call_expression
field_expression
self "self"
. "."
field_identifier "absolutize"
arguments
( "("
reference_expression
& "&"
identifier "path"
) ")"
; ";"
let_declaration
let "let"
identifier "fs"
= "="
call_expression
field_expression
field_expression
self "self"
. "."
field_identifier "fs"
. "."
field_identifier "clone"
arguments
( "("
) ")"
; ";"
let_declaration (+25 nodes collapsed)
let_declaration (+21 nodes collapsed)
let_declaration
let "let"
identifier "this"
= "="
call_expression
field_expression
identifier "cx"
. "."
field_identifier "weak_entity"
arguments
( "("
) ")"
; ";"
call_expression
field_expression
identifier "cx"
. "."
field_identifier "background_spawn"
arguments
( "("
async_block
async "async"
move "move"
block
{ "{"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
expression_statement (+79 nodes collapsed)
let_declaration (+34 nodes collapsed)
let_declaration (+26 nodes collapsed)
let_declaration
let "let"
identifier "file"
= "="
match_expression
match "match"
try_expression
await_expression
identifier "entry"
. "."
await "await"
? "?"
match_block
{ "{"
match_arm
match_pattern
tuple_struct_pattern
identifier "Some"
( "("
identifier "entry"
) ")"
=> "=>"
call_expression
scoped_identifier
identifier "File"
:: "::"
identifier "for_entry"
arguments
( "("
identifier "entry"
, ","
identifier "worktree"
) ")"
, ","
match_arm
match_pattern
identifier "None"
=> "=>"
block
{ "{"
let_declaration (+71 nodes collapsed)
call_expression
scoped_identifier
identifier "Arc"
:: "::"
identifier "new"
arguments
( "("
struct_expression
type_identifier "File"
field_initializer_list
{ "{"
field_initializer
field_identifier "entry_id"
: ":"
identifier "None"
, ","
shorthand_field_initializer
identifier "worktree"
, ","
shorthand_field_initializer
identifier "path"
, ","
field_initializer
field_identifier "disk_state"
: ":"
struct_expression
scoped_type_identifier
identifier "DiskState"
:: "::"
type_identifier "Present"
field_initializer_list
{ "{"
field_initializer
field_identifier "mtime"
: ":"
field_expression
identifier "metadata"
. "."
field_identifier "mtime"
, ","
} "}"
, ","
field_initializer
field_identifier "is_local"
: ":"
boolean_literal
true "true"
, ","
shorthand_field_initializer
identifier "is_private"
, ","
} "}"
) ")"
} "}"
} "}"
; ";"
call_expression (+22 nodes collapsed)
} "}"
) ")"
} "}"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Find the lowest path in the worktree's datastructures that "...
function_item (+120 nodes collapsed)
function_item (+581 nodes collapsed)
function_item
visibility_modifier
pub "pub"
fn "fn"
identifier "write_file"
parameters (+54 nodes collapsed)
-> "->"
generic_type
type_identifier "Task"
type_arguments
< "<"
generic_type
type_identifier "Result"
type_arguments
< "<"
generic_type
type_identifier "Arc"
type_arguments
< "<"
type_identifier "File"
> ">"
> ">"
> ">"
block
{ "{"
let_declaration
let "let"
identifier "fs"
= "="
call_expression
field_expression
field_expression
self "self"
. "."
field_identifier "fs"
. "."
field_identifier "clone"
arguments
( "("
) ")"
; ";"
let_declaration
let "let"
identifier "is_private"
= "="
call_expression
field_expression
self "self"
. "."
field_identifier "is_path_private"
arguments
( "("
reference_expression
& "&"
identifier "path"
) ")"
; ";"
let_declaration
let "let"
identifier "abs_path"
= "="
call_expression
field_expression
self "self"
. "."
field_identifier "absolutize"
arguments
( "("
reference_expression
& "&"
identifier "path"
) ")"
; ";"
let_declaration (+567 nodes collapsed)
call_expression
field_expression
identifier "cx"
. "."
field_identifier "spawn"
arguments
( "("
closure_expression
async "async"
move "move"
closure_parameters
| "|"
identifier "this"
, ","
identifier "cx"
| "|"
block
{ "{"
expression_statement
try_expression
await_expression
identifier "write"
. "."
await "await"
? "?"
; ";"
let_declaration (+66 nodes collapsed)
let_declaration (+26 nodes collapsed)
expression_statement
if_expression
if "if"
let_condition
let "let"
tuple_struct_pattern
identifier "Some"
( "("
identifier "entry"
) ")"
= "="
identifier "entry"
block
{ "{"
call_expression
identifier "Ok"
arguments
( "("
call_expression
scoped_identifier
identifier "File"
:: "::"
identifier "for_entry"
arguments
( "("
identifier "entry"
, ","
identifier "worktree"
) ")"
) ")"
} "}"
else_clause
else "else"
block
{ "{"
let_declaration (+71 nodes collapsed)
call_expression
identifier "Ok"
arguments
( "("
call_expression
scoped_identifier
identifier "Arc"
:: "::"
identifier "new"
arguments
( "("
struct_expression
type_identifier "File"
field_initializer_list
{ "{"
shorthand_field_initializer
identifier "worktree"
, ","
shorthand_field_initializer
identifier "path"
, ","
field_initializer
field_identifier "disk_state"
: ":"
struct_expression
scoped_type_identifier
identifier "DiskState"
:: "::"
type_identifier "Present"
field_initializer_list
{ "{"
field_initializer
field_identifier "mtime"
: ":"
field_expression
identifier "metadata"
. "."
field_identifier "mtime"
, ","
} "}"
, ","
field_initializer
field_identifier "entry_id"
: ":"
identifier "None"
, ","
field_initializer
field_identifier "is_local"
: ":"
boolean_literal
true "true"
, ","
shorthand_field_initializer
identifier "is_private"
, ","
} "}"
) ")"
) ")"
} "}"
} "}"
) ")"
} "}"
function_item (+419 nodes collapsed)
function_item (+784 nodes collapsed)
function_item (+136 nodes collapsed)
function_item (+135 nodes collapsed)
function_item (+94 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "feature"
= "="
string_literal
" "\""
string_content "test-support"
" "\""
) ")"
] "]"
function_item (+44 nodes collapsed)
function_item (+89 nodes collapsed)
function_item (+336 nodes collapsed)
function_item (+515 nodes collapsed)
function_item (+48 nodes collapsed)
function_item (+197 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "feature"
= "="
string_literal
" "\""
string_content "test-support"
" "\""
) ")"
] "]"
function_item (+78 nodes collapsed)
} "}"
impl_item (+1926 nodes collapsed)
impl_item (+3486 nodes collapsed)
impl_item (+2614 nodes collapsed)
impl_item (+2765 nodes collapsed)
function_item (+176 nodes collapsed)
function_item (+189 nodes collapsed)
impl_item (+76 nodes collapsed)
impl_item (+39 nodes collapsed)
impl_item (+39 nodes collapsed)
impl_item (+58 nodes collapsed)
impl_item (+399 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
, ","
identifier "PartialEq"
) ")"
] "]"
struct_item (+65 nodes collapsed)
impl_item (+543 nodes collapsed)
impl_item (+312 nodes collapsed)
impl_item
impl "impl"
type_identifier "File"
declaration_list
{ "{"
function_item
visibility_modifier
pub "pub"
fn "fn"
identifier "for_entry"
parameters
( "("
parameter
identifier "entry"
: ":"
type_identifier "Entry"
, ","
parameter
identifier "worktree"
: ":"
generic_type
type_identifier "Entity"
type_arguments
< "<"
type_identifier "Worktree"
> ">"
) ")"
-> "->"
generic_type
type_identifier "Arc"
type_arguments
< "<"
type_identifier "Self"
> ">"
block
{ "{"
call_expression
scoped_identifier
identifier "Arc"
:: "::"
identifier "new"
arguments
( "("
struct_expression
type_identifier "Self"
field_initializer_list
{ "{"
shorthand_field_initializer
identifier "worktree"
, ","
field_initializer
field_identifier "path"
: ":"
call_expression
field_expression
field_expression
identifier "entry"
. "."
field_identifier "path"
. "."
field_identifier "clone"
arguments
( "("
) ")"
, ","
field_initializer
field_identifier "disk_state"
: ":"
if_expression
if "if"
let_condition
let "let"
tuple_struct_pattern
identifier "Some"
( "("
identifier "mtime"
) ")"
= "="
field_expression
identifier "entry"
. "."
field_identifier "mtime"
block
{ "{"
struct_expression
scoped_type_identifier
identifier "DiskState"
:: "::"
type_identifier "Present"
field_initializer_list
{ "{"
shorthand_field_initializer
identifier "mtime"
} "}"
} "}"
else_clause
else "else"
block
{ "{"
scoped_identifier
identifier "DiskState"
:: "::"
identifier "New"
} "}"
, ","
field_initializer
field_identifier "entry_id"
: ":"
call_expression
identifier "Some"
arguments
( "("
field_expression
identifier "entry"
. "."
field_identifier "id"
) ")"
, ","
field_initializer
field_identifier "is_local"
: ":"
boolean_literal
true "true"
, ","
field_initializer
field_identifier "is_private"
: ":"
field_expression
identifier "entry"
. "."
field_identifier "is_private"
, ","
} "}"
) ")"
} "}"
function_item
visibility_modifier
pub "pub"
fn "fn"
identifier "from_proto"
parameters (+31 nodes collapsed)
-> "->"
generic_type
type_identifier "Result"
type_arguments
< "<"
type_identifier "Self"
> ">"
block
{ "{"
let_declaration (+41 nodes collapsed)
expression_statement (+26 nodes collapsed)
let_declaration
let "let"
identifier "disk_state"
= "="
if_expression
if "if"
field_expression
identifier "proto"
. "."
field_identifier "is_historic"
block
{ "{"
struct_expression
scoped_type_identifier
identifier "DiskState"
:: "::"
type_identifier "Historic"
field_initializer_list
{ "{"
field_initializer
field_identifier "was_deleted"
: ":"
field_expression
identifier "proto"
. "."
field_identifier "is_deleted"
, ","
} "}"
} "}"
else_clause
else "else"
if_expression
if "if"
field_expression
identifier "proto"
. "."
field_identifier "is_deleted"
block
{ "{"
scoped_identifier
identifier "DiskState"
:: "::"
identifier "Deleted"
} "}"
else_clause
else "else"
if_expression
if "if"
let_condition (+25 nodes collapsed)
block
{ "{"
struct_expression
scoped_type_identifier
identifier "DiskState"
:: "::"
type_identifier "Present"
field_initializer_list
{ "{"
shorthand_field_initializer
identifier "mtime"
} "}"
} "}"
else_clause
else "else"
block
{ "{"
scoped_identifier
identifier "DiskState"
:: "::"
identifier "New"
} "}"
; ";"
call_expression (+78 nodes collapsed)
} "}"
function_item (+99 nodes collapsed)
function_item (+42 nodes collapsed)
function_item (+49 nodes collapsed)
} "}"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Debug"
, ","
identifier "PartialEq"
, ","
identifier "Eq"
) ")"
] "]"
struct_item (+226 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Copy"
, ","
identifier "Debug"
, ","
identifier "PartialEq"
, ","
identifier "Eq"
) ")"
] "]"
enum_item
visibility_modifier
pub "pub"
enum "enum"
type_identifier "EntryKind"
enum_variant_list
{ "{"
enum_variant
identifier "UnloadedDir"
, ","
enum_variant
identifier "PendingDir"
, ","
enum_variant
identifier "Dir"
, ","
enum_variant
identifier "File"
, ","
} "}"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Copy"
, ","
identifier "Debug"
, ","
identifier "PartialEq"
) ")"
] "]"
enum_item (+58 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Debug"
, ","
identifier "PartialEq"
, ","
identifier "Eq"
) ")"
] "]"
struct_item (+130 nodes collapsed)
type_item (+28 nodes collapsed)
type_item
visibility_modifier
pub "pub"
type "type"
type_identifier "UpdatedGitRepositoriesSet"
= "="
generic_type
type_identifier "Arc"
type_arguments
< "<"
array_type
[ "["
type_identifier "UpdatedGitRepository"
] "]"
> ">"
; ";"
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Debug"
) ")"
] "]"
struct_item (+27 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Debug"
) ")"
] "]"
struct_item (+32 nodes collapsed)
impl_item (+181 nodes collapsed)
impl_item (+170 nodes collapsed)
impl_item (+101 nodes collapsed)
impl_item (+113 nodes collapsed)
impl_item (+133 nodes collapsed)
impl_item (+140 nodes collapsed)
impl_item (+268 nodes collapsed)
impl_item (+95 nodes collapsed)
impl_item (+164 nodes collapsed)
impl_item (+50 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Debug"
) ")"
] "]"
struct_item (+38 nodes collapsed)
impl_item (+64 nodes collapsed)
impl_item (+117 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Debug"
) ")"
] "]"
struct_item (+31 nodes collapsed)
impl_item (+53 nodes collapsed)
impl_item (+38 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Debug"
, ","
identifier "Default"
) ")"
] "]"
struct_item
struct "struct"
type_identifier "PathEntrySummary"
field_declaration_list
{ "{"
field_declaration
field_identifier "max_id"
: ":"
type_identifier "ProjectEntryId"
, ","
} "}"
impl_item (+62 nodes collapsed)
impl_item (+93 nodes collapsed)
attribute_item (+22 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "PathKey"
ordered_field_declaration_list
( "("
visibility_modifier
pub "pub"
generic_type
type_identifier "Arc"
type_arguments
< "<"
type_identifier "RelPath"
> ">"
) ")"
; ";"
impl_item (+39 nodes collapsed)
impl_item (+101 nodes collapsed)
struct_item (+114 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Copy"
, ","
identifier "Clone"
, ","
identifier "PartialEq"
) ")"
] "]"
enum_item
enum "enum"
type_identifier "BackgroundScannerPhase"
enum_variant_list
{ "{"
enum_variant
identifier "InitialScan"
, ","
enum_variant
identifier "EventsReceivedDuringInitialScan"
, ","
enum_variant
identifier "Events"
, ","
} "}"
impl_item (+12325 nodes collapsed)
function_item (+552 nodes collapsed)
function_item (+1118 nodes collapsed)
function_item (+113 nodes collapsed)
function_item (+75 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
struct_item (+56 nodes collapsed)
struct_item (+41 nodes collapsed)
trait_item (+140 nodes collapsed)
impl_item (+1331 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Debug"
) ")"
] "]"
struct_item (+43 nodes collapsed)
impl_item (+197 nodes collapsed)
impl_item (+156 nodes collapsed)
impl_item (+63 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
struct_item (+70 nodes collapsed)
impl_item (+711 nodes collapsed)
impl_item (+100 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
, ","
identifier "Clone"
, ","
identifier "Copy"
) ")"
] "]"
enum_item (+39 nodes collapsed)
impl_item (+106 nodes collapsed)
impl_item (+106 nodes collapsed)
impl_item (+106 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Debug"
) ")"
] "]"
enum_item (+53 nodes collapsed)
impl_item (+201 nodes collapsed)
impl_item (+84 nodes collapsed)
impl_item (+92 nodes collapsed)
struct_item (+29 nodes collapsed)
struct_item (+37 nodes collapsed)
impl_item (+122 nodes collapsed)
impl_item (+225 nodes collapsed)
impl_item (+335 nodes collapsed)
attribute_item (+26 nodes collapsed)
struct_item
visibility_modifier
pub "pub"
struct "struct"
type_identifier "ProjectEntryId"
ordered_field_declaration_list
( "("
primitive_type "usize"
) ")"
; ";"
impl_item (+167 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "cfg"
token_tree
( "("
identifier "feature"
= "="
string_literal
" "\""
string_content "test-support"
" "\""
) ")"
] "]"
impl_item (+65 nodes collapsed)
function_item (+88 nodes collapsed)
function_item (+371 nodes collapsed)
struct_item
struct "struct"
type_identifier "NullWatcher"
; ";"
impl_item (+83 nodes collapsed)
const_item
const "const"
identifier "FILE_ANALYSIS_BYTES"
: ":"
primitive_type "usize"
= "="
integer_literal "1024"
; ";"
function_item (+396 nodes collapsed)
function_item (+92 nodes collapsed)
function_item (+566 nodes collapsed)
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "PartialEq"
) ")"
] "]"
enum_item
enum "enum"
type_identifier "ByteContent"
enum_variant_list
{ "{"
enum_variant
identifier "Utf16Le"
, ","
enum_variant
identifier "Utf16Be"
, ","
enum_variant
identifier "Binary"
, ","
enum_variant
identifier "Unknown"
, ","
} "}"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
function_item (+391 nodes collapsed)
function_item (+191 nodes collapsed)