From 980e50f33a88559edcf8b12cdec91fd9bee84ca9 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Fri, 20 Dec 2019 19:01:07 +0000 Subject: s/RawExpr/UnspannedExpr/ --- dhall/src/syntax/ast/expr.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dhall/src/syntax/ast') diff --git a/dhall/src/syntax/ast/expr.rs b/dhall/src/syntax/ast/expr.rs index 93c2311..410fb1d 100644 --- a/dhall/src/syntax/ast/expr.rs +++ b/dhall/src/syntax/ast/expr.rs @@ -99,7 +99,7 @@ pub struct Expr { span: Span, } -pub type RawExpr = ExprKind, Embed>; +pub type UnspannedExpr = ExprKind, Embed>; /// Syntax tree for expressions // Having the recursion out of the enum definition enables writing @@ -232,24 +232,24 @@ impl ExprKind { } impl Expr { - pub fn as_ref(&self) -> &RawExpr { + pub fn as_ref(&self) -> &UnspannedExpr { &self.kind } - pub fn as_mut(&mut self) -> &mut RawExpr { + pub fn as_mut(&mut self) -> &mut UnspannedExpr { &mut self.kind } pub fn span(&self) -> Span { self.span.clone() } - pub fn new(kind: RawExpr, span: Span) -> Self { + pub fn new(kind: UnspannedExpr, span: Span) -> Self { Expr { kind: Box::new(kind), span, } } - pub fn rewrap(&self, kind: RawExpr) -> Expr { + pub fn rewrap(&self, kind: UnspannedExpr) -> Expr { Expr { kind: Box::new(kind), span: self.span.clone(), -- cgit v1.2.3