ruff/crates/ruff_python_ast/src
Dhruv Manilawala 18452cf477
Add as_slice method for all string nodes (#9111)
This PR adds a `as_slice` method to all the string nodes which returns
all the parts of the nodes as a slice. This will be useful in the next
PR to split the string formatting to use this method to extract the
_single node_ or _implicitly concanated nodes_.
2023-12-13 06:31:20 +00:00
..
visitor Add as_slice method for all string nodes (#9111) 2023-12-13 06:31:20 +00:00
all.rs Rename as_str to to_str (#8886) 2023-11-28 18:50:42 -06:00
call_path.rs Store call paths rather than stringified names (#6102) 2023-08-05 15:21:50 +00:00
comparable.rs Add as_slice method for all string nodes (#9111) 2023-12-13 06:31:20 +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 Introduce StringLike enum (#9016) 2023-12-07 16:39:13 +00:00
hashable.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
helpers.rs Add as_slice method for all string nodes (#9111) 2023-12-13 06:31:20 +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 Include alias when formatting import-from structs (#5786) 2023-07-15 15:53:21 -04:00
int.rs Include radix base prefix in large number representation (#7700) 2023-09-28 20:38:06 +00:00
lib.rs Update E402 to work at cell level for notebooks (#8872) 2023-11-29 00:32:35 +00:00
node.rs Add as_slice method for all string nodes (#9111) 2023-12-13 06:31:20 +00:00
nodes.rs Add as_slice method for all string nodes (#9111) 2023-12-13 06:31:20 +00:00
parenthesize.rs Comments outside expression parentheses (#7873) 2023-10-19 09:24:11 +00:00
relocate.rs New AST nodes for f-string elements (#8835) 2023-12-07 10:28:05 -06:00
statement_visitor.rs Remove Stmt::TryStar (#6566) 2023-08-14 13:39:44 -04:00
stmt_if.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
str.rs Replace dynamic implicit concatenation detection with parser flag (#6513) 2023-08-14 10:27:17 -04:00
traversal.rs [refurb] Implement repeated-append rule (FURB113) (#6702) 2023-08-28 22:51:59 +00:00
types.rs Remove RefEquality (#6393) 2023-08-07 16:04:50 +00:00
visitor.rs Add as_slice method for all string nodes (#9111) 2023-12-13 06:31:20 +00:00
whitespace.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00