MCPcopy Create free account
hub / github.com/astral-sh/ruff / unsupported_syntax_errors

Method unsupported_syntax_errors

crates/ruff_python_parser/src/lib.rs:419–421  ·  view source on GitHub ↗

Returns a list of version-related syntax errors found during parsing.

(&self)

Source from the content-addressed store, hash-verified

417
418 /// Returns a list of version-related syntax errors found during parsing.
419 pub fn unsupported_syntax_errors(&self) -> &[UnsupportedSyntaxError] {
420 &self.unsupported_syntax_errors
421 }
422
423 /// Consumes the [`Parsed`] output and returns the contained syntax node.
424 pub fn into_syntax(self) -> T {

Callers 6

test_valid_syntaxFunction · 0.80
test_invalid_syntaxFunction · 0.80
check_fileFunction · 0.80
check_pathFunction · 0.80
should_be_fstringFunction · 0.80

Calls

no outgoing calls

Tested by 3

test_valid_syntaxFunction · 0.64
test_invalid_syntaxFunction · 0.64