mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add more docs
This commit is contained in:
parent
e6776c3e1b
commit
188b0f96f9
20 changed files with 72 additions and 40 deletions
|
@ -1,5 +1,3 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use rustc_hash::FxHashSet;
|
||||
|
||||
use syntax::{
|
||||
|
@ -29,6 +27,10 @@ pub struct Fold {
|
|||
pub kind: FoldKind,
|
||||
}
|
||||
|
||||
// Feature: Folding
|
||||
//
|
||||
// Defines folding regions for curly braced blocks, runs of consecutive import
|
||||
// statements, and `region` / `endregion` comment markers.
|
||||
pub(crate) fn folding_ranges(file: &SourceFile) -> Vec<Fold> {
|
||||
let mut res = vec![];
|
||||
let mut visited_comments = FxHashSet::default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue