From 0e5c93c398645d39fceb98d054f1a7e67025b4fd Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 4 May 2019 16:50:38 +0200 Subject: Keep Spans through normalization and typechecking --- dhall/src/expr.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'dhall/src/expr.rs') diff --git a/dhall/src/expr.rs b/dhall/src/expr.rs index db426ce..5bde68f 100644 --- a/dhall/src/expr.rs +++ b/dhall/src/expr.rs @@ -204,16 +204,15 @@ impl Normalized { pub(crate) fn from_thunk_and_type(th: Thunk, t: Type) -> Self { Normalized(TypedInternal::from_thunk_and_type(th, t)) } - // Deprecated - pub(crate) fn as_expr(&self) -> SubExpr { - self.0.to_expr() - } pub(crate) fn to_expr(&self) -> SubExpr { self.0.to_expr() } pub(crate) fn to_value(&self) -> Value { self.0.to_value() } + pub(crate) fn to_thunk(&self) -> Thunk { + self.0.to_thunk() + } #[allow(dead_code)] pub(crate) fn unnote(self) -> Normalized { Normalized(self.0) -- cgit v1.2.3