Returns `true` if the parsed source code is invalid i.e., it has [`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)
| 437 | /// |
| 438 | /// See [`Parsed::has_no_syntax_errors`] for a version that takes these into account. |
| 439 | pub fn has_invalid_syntax(&self) -> bool { |
| 440 | !self.has_valid_syntax() |
| 441 | } |
| 442 | |
| 443 | /// Returns `true` if the parsed source code does not contain any [`ParseError`]s *or* |
| 444 | /// [`UnsupportedSyntaxError`]s. |