Skip to main content

try_extract

Function try_extract 

Source
pub fn try_extract(
    path: &Path,
    source: &[u8],
    lang: &str,
) -> Option<ExtractionResult>
Expand description

Try tree-sitter extraction for a supported language. Returns None if the language is not supported by tree-sitter grammars.