Returns `true` if the parsed source code is valid i.e., it has no [`ParseError`]s. Note that this does not include version-related [`UnsupportedSyntaxError`]s. See [`Parsed::has_no_syntax_errors`] for a version that takes these into account.
(&self)
| 428 | /// |
| 429 | /// See [`Parsed::has_no_syntax_errors`] for a version that takes these into account. |
| 430 | pub fn has_valid_syntax(&self) -> bool { |
| 431 | self.errors.is_empty() |
| 432 | } |
| 433 | |
| 434 | /// Returns `true` if the parsed source code is invalid i.e., it has [`ParseError`]s. |
| 435 | /// |
no test coverage detected