aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-04-12 23:07:24 +0100
committerAleksey Kladov <[email protected]>2019-04-12 23:07:24 +0100
commitb0d8f9ff5d2a64f93189543385485c5b48fb8d76 (patch)
treeb92e0db3367fbeea2651e0035e54b01f632ecf4b /crates/ra_hir
parent81e91980dd87f62bdd9013f99101f6599f067e3b (diff)
make stuff private
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/source_binder.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs
index 476cf117f..8e1f29019 100644
--- a/crates/ra_hir/src/source_binder.rs
+++ b/crates/ra_hir/src/source_binder.rs
@@ -95,7 +95,7 @@ pub fn function_from_position(db: &impl HirDatabase, position: FilePosition) ->
95 function_from_source(db, position.file_id, fn_def) 95 function_from_source(db, position.file_id, fn_def)
96} 96}
97 97
98pub fn function_from_source( 98fn function_from_source(
99 db: &impl HirDatabase, 99 db: &impl HirDatabase,
100 file_id: FileId, 100 file_id: FileId,
101 fn_def: &ast::FnDef, 101 fn_def: &ast::FnDef,
@@ -105,11 +105,7 @@ pub fn function_from_source(
105 Some(res) 105 Some(res)
106} 106}
107 107
108pub fn function_from_module( 108fn function_from_module(db: &impl HirDatabase, module: Module, fn_def: &ast::FnDef) -> Function {
109 db: &impl HirDatabase,
110 module: Module,
111 fn_def: &ast::FnDef,
112) -> Function {
113 let (file_id, _) = module.definition_source(db); 109 let (file_id, _) = module.definition_source(db);
114 let file_id = file_id.into(); 110 let file_id = file_id.into();
115 let ctx = LocationCtx::new(db, module, file_id); 111 let ctx = LocationCtx::new(db, module, file_id);