nushell/crates/nu-protocol/src/ast
zc he 164a089656
refactor(completion): AST traverse to find the inner-most expression to complete (#14973)
# Description

As discussed
[here](https://github.com/nushell/nushell/pull/14856#issuecomment-2623393017)
and [here](https://github.com/nushell/nushell/discussions/14868).

I feel this method is generally better. As for the new-parser, we can
simply modify the implementation in `traverse.rs` to accommodate.

Next, I'm gonna overhaul the `Completer` trait, so before it gets really
messy, I' think this is the step to put this open for review so we can
check if I'm on track.

This PR closes #13897 (the `|` part)

# User-Facing Changes

# After Submitting
2025-02-06 06:49:13 -06:00
..
block.rs Overhaul $in expressions (#13357) 2024-07-17 16:02:42 -05:00
call.rs refactor(completion): AST traverse to find the inner-most expression to complete (#14973) 2025-02-06 06:49:13 -06:00
cell_path.rs feat(lsp): show value on hover for const variables and CellPaths (#14940) 2025-01-28 06:17:07 -06:00
expr.rs Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
expression.rs Make SpanId and RegId also use new ID struct (#13963) 2024-10-01 13:23:27 +02:00
import_pattern.rs Document public types in nu-protocol (#12906) 2024-07-11 13:30:12 +02:00
keyword.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
match_pattern.rs Change how and and or operations are compiled to IR to support custom values (#14653) 2024-12-25 06:12:53 -06:00
mod.rs refactor(completion): AST traverse to find the inner-most expression to complete (#14973) 2025-02-06 06:49:13 -06:00
operator.rs Add new operators has and not-has (#14841) 2025-01-17 06:20:00 -06:00
pipeline.rs Overhaul $in expressions (#13357) 2024-07-17 16:02:42 -05:00
range.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
table.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
traverse.rs refactor(completion): AST traverse to find the inner-most expression to complete (#14973) 2025-02-06 06:49:13 -06:00
unit.rs Add Filesize type (#14369) 2024-11-29 21:24:17 +00:00
value_with_unit.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00