ruff/crates/ruff_python_formatter/src/expression
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
..
binary_like.rs Split string formatting to individual nodes (#9058) 2023-12-14 12:55:10 -06:00
expr_attribute.rs Delete redundant branch in NeedsParentheses (#8377) 2023-10-31 12:06:17 +00:00
expr_await.rs Fix instability with await fluent style (#8676) 2023-11-17 12:24:19 -05:00
expr_bin_op.rs Update string nodes for implicit concatenation (#7927) 2023-11-24 17:55:41 -06:00
expr_bool_op.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_boolean_literal.rs Split Constant to individual literal nodes (#8064) 2023-10-30 12:13:23 +05:30
expr_bytes_literal.rs Split string formatting to individual nodes (#9058) 2023-12-14 12:55:10 -06:00
expr_call.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_compare.rs Update string nodes for implicit concatenation (#7927) 2023-11-24 17:55:41 -06:00
expr_dict.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_dict_comp.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_ellipsis_literal.rs Split Constant to individual literal nodes (#8064) 2023-10-30 12:13:23 +05:30
expr_f_string.rs Split string formatting to individual nodes (#9058) 2023-12-14 12:55:10 -06:00
expr_generator_exp.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_if_exp.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_ipy_escape_command.rs Formatter parentheses support for IpyEscapeCommand (#8207) 2023-10-25 14:01:50 +00:00
expr_lambda.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_list.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_list_comp.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_name.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
expr_named_expr.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_none_literal.rs Split Constant to individual literal nodes (#8064) 2023-10-30 12:13:23 +05:30
expr_number_literal.rs Inline ExprNumberLiteral formatting logic (#8340) 2023-10-30 14:09:38 +05:30
expr_set.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_set_comp.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_slice.rs Split Constant to individual literal nodes (#8064) 2023-10-30 12:13:23 +05:30
expr_starred.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_string_literal.rs Split string formatting to individual nodes (#9058) 2023-12-14 12:55:10 -06:00
expr_subscript.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_tuple.rs Split tuples in return positions by comma first (#8280) 2023-10-30 00:25:44 +00:00
expr_unary_op.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
expr_yield.rs Avoid parenthesizing unsplittable because of comments (#8431) 2023-11-03 05:12:59 +00:00
expr_yield_from.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
mod.rs Parenthesize multi-context managers (#9222) 2023-12-22 03:41:03 +00:00
operator.rs Split implicit concatenated strings before binary expressions (#7145) 2023-09-08 06:51:26 +00:00
parentheses.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00