MCPcopy Create free account

hub / github.com/Canop/codesort / functions

Functions103 in github.com/Canop/codesort

↓ 45 callersMethodpush
( &mut self, brace: char, )
src/brace_stack.rs:9
↓ 42 callersMethodprint_debug
(&self)
src/focused.rs:11
↓ 31 callersMethodlen
(&self)
src/loc_list.rs:48
↓ 26 callersMethodto_index
(&self)
src/line_number.rs:60
↓ 19 callersMethodsort
(self)
src/focused.rs:16
↓ 14 callersMethodinto_blocks
(self)
src/loc_list.rs:334
↓ 11 callersMethodfocus_around_line_index
( self, line_idx: LineIndex, )
src/loc_list.rs:110
↓ 10 callersMethoddepth
(&self)
src/brace_stack.rs:34
↓ 7 callersMethodis_sortable
(&self)
src/loc.rs:58
↓ 7 callersMethodrange_around_line_index
( &self, line_idx: LineIndex, )
src/loc_list.rs:354
↓ 7 callersFunctionread
(mut reader: R)
src/analyzers/rust.rs:43
↓ 6 callersFunctionchar_is_brace
(c: char)
src/brace_stack.rs:45
↓ 6 callersMethodcontains
( self, line: LineNumber, )
src/line_number.rs:75
↓ 6 callersMethodfocus
( mut self, range: LineNumberRange, )
src/loc_list.rs:86
↓ 6 callersMethodnext
(&mut self)
src/line_number.rs:89
↓ 6 callersMethodstarts_with
Whether the deindented content starts with the given string
src/loc.rs:43
↓ 4 callersMethodcount_blank_lines_at_start
(&self)
src/loc_list.rs:170
↓ 4 callersMethodmin_depth
Either the depth at start, or the depth at end, whichever is smaller
src/loc.rs:39
↓ 4 callersMethodsatisfies
( &self, wish: &Wish, )
src/gifts.rs:33
↓ 3 callersMethodfocus_all
(self)
src/loc_list.rs:79
↓ 3 callersMethodfull_range
If the list isn't empty, return a range covering it wholly
src/loc_list.rs:174
↓ 3 callersMethodis_blank
(&self)
src/loc.rs:53
↓ 3 callersMethodis_complete
(&self)
src/loc_list.rs:282
↓ 3 callersMethodsort_range
( &mut self, range: LineNumberRange, )
src/loc_list.rs:52
↓ 2 callersMethodapply
( self, blocks: &mut [LocList], )
src/spacing.rs:30
↓ 2 callersMethodblock_ranges_in_range
Assuming the provided range you pass is valid enough, give the ranges of the blocks in it.
src/loc_list.rs:288
↓ 2 callersMethodfocus_around_line_number
( self, line_number: LineNumber, )
src/loc_list.rs:117
↓ 2 callersMethodhas_content
(&self)
src/loc_list.rs:229
↓ 2 callersMethodis_in
( &self, brace: char, )
src/brace_stack.rs:37
↓ 2 callersMethodis_range_complete
Warning: doesn't check whether a bigger range wouldn't be complete too, so a range being complete doesn't mean it is a block.
src/loc_list.rs:254
↓ 2 callersMethodprint_range_debug
( &self, label: &str, range: LineNumberRange, )
src/loc_list.rs:130
↓ 2 callersMethodrange_around_line_number
( &self, line_number: LineNumber, )
src/loc_list.rs:348
↓ 2 callersMethodrange_has_content
( &self, range: LineNumberRange, )
src/loc_list.rs:204
↓ 1 callersMethodanalyzer
(self)
src/analyzers/mod.rs:31
↓ 1 callersMethodblock_range_of_line_number
Find the block the line is part of For example, if you give the opening line of a struct (i.e a like like `pub struct Foo {`), you'll get the whole s
src/loc_list.rs:317
↓ 1 callersFunctionchar_is_gift
(c: char)
src/analyzers/rust.rs:14
↓ 1 callersMethodcmp
( &self, other: &Self, )
src/loc.rs:73
↓ 1 callersMethodcmp
( &self, other: &Self, )
src/loc_list.rs:417
↓ 1 callersFunctionfind_rs_files
( dir: &'d Dir<'d>, files: &mut Vec<&'d include_dir::File<'d>>, )
tests/rust_self.rs:12
↓ 1 callersFunctionget_all_rust_files
( root: PathBuf, include: &[String], )
examples/list-invalid-files/main.rs:26
↓ 1 callersFunctionget_all_rust_files
( root: PathBuf, include: &[String], exclude: &[String], )
examples/sort-all-enums/main.rs:40
↓ 1 callersMethodlang
(&self)
src/cli/args.rs:77
↓ 1 callersMethodlast_line_in_range_with_content
( &self, range: LineNumberRange, )
src/loc_list.rs:242
↓ 1 callersMethodline_at_number
( &self, line_number: LineNumber, )
src/loc_list.rs:124
↓ 1 callersMethodprint_help
(&self)
src/cli/args.rs:66
↓ 1 callersMethodrange_exists
Check whether the range is valid and contains at least one line
src/loc_list.rs:196
↓ 1 callersFunctionrun
Run the cli application
src/cli/mod.rs:17
↓ 1 callersMethodsort_around_line_index
( &mut self, line_index: LineIndex, )
src/loc_list.rs:64
↓ 1 callersFunctiontoken_wishes
Return what the token calls for: we don't want to have blocks between this token and the character(s) they wish for, at the same depth. Only one wish
src/analyzers/rust.rs:30
↓ 1 callersMethodtrimmed_range
( &self, mut range: LineNumberRange, )
src/loc_list.rs:158
↓ 1 callersMethodwrite_file
( &self, path: P, )
src/loc_list.rs:40
Methodcheck_range
( &self, range: LineNumberRange, )
src/loc_list.rs:184
Methoddetect
(path: &Path)
src/analyzers/mod.rs:22
Methodeq
( &self, other: &Self, )
src/loc.rs:64
Methodeq
( &self, other: &Self, )
src/loc_list.rs:397
Methodfmt
( &self, f: &mut fmt::Formatter<'_>, )
src/loc.rs:90
Methodfmt
( &self, f: &mut fmt::Formatter<'_>, )
src/loc_list.rs:385
Methodfmt
( &self, f: &mut std::fmt::Formatter<'_>, )
src/line_number.rs:112
Methodfrom
(c: char)
src/gifts.rs:8
Methodfrom_index
(index: LineIndex)
src/line_number.rs:63
Methodfrom_str
(s: &str)
src/line_number.rs:34
Methodinto_iter
(self)
src/line_number.rs:103
Methodlast_line_with_content
(&self)
src/loc_list.rs:239
Methodlast_significant_char
the last character which is not a whitespace or part of a comment
src/loc.rs:50
Methodlast_significant_char
(&self)
src/loc_list.rs:233
Functionmain
()
src/main.rs:3
Functionmain
()
examples/list-invalid-files/main.rs:67
Functionmain
()
examples/sort-all-enums/main.rs:86
Functionmain
()
examples/explain/main.rs:20
Methodnew
(number: usize)
src/line_number.rs:57
Methodof_line
Make a range spanning one line
src/line_number.rs:72
Methodpartial_cmp
( &self, other: &Self, )
src/loc.rs:81
Methodpartial_cmp
( &self, other: &Self, )
src/loc_list.rs:446
Methodprint_debug
( &self, label: &str, )
src/loc_list.rs:148
Functionread
(mut reader: R)
src/analyzers/java.rs:12
Functionread
(mut reader: R)
src/analyzers/javascript.rs:13
Methodread
( reader: R, lang: Language, )
src/loc_list.rs:21
Methodread
( &self, mut reader: R, )
src/analyzers/mod.rs:51
Methodread_file
( path: P, lang: Language, )
src/loc_list.rs:33
Methodread_str
( s: &str, lang: Language, )
src/loc_list.rs:27
Methodrecognize
(blocks: &[LocList])
src/spacing.rs:16
Methodsort_around_line_number
( &mut self, line_number: LineNumber, )
src/loc_list.rs:71
Functiontest_balance_javascript
()
src/analyzers/javascript.rs:116
Functiontest_codesort_source_files_are_complete
()
tests/rust_self.rs:37
Functiontest_comma_in_trait_bound
()
tests/rust_comma_trait_bound.rs:67
Functiontest_completion_rust
()
src/analyzers/rust.rs:425
Functiontest_enum_variants_simple_with_spaces
()
tests/rust_enum_variants.rs:4
Functiontest_enum_variants_simple_without_space
()
tests/rust_enum_variants.rs:57
Functiontest_exclude_annotation_from_sort_key
()
tests/rust_annotations.rs:5
Functiontest_find_struct_range
()
tests/rust_structs.rs:60
Functiontest_javascript_assigns
()
tests/javascript_assigns.rs:4
Functiontest_match_arms
()
src/analyzers/rust.rs:269
Functiontest_match_big_enum
()
tests/rust_match_big_enum.rs:160
Functiontest_match_enum
()
tests/rust_match_enum.rs:4
Functiontest_match_literals
()
tests/rust_match_literals.rs:4
Functiontest_match_struct
()
tests/rust_match_struct.rs:82
Functiontest_match_struct
()
tests/rust_structs.rs:78
Functiontest_match_struct_ranges
()
tests/rust_match_struct.rs:66
Functiontest_match_struct_with_spaces
()
tests/rust_match_struct_with_spaces.rs:72
Functiontest_restore_spacing_between
()
src/spacing.rs:65
next →1–100 of 103, ranked by callers