nushell/crates/nu-cli/src
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
..
commands fix simple typo in commandline_.rs (#12387) 2024-04-04 09:59:52 +02:00
completions Copy-on-write for record values (#12305) 2024-04-14 01:42:03 +00:00
menus Rename IoStream to OutDest (#12433) 2024-04-09 16:48:32 +00:00
config_files.rs better logging for shell_integration ansi escapes + better plugin perf logging (#12494) 2024-04-12 10:11:41 -05:00
eval_cmds.rs Add --no-newline option to nu (#12410) 2024-04-09 10:04:00 -04:00
eval_file.rs Add --no-newline option to nu (#12410) 2024-04-09 10:04:00 -04:00
lib.rs Send LSP Completion Item Kind (#11443) 2024-03-24 20:14:12 -05:00
nu_highlight.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
print.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
prompt_update.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
prompt.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
reedline_config.rs add a few more logging statements for debugging startup (#12316) 2024-03-28 11:27:12 -05:00
repl.rs better logging for shell_integration ansi escapes + better plugin perf logging (#12494) 2024-04-12 10:11:41 -05:00
syntax_highlight.rs Add ListItem type for Expr::List (#12529) 2024-04-18 13:21:05 +02:00
util.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
validation.rs Remove old alias implementation (#8797) 2023-04-07 21:09:38 +03:00