diff options
author | Aleksey Kladov <[email protected]> | 2018-12-27 14:33:52 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-27 14:33:52 +0000 |
commit | e4de2c8d7f5ced7a24d0a76213ab113218c99d30 (patch) | |
tree | b7e3edf5a0bebb168330ac56a261ed5b0a90d43e /crates/ra_analysis/src/completion/complete_keyword.rs | |
parent | 7a1ed6400dbc57656eebc345f7e2ffa963bf808e (diff) |
add function to completion ctx
Diffstat (limited to 'crates/ra_analysis/src/completion/complete_keyword.rs')
-rw-r--r-- | crates/ra_analysis/src/completion/complete_keyword.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/completion/complete_keyword.rs b/crates/ra_analysis/src/completion/complete_keyword.rs index 5427fcb11..d1e0a20a8 100644 --- a/crates/ra_analysis/src/completion/complete_keyword.rs +++ b/crates/ra_analysis/src/completion/complete_keyword.rs | |||
@@ -18,7 +18,7 @@ pub(super) fn complete_expr_keyword(acc: &mut Completions, ctx: &CompletionConte | |||
18 | if !ctx.is_trivial_path { | 18 | if !ctx.is_trivial_path { |
19 | return; | 19 | return; |
20 | } | 20 | } |
21 | let fn_def = match ctx.enclosing_fn { | 21 | let fn_def = match ctx.function_syntax { |
22 | Some(it) => it, | 22 | Some(it) => it, |
23 | None => return, | 23 | None => return, |
24 | }; | 24 | }; |