pub struct PythonParser { /* private fields */ }Expand description
Python parser
Implementations§
Source§impl PythonParser
impl PythonParser
Sourcepub fn detect_language(path: &Path) -> Language
pub fn detect_language(path: &Path) -> Language
Get the language for a file based on its extension
Sourcepub fn parse(&mut self, context: &ParseContext) -> Result<ParseResult>
pub fn parse(&mut self, context: &ParseContext) -> Result<ParseResult>
Parse a Python file