1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 11:02:26 +03:00

Syntax’s JSON parameter functions do not escape.

This commit is contained in:
Rob Rix 2015-10-16 11:09:07 -04:00
parent 73fdb644b2
commit c058e81183

View File

@ -74,7 +74,7 @@ public func == <F: Equatable, A: Equatable> (left: Syntax<F, A>, right: Syntax<F
// MARK: - JSON
extension Syntax {
public func JSON(ifLeaf ifLeaf: A -> Doubt.JSON, ifRecur: Recur -> Doubt.JSON) -> Doubt.JSON {
public func JSON(@noescape ifLeaf ifLeaf: A -> Doubt.JSON, @noescape ifRecur: Recur -> Doubt.JSON) -> Doubt.JSON {
switch self {
case let .Leaf(a):
return ifLeaf(a)