ruff/crates/ruff_python_ast/src
Alex Waygood 6963f75a14
Move string-prefix enumerations to a separate submodule (#11425)
## Summary

This moves the string-prefix enumerations in `ruff_python_ast` to a
separate submodule. I think this helps clarify that these prefixes are
purely abstract: they only depend on each other, and do not depend on
any of the other code in `nodes.rs` in any way. Moreover, while various
AST nodes _use_ them, they're not really nodes themselves, so they feel
slightly out of place in `nodes.rs`.

I considered moving all of them to `str.rs`, but it felt like enough
code that it could be a separate submodule.

## Test Plan

`cargo test`
2024-05-15 07:40:27 -04:00
..
visitor Implement IntoIterator for FStringElements (#11410) 2024-05-13 16:24:49 +00:00
comparable.rs Refactor the ExprDict node (#11267) 2024-05-07 11:46:10 +00:00
docstrings.rs Move Python whitespace utilities into new ruff_python_whitespace crate (#4993) 2023-06-10 00:59:57 +00:00
expression.rs Move W605 to the AST checker (#11402) 2024-05-13 16:13:06 +00:00
hashable.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
helpers.rs Use u64 instead of i64 in Int type (#11356) 2024-05-10 13:35:15 +00:00
identifier.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
imports.rs Remove ImportMap (#11234) 2024-05-02 11:26:02 -07:00
int.rs Use u64 instead of i64 in Int type (#11356) 2024-05-10 13:35:15 +00:00
lib.rs Move string-prefix enumerations to a separate submodule (#11425) 2024-05-15 07:40:27 -04:00
name.rs Improve handling of builtin symbols in linter rules (#10919) 2024-04-16 11:37:31 +01:00
node.rs Implement IntoIterator for FStringElements (#11410) 2024-05-13 16:24:49 +00:00
nodes.rs Move string-prefix enumerations to a separate submodule (#11425) 2024-05-15 07:40:27 -04:00
parenthesize.rs Comments outside expression parentheses (#7873) 2023-10-19 09:24:11 +00:00
relocate.rs Remove Expr postfix from ExprNamed, ExprIf, and ExprGenerator (#10229) 2024-03-04 12:55:01 +01:00
statement_visitor.rs Remove Stmt::TryStar (#6566) 2023-08-14 13:39:44 -04:00
stmt_if.rs Misc. small tweaks from perusing modules (#9383) 2024-01-03 12:30:25 -05:00
str.rs Unify enums used for internal representation of quoting style (#10383) 2024-03-13 17:19:17 +00:00
str_prefix.rs Move string-prefix enumerations to a separate submodule (#11425) 2024-05-15 07:40:27 -04:00
traversal.rs [flake8-simplify] Implement enumerate-for-loop (SIM113) (#7777) 2024-01-14 11:00:59 -05:00
types.rs Remove RefEquality (#6393) 2023-08-07 16:04:50 +00:00
visitor.rs Implement IntoIterator for FStringElements (#11410) 2024-05-13 16:24:49 +00:00
whitespace.rs Use consistent re-export from ruff_source_file (#9320) 2023-12-30 14:48:45 -05:00