ruff/crates/ruff_python_parser/src/parser
Dhruv Manilawala 4b41e4de7f
Create a newtype wrapper around `Vec<FStringElement>` (#11400)
## Summary

This PR adds a newtype wrapper around `Vec<FStringElement>` that derefs
to a `&Vec<FStringElement>`.

Both f-string and format specifier are made up of `Vec<FStringElement>`.
By creating a newtype wrapper around it, we can share the methods for
both parent types.
2024-05-13 16:04:04 +00:00
..
snapshots Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30
expression.rs Create a newtype wrapper around `Vec<FStringElement>` (#11400) 2024-05-13 16:04:04 +00:00
helpers.rs Refactor binary expression parsing (#11073) 2024-04-23 04:42:40 +00:00
mod.rs Add basic docs for the parser crate (#11199) 2024-04-29 17:08:07 +00:00
pattern.rs Refactor unary expression parsing (#11088) 2024-04-23 04:55:02 +00:00
progress.rs Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30
recovery.rs Refactor the `ExprDict` node (#11267) 2024-05-07 11:46:10 +00:00
statement.rs Add convenience methods for iterating over all parameter nodes in a function (#11174) 2024-04-29 10:36:15 +00:00
tests.rs Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30