mirror of
https://github.com/github/semantic.git
synced 2024-11-25 21:43:07 +03:00
Syntax’s JSON parameter functions do not escape.
This commit is contained in:
parent
73fdb644b2
commit
c058e81183
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user