diff options
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r-- | crates/ra_ide_api/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 2d090d9b4..de3ec4e0a 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs | |||
@@ -7,7 +7,7 @@ | |||
7 | //! However, IDE specific bits of the analysis (most notably completion) happen | 7 | //! However, IDE specific bits of the analysis (most notably completion) happen |
8 | //! in this crate. | 8 | //! in this crate. |
9 | //! | 9 | //! |
10 | //! The sibling `ra_ide_api_light` handles thouse bits of IDE functionality | 10 | //! The sibling `ra_ide_api_light` handles those bits of IDE functionality |
11 | //! which are restricted to a single file and need only syntax. | 11 | //! which are restricted to a single file and need only syntax. |
12 | 12 | ||
13 | // For proving that RootDatabase is RefUnwindSafe. | 13 | // For proving that RootDatabase is RefUnwindSafe. |
@@ -67,7 +67,7 @@ pub use ra_db::{ | |||
67 | pub use hir::Documentation; | 67 | pub use hir::Documentation; |
68 | 68 | ||
69 | // We use jemalloc mainly to get heap usage statistics, actual performance | 69 | // We use jemalloc mainly to get heap usage statistics, actual performance |
70 | // differnece is not measures. | 70 | // difference is not measures. |
71 | #[cfg(feature = "jemalloc")] | 71 | #[cfg(feature = "jemalloc")] |
72 | #[global_allocator] | 72 | #[global_allocator] |
73 | static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; | 73 | static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; |
@@ -221,12 +221,12 @@ impl Analysis { | |||
221 | self.db.line_index(file_id) | 221 | self.db.line_index(file_id) |
222 | } | 222 | } |
223 | 223 | ||
224 | /// Selects the next syntactic nodes encopasing the range. | 224 | /// Selects the next syntactic nodes encompassing the range. |
225 | pub fn extend_selection(&self, frange: FileRange) -> Cancelable<TextRange> { | 225 | pub fn extend_selection(&self, frange: FileRange) -> Cancelable<TextRange> { |
226 | self.with_db(|db| extend_selection::extend_selection(db, frange)) | 226 | self.with_db(|db| extend_selection::extend_selection(db, frange)) |
227 | } | 227 | } |
228 | 228 | ||
229 | /// Returns position of the mathcing brace (all types of braces are | 229 | /// Returns position of the matching brace (all types of braces are |
230 | /// supported). | 230 | /// supported). |
231 | pub fn matching_brace(&self, position: FilePosition) -> Option<TextUnit> { | 231 | pub fn matching_brace(&self, position: FilePosition) -> Option<TextUnit> { |
232 | let file = self.db.parse(position.file_id); | 232 | let file = self.db.parse(position.file_id); |
@@ -316,7 +316,7 @@ impl Analysis { | |||
316 | self.with_db(|db| references::find_all_refs(db, position)) | 316 | self.with_db(|db| references::find_all_refs(db, position)) |
317 | } | 317 | } |
318 | 318 | ||
319 | /// Returns a short text descrbing element at position. | 319 | /// Returns a short text describing element at position. |
320 | pub fn hover(&self, position: FilePosition) -> Cancelable<Option<RangeInfo<String>>> { | 320 | pub fn hover(&self, position: FilePosition) -> Cancelable<Option<RangeInfo<String>>> { |
321 | self.with_db(|db| hover::hover(db, position)) | 321 | self.with_db(|db| hover::hover(db, position)) |
322 | } | 322 | } |