aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-01-12 20:58:16 +0000
committerFlorian Diebold <[email protected]>2019-01-12 20:58:16 +0000
commit1ed7fbfc1badd2c2a42b4dc2feb1b4bf7835d3ef (patch)
tree8e0a5cd3e1981bf0ff9615636d45566dd85fdb97 /crates/ra_ide_api
parent5db5f5cc1dc5dfbded866b59570afc50538b9091 (diff)
args -> params
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r--crates/ra_ide_api/src/completion/complete_dot.rs2
-rw-r--r--crates/ra_ide_api/src/completion/completion_item.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_dot.rs b/crates/ra_ide_api/src/completion/complete_dot.rs
index 9b01eb0ab..37985b398 100644
--- a/crates/ra_ide_api/src/completion/complete_dot.rs
+++ b/crates/ra_ide_api/src/completion/complete_dot.rs
@@ -63,7 +63,7 @@ fn complete_methods(
63) -> Cancelable<()> { 63) -> Cancelable<()> {
64 receiver.iterate_methods(ctx.db, |func| { 64 receiver.iterate_methods(ctx.db, |func| {
65 let sig = func.signature(ctx.db); 65 let sig = func.signature(ctx.db);
66 if sig.has_self_arg() { 66 if sig.has_self_param() {
67 CompletionItem::new(CompletionKind::Reference, sig.name().to_string()) 67 CompletionItem::new(CompletionKind::Reference, sig.name().to_string())
68 .from_function(ctx, func) 68 .from_function(ctx, func)
69 .kind(CompletionItemKind::Method) 69 .kind(CompletionItemKind::Method)
diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs
index 9ce778487..b75d65de3 100644
--- a/crates/ra_ide_api/src/completion/completion_item.rs
+++ b/crates/ra_ide_api/src/completion/completion_item.rs
@@ -191,7 +191,7 @@ impl Builder {
191 ) -> Builder { 191 ) -> Builder {
192 // If not an import, add parenthesis automatically. 192 // If not an import, add parenthesis automatically.
193 if ctx.use_item_syntax.is_none() && !ctx.is_call { 193 if ctx.use_item_syntax.is_none() && !ctx.is_call {
194 if function.signature(ctx.db).args().is_empty() { 194 if function.signature(ctx.db).params().is_empty() {
195 self.snippet = Some(format!("{}()$0", self.label)); 195 self.snippet = Some(format!("{}()$0", self.label));
196 } else { 196 } else {
197 self.snippet = Some(format!("{}($0)", self.label)); 197 self.snippet = Some(format!("{}($0)", self.label));