1
1
mirror of https://github.com/github/semantic.git synced 2024-12-28 09:21:35 +03:00

Free.Roll encodes its case explicitly.

This commit is contained in:
Rob Rix 2015-10-08 07:30:34 -04:00
parent 7dd861169f
commit 0ebed9599b

View File

@ -175,6 +175,10 @@ extension Free {
"pure": ifPure($0), "pure": ifPure($0),
]) ])
}, },
ifRoll: { $0.JSON(ifLeaf: ifLeaf, ifRecur: { $0.JSON(ifPure: ifPure, ifLeaf: ifLeaf) }) }) ifRoll: {
Doubt.JSON.Dictionary([
"roll": $0.JSON(ifLeaf: ifLeaf, ifRecur: { $0.JSON(ifPure: ifPure, ifLeaf: ifLeaf) })
])
})
} }
} }