nushell/crates/nu-protocol/src/ast
Devyn Cairns fdf7f28d07
Address feedback from PR #12229 (#12242)
# Description
@sholderbach left a very helpful review and this just implements the
suggestions he made.

Didn't notice any difference in performance, but there could potentially
be for a long running Nushell session or one that loads a lot of stuff.

I also caught a bug where nu-protocol won't build without `plugin`
because of the previous conditional import. Oops. Fixed.

# User-Facing Changes
`blocks` and `modules` type in `EngineState` changed again. Shouldn't
affect plugins or anything else though really

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

---------

Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2024-03-20 20:16:18 +01:00
..
block.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
call.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
cell_path.rs Add into cell-path for dynamic cell-path creation (#11322) 2024-01-24 16:20:46 -06:00
expr.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
expression.rs Address feedback from PR #12229 (#12242) 2024-03-20 20:16:18 +01:00
import_pattern.rs Error on use path item1 item2, if item1 is not a module (#11183) 2023-12-05 11:38:45 +01:00
match_pattern.rs add match guards (#9621) 2023-07-16 12:25:12 +12:00
mod.rs Restructure nu-protocol in more meaningful units (#11917) 2024-03-10 18:45:45 +01:00
operator.rs Allow operator in constants (#10212) 2023-09-05 16:35:58 +02:00
pipeline.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
unit.rs Restructure nu-protocol in more meaningful units (#11917) 2024-03-10 18:45:45 +01:00