ruff/crates/ruff_python_parser/src
Charlie Marsh fc89976c24
Move Ranged into ruff_text_size (#6919)
## Summary

The motivation here is that this enables us to implement `Ranged` in
crates that don't depend on `ruff_python_ast`.

Largely a mechanical refactor with a lot of regex, Clippy help, and
manual fixups.

## Test Plan

`cargo test`
2023-08-27 14:12:51 -04:00
..
lexer Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
snapshots Introduce AST nodes for PatternMatchClass arguments (#6881) 2023-08-26 14:45:44 +00:00
context.rs Remove Parse trait (#6235) 2023-08-01 18:35:03 +02:00
function.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
lexer.rs Update lexer tests to use snapshots (#6658) 2023-08-22 18:23:19 +00:00
lib.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
parser.rs Expand NamedExpr range to include full range of parenthesized value (#6632) 2023-08-17 14:34:05 +00:00
python.lalrpop Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
python.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
soft_keywords.rs Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
string.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
token.rs Rename Magic* to IpyEscape* (#6395) 2023-08-09 13:28:18 +00:00
typing.rs Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00