diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-24 00:54:21 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-24 00:54:21 +0100 |
commit | 601f89f2cb085ab7e638f034088f32b9428a0611 (patch) | |
tree | 2dd1fe075f1343c2a1bfaa03f800d4d3d53809ee /crates/ra_ide/src/lib.rs | |
parent | 5eb51c1e6049c61be60a28894b80a7753f06cfeb (diff) | |
parent | 88d243c742ecd724372c4293b6b6ea293bae2d17 (diff) |
Merge #4114
4114: Refactor completion sorting r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r-- | crates/ra_ide/src/lib.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs index ddaa30a16..f692fbaa2 100644 --- a/crates/ra_ide/src/lib.rs +++ b/crates/ra_ide/src/lib.rs | |||
@@ -129,21 +129,6 @@ pub struct CallInfo { | |||
129 | pub active_parameter: Option<usize>, | 129 | pub active_parameter: Option<usize>, |
130 | } | 130 | } |
131 | 131 | ||
132 | impl CallInfo { | ||
133 | pub fn active_parameter_type(&self) -> Option<String> { | ||
134 | if let Some(id) = self.active_parameter { | ||
135 | return self.signature.parameter_types.get(id).map(|param_ty| param_ty.clone()); | ||
136 | } | ||
137 | None | ||
138 | } | ||
139 | pub fn active_parameter_name(&self) -> Option<String> { | ||
140 | if let Some(id) = self.active_parameter { | ||
141 | return self.signature.parameter_names.get(id).map(|param_ty| param_ty.clone()); | ||
142 | } | ||
143 | None | ||
144 | } | ||
145 | } | ||
146 | |||
147 | /// `AnalysisHost` stores the current state of the world. | 132 | /// `AnalysisHost` stores the current state of the world. |
148 | #[derive(Debug)] | 133 | #[derive(Debug)] |
149 | pub struct AnalysisHost { | 134 | pub struct AnalysisHost { |