ruff/crates/ruff_python_ast/src
Charlie Marsh 8e06140d1d
Remove continuations when deleting statements (#5198)
## Summary

This PR modifies our statement deletion logic to delete any preceding
continuation lines.

For example, given:

```py
x = 1; \
  import os
```

We'll now rewrite to:

```py
x = 1;
```

In addition, the logic can now handle multiple preceding continuations
(which is unlikely, but valid).
2023-06-19 22:04:28 -04:00
..
source_code Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
visitor Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
all.rs Allow re-assignments to __all__ (#4967) 2023-06-08 17:19:56 +00:00
call_path.rs Refactor range from Attributed to Nodes (#4422) 2023-05-16 06:36:32 +00:00
cast.rs Upgrade RustPython (#4900) 2023-06-08 05:53:14 +00:00
comparable.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
docstrings.rs Move Python whitespace utilities into new ruff_python_whitespace crate (#4993) 2023-06-10 00:59:57 +00:00
function.rs Format Function definitions (#4951) 2023-06-08 16:07:33 +00:00
hashable.rs Create a rust_python_ast crate (#3370) 2023-03-07 15:18:40 +00:00
helpers.rs Remove continuations when deleting statements (#5198) 2023-06-19 22:04:28 -04:00
identifier.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
imports.rs Run rustfmt on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
lib.rs Always use identifier ranges to store bindings (#5110) 2023-06-15 18:43:19 +00:00
node.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
prelude.rs Improve ruff_parse_simple to find UTF-8 violations (#5008) 2023-06-12 12:10:23 -04:00
relocate.rs Refactor range from Attributed to Nodes (#4422) 2023-05-16 06:36:32 +00:00
statement_visitor.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
str.rs Include f-string prefixes in quote-stripping utilities (#5039) 2023-06-12 18:25:47 -04:00
token_kind.rs Bring pycodestyle rules into full compatibility (on SciPy) (#4472) 2023-05-17 16:51:55 +00:00
types.rs Replace parents statement stack with a Nodes abstraction (#4233) 2023-05-06 16:12:41 +00:00
typing.rs Upgrade RustPython (#4747) 2023-05-31 08:26:35 +00:00
visitor.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
whitespace.rs Move Python whitespace utilities into new ruff_python_whitespace crate (#4993) 2023-06-10 00:59:57 +00:00