summaryrefslogtreecommitdiff
path: root/dhall_generator/src
diff options
context:
space:
mode:
authorNadrieril2019-04-18 11:58:21 +0200
committerNadrieril2019-04-18 11:58:21 +0200
commitbb1f698c23a83f60020a72bb5be1f9a386c60d44 (patch)
tree20b5787b4bb53c6005ec60226d549ef34f0ceb0d /dhall_generator/src
parent22aa0081d314453bd1bb607384da3ed983dc4364 (diff)
Start cleaning up the mess of mapping functions
Diffstat (limited to 'dhall_generator/src')
-rw-r--r--dhall_generator/src/quote.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall_generator/src/quote.rs b/dhall_generator/src/quote.rs
index c335666..7128511 100644
--- a/dhall_generator/src/quote.rs
+++ b/dhall_generator/src/quote.rs
@@ -103,7 +103,7 @@ fn quote_subexpr(
ctx: &Context<Label, ()>,
) -> TokenStream {
use dhall_core::ExprF::*;
- match expr.as_ref().map_ref(
+ match expr.as_ref().map_ref_with_special_handling_of_binders(
|e| quote_subexpr(e, ctx),
|l, e| quote_subexpr(e, &ctx.insert(l.clone(), ())),
|_| unreachable!(),
@@ -138,7 +138,7 @@ fn quote_subexpr(
// to be of type SubExpr<_, _>.
fn quote_expr(expr: &Expr<X, X>, ctx: &Context<Label, ()>) -> TokenStream {
use dhall_core::ExprF::*;
- match expr.map_ref(
+ match expr.map_ref_with_special_handling_of_binders(
|e| quote_subexpr(e, ctx),
|l, e| quote_subexpr(e, &ctx.insert(l.clone(), ())),
|_| unreachable!(),