diff options
author | Nadrieril Feneanar | 2019-09-02 23:15:28 +0200 |
---|---|---|
committer | GitHub | 2019-09-02 23:15:28 +0200 |
commit | a92d09259fc1db995a036eb2f22491c7024ca878 (patch) | |
tree | d3dc2c2fd2b98c2938b01e7ffb5bf2a085b32feb /dhall_syntax/src/core/expr.rs | |
parent | 737abd9be6d35bbce784d9cf249edf7ad14677d6 (diff) | |
parent | f892f0bdb1dc9a8f2d1cda245e17c28fcf1090b3 (diff) |
Merge pull request #110 from Nadrieril/parser-proc-macro
Rewrite parser macros as proc_macros
Diffstat (limited to '')
-rw-r--r-- | dhall_syntax/src/core/expr.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/dhall_syntax/src/core/expr.rs b/dhall_syntax/src/core/expr.rs index 51b6c47..eeee4d8 100644 --- a/dhall_syntax/src/core/expr.rs +++ b/dhall_syntax/src/core/expr.rs @@ -381,15 +381,10 @@ pub fn rc<E>(x: RawExpr<E>) -> Expr<E> { Expr::from_expr_no_span(x) } -pub(crate) fn spanned( - span: Span, - x: crate::parser::ParsedRawExpr, -) -> crate::parser::ParsedExpr { +pub(crate) fn spanned<E>(span: Span, x: RawExpr<E>) -> Expr<E> { Expr::new(x, span) } -pub(crate) fn unspanned( - x: crate::parser::ParsedRawExpr, -) -> crate::parser::ParsedExpr { +pub(crate) fn unspanned<E>(x: RawExpr<E>) -> Expr<E> { Expr::from_expr_no_span(x) } |