diff options
Diffstat (limited to 'crates/ide/src/folding_ranges.rs')
-rwxr-xr-x | crates/ide/src/folding_ranges.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/ide/src/folding_ranges.rs b/crates/ide/src/folding_ranges.rs index a03988778..b893c1c54 100755 --- a/crates/ide/src/folding_ranges.rs +++ b/crates/ide/src/folding_ranges.rs | |||
@@ -1,5 +1,3 @@ | |||
1 | //! FIXME: write short doc here | ||
2 | |||
3 | use rustc_hash::FxHashSet; | 1 | use rustc_hash::FxHashSet; |
4 | 2 | ||
5 | use syntax::{ | 3 | use syntax::{ |
@@ -29,6 +27,10 @@ pub struct Fold { | |||
29 | pub kind: FoldKind, | 27 | pub kind: FoldKind, |
30 | } | 28 | } |
31 | 29 | ||
30 | // Feature: Folding | ||
31 | // | ||
32 | // Defines folding regions for curly braced blocks, runs of consecutive import | ||
33 | // statements, and `region` / `endregion` comment markers. | ||
32 | pub(crate) fn folding_ranges(file: &SourceFile) -> Vec<Fold> { | 34 | pub(crate) fn folding_ranges(file: &SourceFile) -> Vec<Fold> { |
33 | let mut res = vec![]; | 35 | let mut res = vec![]; |
34 | let mut visited_comments = FxHashSet::default(); | 36 | let mut visited_comments = FxHashSet::default(); |