nushell/crates/nu-protocol/src/ast
Stefan Holderbach 6e590fe0a2
Remove unused Index(Mut) impls on AST types (#11903)
# Description
Both `Block` and `Pipeline` had `Index`/`IndexMut` implementations to
access their elements, that are currently unused.
Explicit helpers or iteration would generally be preferred anyways but
in the current state the inner containers are `pub` and are liberally
used. (Sometimes with potentially panicking indexing or also iteration)

As it is potentially unclear what the meaning of the element from a
block or pipeline queried by a usize is, let's remove it entirely until
we come up with a better API.

# User-Facing Changes
None

Plugin authors shouldn't dig into AST internals
2024-02-21 18:02:30 +08:00
..
block.rs Remove unused Index(Mut) impls on AST types (#11903) 2024-02-21 18:02:30 +08:00
call.rs Fix incorrect handling of boolean flags for builtin commands (#11492) 2024-01-11 17:19:48 +02:00
cell_path.rs Add into cell-path for dynamic cell-path creation (#11322) 2024-01-24 16:20:46 -06:00
expr.rs Unify glob behavior on open, rm, cp-old, mv, umv, cp and du commands (#11621) 2024-01-26 21:57:35 +08:00
expression.rs Unify glob behavior on open, rm, cp-old, mv, umv, cp and du commands (#11621) 2024-01-26 21:57:35 +08: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 Add pattern matching (#8590) 2023-03-24 14:52:01 +13:00
operator.rs Allow operator in constants (#10212) 2023-09-05 16:35:58 +02:00
pipeline.rs Remove unused Index(Mut) impls on AST types (#11903) 2024-02-21 18:02:30 +08:00