Skip to main content

inspect_code

Function inspect_code 

Source
pub fn inspect_code(
    source: &str,
    path: &Path,
    selection: Range<usize>,
    registry: &SymbolRegistry,
    client: bool,
) -> Result<Option<CallInspection>, String>
Expand description

Inspect one call when possible, otherwise the complete containing script. Selections crossing declarations are rejected rather than inspecting an arbitrary script.