summaryrefslogtreecommitdiff
path: root/src/pretty.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-12 16:00:09 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-12 16:07:42 +0200
commitd002cdf451e1c6efbf7cd7f2303264526b6f8a92 (patch)
tree31b8446728a93550cab57d50bba92eb32f280678 /src/pretty.rs
parentccb4be4da4e8aeda115b22f2a0b586a86f5e31bd (diff)
Named arguments for user defined functions
Diffstat (limited to 'src/pretty.rs')
-rw-r--r--src/pretty.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pretty.rs b/src/pretty.rs
index bd388b56..52300546 100644
--- a/src/pretty.rs
+++ b/src/pretty.rs
@@ -370,6 +370,15 @@ impl Pretty for ClosureExpr {
}
}
+impl Pretty for ClosureParam {
+ fn pretty(&self, p: &mut Printer) {
+ match self {
+ Self::Pos(ident) => ident.pretty(p),
+ Self::Named(named) => named.pretty(p),
+ }
+ }
+}
+
impl Pretty for WithExpr {
fn pretty(&self, p: &mut Printer) {
self.callee.pretty(p);