Skip to main content

function_source_range

Function function_source_range 

Source
pub fn function_source_range(
    lines: &[&str],
    name: &str,
) -> Option<(usize, usize)>
Expand description

Find the 0-based inclusive line range of a function by name. 按名称查找函数的 0 起始闭区间行范围。