From 188b0f96f98feaa0771f941343887c46113c8ced Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 22 May 2021 16:53:47 +0300 Subject: Add more docs --- crates/ide/src/display/navigation_target.rs | 2 +- crates/ide/src/folding_ranges.rs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'crates/ide/src') diff --git a/crates/ide/src/display/navigation_target.rs b/crates/ide/src/display/navigation_target.rs index 2079c22a3..b75ec411c 100644 --- a/crates/ide/src/display/navigation_target.rs +++ b/crates/ide/src/display/navigation_target.rs @@ -1,4 +1,4 @@ -//! FIXME: write short doc here +//! See [`NavigationTarget`]. use std::fmt; 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 @@ -//! 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 { let mut res = vec![]; let mut visited_comments = FxHashSet::default(); -- cgit v1.2.3