mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Do a bit more cleanup of block params (#3455)
* Do a bit more cleanup of block params * Do a bit more cleanup of block params
This commit is contained in:
@ -1410,13 +1410,15 @@ fn parse_positional_argument(
|
||||
let mut commands = hir::Pipeline::new(span);
|
||||
commands.push(ClassifiedCommand::Expr(Box::new(arg)));
|
||||
|
||||
let block = hir::Block::new(
|
||||
let mut block = hir::Block::new(
|
||||
Signature::new("<cond>"),
|
||||
vec![Group::new(vec![commands], lite_cmd.span())],
|
||||
IndexMap::new(),
|
||||
span,
|
||||
);
|
||||
|
||||
block.infer_params();
|
||||
|
||||
let arg = SpannedExpression::new(Expression::Block(Arc::new(block)), span);
|
||||
|
||||
idx = new_idx - 1;
|
||||
|
Reference in New Issue
Block a user