diff options
author | Nadrieril | 2019-04-18 11:58:21 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-18 11:58:21 +0200 |
commit | bb1f698c23a83f60020a72bb5be1f9a386c60d44 (patch) | |
tree | 20b5787b4bb53c6005ec60226d549ef34f0ceb0d /dhall_generator/src | |
parent | 22aa0081d314453bd1bb607384da3ed983dc4364 (diff) |
Start cleaning up the mess of mapping functions
Diffstat (limited to 'dhall_generator/src')
-rw-r--r-- | dhall_generator/src/quote.rs | 4 |
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!(), |