summaryrefslogtreecommitdiff
path: root/dhall/src/syntax/ast
diff options
context:
space:
mode:
authorNadrieril2019-12-20 19:01:07 +0000
committerNadrieril2019-12-20 19:01:07 +0000
commit980e50f33a88559edcf8b12cdec91fd9bee84ca9 (patch)
treef0d5dde2a58e354ad284bd102ca7adf03a941996 /dhall/src/syntax/ast
parent3999e40e06b6282c10cd57c962b6316c374fc041 (diff)
s/RawExpr/UnspannedExpr/
Diffstat (limited to 'dhall/src/syntax/ast')
-rw-r--r--dhall/src/syntax/ast/expr.rs10
1 files changed, 5 insertions, 5 deletions
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<Embed> {
span: Span,
}
-pub type RawExpr<Embed> = ExprKind<Expr<Embed>, Embed>;
+pub type UnspannedExpr<Embed> = ExprKind<Expr<Embed>, Embed>;
/// Syntax tree for expressions
// Having the recursion out of the enum definition enables writing
@@ -232,24 +232,24 @@ impl<SE, E> ExprKind<SE, E> {
}
impl<E> Expr<E> {
- pub fn as_ref(&self) -> &RawExpr<E> {
+ pub fn as_ref(&self) -> &UnspannedExpr<E> {
&self.kind
}
- pub fn as_mut(&mut self) -> &mut RawExpr<E> {
+ pub fn as_mut(&mut self) -> &mut UnspannedExpr<E> {
&mut self.kind
}
pub fn span(&self) -> Span {
self.span.clone()
}
- pub fn new(kind: RawExpr<E>, span: Span) -> Self {
+ pub fn new(kind: UnspannedExpr<E>, span: Span) -> Self {
Expr {
kind: Box::new(kind),
span,
}
}
- pub fn rewrap<E2>(&self, kind: RawExpr<E2>) -> Expr<E2> {
+ pub fn rewrap<E2>(&self, kind: UnspannedExpr<E2>) -> Expr<E2> {
Expr {
kind: Box::new(kind),
span: self.span.clone(),