Pipeline sink refactor (#1359)

* Refactor pipeline ahead of block changes. Add '-c' commandline option

* Update pipelining an error value

* Fmt

* Clippy

* Add stdin redirect for -c flag

* Add stdin redirect for -c flag
This commit is contained in:
Jonathan Turner
2020-02-08 18:24:33 -08:00
committed by GitHub
parent 3687603799
commit 5f4fae5b06
11 changed files with 221 additions and 81 deletions

View File

@ -204,6 +204,12 @@ pub struct SpannedExpression {
pub span: Span,
}
impl SpannedExpression {
pub fn new(expr: Expression, span: Span) -> SpannedExpression {
SpannedExpression { expr, span }
}
}
impl std::ops::Deref for SpannedExpression {
type Target = Expression;