mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 10:33:34 +00:00
make stuff private
This commit is contained in:
parent
81e91980dd
commit
b0d8f9ff5d
@ -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…
Reference in New Issue
Block a user