diff options
author | Aleksey Kladov <[email protected]> | 2019-03-02 12:14:37 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-03-02 12:40:40 +0000 |
commit | eaf1df26e9903772d40df30dd70c75c38d8cb887 (patch) | |
tree | 4e7a6f4bb15caf4e134305ab1c4ba749e9e1d5b0 /crates/ra_assists | |
parent | 592b906604d60a86af74c5dbb3bf40b2ddcf8061 (diff) |
rename syntax-mapping -> source-map
Diffstat (limited to 'crates/ra_assists')
-rw-r--r-- | crates/ra_assists/src/fill_match_arms.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/fill_match_arms.rs b/crates/ra_assists/src/fill_match_arms.rs index 30020b56e..81b11956a 100644 --- a/crates/ra_assists/src/fill_match_arms.rs +++ b/crates/ra_assists/src/fill_match_arms.rs | |||
@@ -23,7 +23,7 @@ pub(crate) fn fill_match_arms(mut ctx: AssistCtx<impl HirDatabase>) -> Option<As | |||
23 | let function = | 23 | let function = |
24 | source_binder::function_from_child_node(ctx.db, ctx.frange.file_id, expr.syntax())?; | 24 | source_binder::function_from_child_node(ctx.db, ctx.frange.file_id, expr.syntax())?; |
25 | let infer_result = function.infer(ctx.db); | 25 | let infer_result = function.infer(ctx.db); |
26 | let syntax_mapping = function.body_syntax_mapping(ctx.db); | 26 | let syntax_mapping = function.body_source_map(ctx.db); |
27 | let node_expr = syntax_mapping.node_expr(expr)?; | 27 | let node_expr = syntax_mapping.node_expr(expr)?; |
28 | let match_expr_ty = infer_result[node_expr].clone(); | 28 | let match_expr_ty = infer_result[node_expr].clone(); |
29 | let enum_def = match match_expr_ty { | 29 | let enum_def = match match_expr_ty { |