ruff/crates/ruff_python_formatter/src/expression
Charlie Marsh a7cf8f0b77
Replace dynamic implicit concatenation detection with parser flag (#6513)
## Summary

In https://github.com/astral-sh/ruff/pull/6512, we added a flag to the
AST to mark implicitly-concatenated string expressions. This PR makes
use of that flag to remove the `is_implicit_concatenation` method.

## Test Plan

`cargo test`
2023-08-14 10:27:17 -04:00
..
expr_attribute.rs Avoid breaking call chains unnecessarily (#6488) 2023-08-11 13:33:15 +00:00
expr_await.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_bin_op.rs Replace dynamic implicit concatenation detection with parser flag (#6513) 2023-08-14 10:27:17 -04:00
expr_bool_op.rs Fix formatting of chained boolean operations (#6394) 2023-08-07 12:22:33 -05:00
expr_call.rs Call chain formatting in fluent style (#6151) 2023-08-04 13:58:01 +00:00
expr_compare.rs Override fmt_dangling_comments for frequent nodes (#6551) 2023-08-14 15:29:05 +02:00
expr_constant.rs Replace dynamic implicit concatenation detection with parser flag (#6513) 2023-08-14 10:27:17 -04:00
expr_dict.rs Move empty_parenthesized into the parentheses.rs (#6403) 2023-08-08 19:17:17 +00:00
expr_dict_comp.rs Add a with_dangling_comments to the parenthesized formatter (#6402) 2023-08-07 19:12:12 +00:00
expr_f_string.rs Rename JoinedStr to FString in the AST (#6379) 2023-08-07 17:33:17 +00:00
expr_formatted_value.rs Track formatting all comments 2023-08-10 09:19:27 +02:00
expr_generator_exp.rs Add a with_dangling_comments to the parenthesized formatter (#6402) 2023-08-07 19:12:12 +00:00
expr_if_exp.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_ipy_escape_command.rs Rename Magic* to IpyEscape* (#6395) 2023-08-09 13:28:18 +00:00
expr_lambda.rs Fix formatting of lambda star arguments (#6257) 2023-08-02 19:31:20 +00:00
expr_list.rs Move empty_parenthesized into the parentheses.rs (#6403) 2023-08-08 19:17:17 +00:00
expr_list_comp.rs Add a with_dangling_comments to the parenthesized formatter (#6402) 2023-08-07 19:12:12 +00:00
expr_name.rs Override fmt_dangling_comments for frequent nodes (#6551) 2023-08-14 15:29:05 +02:00
expr_named_expr.rs Add test case for walrus operators in return types (#6438) 2023-08-11 18:28:48 +00:00
expr_set.rs Add a with_dangling_comments to the parenthesized formatter (#6402) 2023-08-07 19:12:12 +00:00
expr_set_comp.rs Add a with_dangling_comments to the parenthesized formatter (#6402) 2023-08-07 19:12:12 +00:00
expr_slice.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_starred.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_subscript.rs Call chain formatting in fluent style (#6151) 2023-08-04 13:58:01 +00:00
expr_tuple.rs Move empty_parenthesized into the parentheses.rs (#6403) 2023-08-08 19:17:17 +00:00
expr_unary_op.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_yield.rs Replace Formatter<PyFormatContext<'_>> with PyFormatter (#6330) 2023-08-04 10:48:58 +02:00
expr_yield_from.rs Add AnyExpressionYield to consolidate ExprYield and ExprYieldFrom (#6127) 2023-07-27 16:01:16 +00:00
mod.rs Allow return type annotations to use their own parentheses (#6436) 2023-08-11 18:19:21 +00:00
number.rs Replace Formatter<PyFormatContext<'_>> with PyFormatter (#6330) 2023-08-04 10:48:58 +02:00
parentheses.rs Allow return type annotations to use their own parentheses (#6436) 2023-08-11 18:19:21 +00:00
string.rs Replace dynamic implicit concatenation detection with parser flag (#6513) 2023-08-14 10:27:17 -04:00