ruff/crates/ruff_python_ast/src/source_code
Charlie Marsh 6331598511
Upgrade RustPython to access ranged names (#5194)
## Summary

In https://github.com/astral-sh/RustPython-Parser/pull/8, we modified
RustPython to include ranges for any identifiers that aren't
`Expr::Name` (which already has an identifier).

For example, the `e` in `except ValueError as e` was previously
un-ranged. To extract its range, we had to do some lexing of our own.
This change should improve performance and let us remove a bunch of
code.

## Test Plan

`cargo test`
2023-06-20 15:43:38 +00:00
..
comment_ranges.rs Run rustfmt on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
generator.rs Upgrade RustPython to access ranged names (#5194) 2023-06-20 15:43:38 +00:00
indexer.rs Detect continuations at start-of-file (#5173) 2023-06-19 00:09:02 -04:00
line_index.rs Run rustfmt on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
locator.rs Move Python whitespace utilities into new ruff_python_whitespace crate (#4993) 2023-06-10 00:59:57 +00:00
mod.rs Only use a single cache file per Python package (#5117) 2023-06-19 17:46:13 +02:00
stylist.rs Move Python whitespace utilities into new ruff_python_whitespace crate (#4993) 2023-06-10 00:59:57 +00:00