pub fn extract_interface(
path: &Path,
source: &str,
) -> PatternsResult<InterfaceInfo>Expand description
Extract the public interface from a source file.
Detects the language from the file extension and uses the appropriate tree-sitter grammar and node kinds.