ruff/crates/ruff_python_trivia/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
..
snapshots Tokenizer: Emit only a single bogus token (#7425) 2023-09-19 16:06:03 +02:00
comment_ranges.rs [pylint] Implement empty-comment (PLR2044) (#9174) 2023-12-29 02:53:56 +00:00
cursor.rs Use CommentRanges in backwards lexing (#7360) 2023-09-16 03:21:45 +00:00
lib.rs Extend pragma comment cases (#7687) 2023-09-28 18:55:19 +00:00
pragmas.rs Extend pragma comment cases (#7687) 2023-09-28 18:55:19 +00:00
textwrap.rs Use consistent re-export from ruff_source_file (#9320) 2023-12-30 14:48:45 -05:00
tokenizer.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
whitespace.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00