aboutsummaryrefslogtreecommitdiff
path: root/crates/libanalysis/src/api.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-29 16:12:28 +0100
committerAleksey Kladov <[email protected]>2018-08-29 16:12:28 +0100
commit0f968ee43047af9d7bcf2953f1b367c38cb8bf1b (patch)
tree36a15fba4e1577a1d1cf4424e19eecda30c89422 /crates/libanalysis/src/api.rs
parent4dd4571bfe5220354f00e030f0a2d0a45e185712 (diff)
minor
Diffstat (limited to 'crates/libanalysis/src/api.rs')
-rw-r--r--crates/libanalysis/src/api.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/crates/libanalysis/src/api.rs b/crates/libanalysis/src/api.rs
index 2872d01e9..8882268e6 100644
--- a/crates/libanalysis/src/api.rs
+++ b/crates/libanalysis/src/api.rs
@@ -55,11 +55,9 @@ pub struct Analysis {
55impl Analysis { 55impl Analysis {
56 pub fn file_syntax(&self, file_id: FileId) -> File { 56 pub fn file_syntax(&self, file_id: FileId) -> File {
57 self.imp.file_syntax(file_id) 57 self.imp.file_syntax(file_id)
58 .unwrap()
59 } 58 }
60 pub fn file_line_index(&self, file_id: FileId) -> LineIndex { 59 pub fn file_line_index(&self, file_id: FileId) -> LineIndex {
61 self.imp.file_line_index(file_id) 60 self.imp.file_line_index(file_id)
62 .unwrap()
63 } 61 }
64 pub fn extend_selection(&self, file: &File, range: TextRange) -> TextRange { 62 pub fn extend_selection(&self, file: &File, range: TextRange) -> TextRange {
65 libeditor::extend_selection(file, range).unwrap_or(range) 63 libeditor::extend_selection(file, range).unwrap_or(range)
@@ -88,7 +86,6 @@ impl Analysis {
88 } 86 }
89 pub fn approximately_resolve_symbol(&self, file_id: FileId, offset: TextUnit) -> Vec<(FileId, FileSymbol)> { 87 pub fn approximately_resolve_symbol(&self, file_id: FileId, offset: TextUnit) -> Vec<(FileId, FileSymbol)> {
90 self.imp.approximately_resolve_symbol(file_id, offset) 88 self.imp.approximately_resolve_symbol(file_id, offset)
91 .unwrap()
92 } 89 }
93 pub fn parent_module(&self, file_id: FileId) -> Vec<(FileId, FileSymbol)> { 90 pub fn parent_module(&self, file_id: FileId) -> Vec<(FileId, FileSymbol)> {
94 self.imp.parent_module(file_id) 91 self.imp.parent_module(file_id)