nushell/crates/nu-protocol/src/debugger
Ian Manske 6ccd547d81
Add ListItem type for Expr::List (#12529)
# Description
This PR adds a `ListItem` enum to our set of AST types. It encodes the
two possible expressions inside of list expression: a singular item or a
spread. This is similar to the existing `RecordItem` enum. Adding
`ListItem` allows us to remove the existing `Expr::Spread` case which
was previously used for list spreads. As a consequence, this guarantees
(via the type system) that spreads can only ever occur inside lists,
records, or as command args.

This PR also does a little bit of cleanup in relevant parser code.
2024-04-18 13:21:05 +02:00
..
debugger_trait.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
mod.rs Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
profiler.rs Add ListItem type for Expr::List (#12529) 2024-04-18 13:21:05 +02:00