ruff/crates/ruff_python_parser/src
Charlie Marsh e80260a3c5
Remove source path from parser errors (#9322)
## Summary

I always found it odd that we had to pass this in, since it's really
higher-level context for the error. The awkwardness is further evidenced
by the fact that we pass in fake values everywhere (even outside of
tests). The source path isn't actually used to display the error; it's
only accessed elsewhere to _re-display_ the error in certain cases. This
PR modifies to instead pass the path directly in those cases.
2023-12-30 20:33:05 +00:00
..
lexer release: switch to Cargo's default (#9031) 2023-12-15 08:19:35 -05:00
snapshots New AST nodes for f-string elements (#8835) 2023-12-07 10:28:05 -06:00
context.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
function.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
invalid.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
lexer.rs Use Display for formatter parse errors (#9316) 2023-12-29 22:26:57 +00:00
lib.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
parser.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
python.lalrpop New AST nodes for f-string elements (#8835) 2023-12-07 10:28:05 -06:00
python.rs New AST nodes for f-string elements (#8835) 2023-12-07 10:28:05 -06:00
soft_keywords.rs Support type alias statements in simple statement positions (#8916) 2023-11-30 19:15:19 +00:00
string.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
token.rs Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
typing.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00