get_closure

Function get_closure 

Source
pub fn get_closure<'a>(
    codebase: &'a CodebaseMetadata,
    file_id: &FileId,
    position: &Position,
) -> Option<&'a FunctionLikeMetadata>
Expand description

Retrieves the metadata for a closure based on its position in the source code.

This function uses the source ID and the closure’s position to uniquely identify it.