nushell/crates/nu-parser/tests
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
..
test_lex.rs Refactor to support multiple parse errors (#8765) 2023-04-07 12:35:45 +12:00
test_parser.rs Remove unused Index(Mut) impls on AST types (#11903) 2024-02-21 18:02:30 +08:00
test_parser_unicode_escapes.rs Remove unused Index(Mut) impls on AST types (#11903) 2024-02-21 18:02:30 +08:00