Parse the given Python source code using the specified [`Mode`]. This is same as the [`parse`] function except that it doesn't check for any [`ParseError`] and returns the [`Parsed`] as is.
(source: &str, mode: Mode)
| 218 | /// This is same as the [`parse`] function except that it doesn't check for any [`ParseError`] |
| 219 | /// and returns the [`Parsed`] as is. |
| 220 | pub fn parse_unchecked(source: &str, mode: Mode) -> Parsed<Mod> { |
| 221 | Parser::new(source, mode).parse() |
| 222 | } |
| 223 | |
| 224 | /// Parse the given Python source code using the specified [`PySourceType`]. |
| 225 | pub fn parse_unchecked_source(source: &str, source_type: PySourceType) -> Parsed<ModModule> { |