ruff/crates/ruff_python_formatter/src/statement
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
..
clause.rs Improve `dummy_implementations` preview style formatting (#9240) 2023-12-22 03:44:14 +00:00
mod.rs Preserve trailing statement semicolons when using `fmt: skip` (#8273) 2023-10-30 00:07:14 +00:00
stmt_ann_assign.rs Parenthesize long type annotations in annotated assignments (#9210) 2023-12-22 03:33:47 +00:00
stmt_assert.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
stmt_assign.rs Parenthesize long type annotations in annotated assignments (#9210) 2023-12-22 03:33:47 +00:00
stmt_aug_assign.rs `prefer_splitting_right_hand_side_of_assignments` preview style (#8943) 2023-12-13 03:43:23 +00:00
stmt_break.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
stmt_class_def.rs Insert necessary blank line between class and leading comments (#8224) 2023-10-25 20:31:59 -04:00
stmt_continue.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
stmt_delete.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
stmt_expr.rs Preserve trailing semicolon for Notebooks (#8590) 2023-11-10 21:53:35 +05:30
stmt_for.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
stmt_function_def.rs Insert necessary blank line between class and leading comments (#8224) 2023-10-25 20:31:59 -04:00
stmt_global.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
stmt_if.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
stmt_import.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
stmt_import_from.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
stmt_ipy_escape_command.rs Memoize text width (#6552) 2023-09-06 07:10:13 +00:00
stmt_match.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
stmt_nonlocal.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
stmt_pass.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
stmt_raise.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
stmt_return.rs `prefer_splitting_right_hand_side_of_assignments` preview style (#8943) 2023-12-13 03:43:23 +00:00
stmt_try.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
stmt_type_alias.rs `prefer_splitting_right_hand_side_of_assignments` preview style (#8943) 2023-12-13 03:43:23 +00:00
stmt_while.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
stmt_with.rs Parenthesize multi-context managers (#9222) 2023-12-22 03:41:03 +00:00
suite.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00