mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 15:25:06 +02:00
Support evaluating most expressions
Blocks, paths, and others Plus a bunch of other infra improvements
This commit is contained in:
@ -46,8 +46,8 @@ crate fn evaluate_baseline_expr(
|
||||
}
|
||||
}
|
||||
RawExpression::Block(block) => Ok(Spanned::from_item(
|
||||
Value::Block(Block::new(*block.clone(), source.clone())),
|
||||
block.span(),
|
||||
Value::Block(Block::new(block.clone(), source.clone(), *expr.span())),
|
||||
expr.span(),
|
||||
)),
|
||||
RawExpression::Path(path) => {
|
||||
let value = evaluate_baseline_expr(path.head(), registry, scope, source)?;
|
||||
|
Reference in New Issue
Block a user