mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
make stuff private
This commit is contained in:
parent
81e91980dd
commit
b0d8f9ff5d
1 changed files with 2 additions and 6 deletions
|
@ -95,7 +95,7 @@ pub fn function_from_position(db: &impl HirDatabase, position: FilePosition) ->
|
||||||
function_from_source(db, position.file_id, fn_def)
|
function_from_source(db, position.file_id, fn_def)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn function_from_source(
|
fn function_from_source(
|
||||||
db: &impl HirDatabase,
|
db: &impl HirDatabase,
|
||||||
file_id: FileId,
|
file_id: FileId,
|
||||||
fn_def: &ast::FnDef,
|
fn_def: &ast::FnDef,
|
||||||
|
@ -105,11 +105,7 @@ pub fn function_from_source(
|
||||||
Some(res)
|
Some(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn function_from_module(
|
fn function_from_module(db: &impl HirDatabase, module: Module, fn_def: &ast::FnDef) -> Function {
|
||||||
db: &impl HirDatabase,
|
|
||||||
module: Module,
|
|
||||||
fn_def: &ast::FnDef,
|
|
||||||
) -> Function {
|
|
||||||
let (file_id, _) = module.definition_source(db);
|
let (file_id, _) = module.definition_source(db);
|
||||||
let file_id = file_id.into();
|
let file_id = file_id.into();
|
||||||
let ctx = LocationCtx::new(db, module, file_id);
|
let ctx = LocationCtx::new(db, module, file_id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue