aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-10-30 21:50:51 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-10-30 21:50:51 +0000
commitd10214581e18a3c98760ecf8ebbd27aaf48ec9ae (patch)
treeb08b25af4b2fdcfdaa815b747409a06637b5508e /crates/ra_analysis
parent46cce4f8f1b71458029ebfd391c37e27cc6c5c9c (diff)
parent93dc703011c99d52bd036f745c31388a5f9e3523 (diff)
Merge #168
168: Fix param number r=matklad a=kjeremy Fixes the parameter number if we are not in a method Co-authored-by: Jeremy A. Kolb <[email protected]>
Diffstat (limited to 'crates/ra_analysis')
-rw-r--r--crates/ra_analysis/src/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index 3557bb5cc..57657105b 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -460,7 +460,7 @@ impl AnalysisImpl {
460 460
461 if num_params == 1 { 461 if num_params == 1 {
462 if !has_self { 462 if !has_self {
463 current_parameter = Some(1); 463 current_parameter = Some(0);
464 } 464 }
465 } else if num_params > 1 { 465 } else if num_params > 1 {
466 // Count how many parameters into the call we are. 466 // Count how many parameters into the call we are.