Skip to content

Commit cecb40d

Browse files
committed
Add keypath method handling for predicate macro.
1 parent 3b31f75 commit cecb40d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/FoundationMacros/PredicateMacro.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ extension KeyPathExprSyntax {
393393
}
394394
case .subscript(let sub):
395395
result = ExprSyntax(SubscriptCallExprSyntax(calledExpression: result, arguments: sub.arguments))
396+
case .method(let method):
397+
result = ExprSyntax(FunctionCallExprSyntax(calledExpression: method, arguments: method.arguments))
396398
#if FOUNDATION_FRAMEWORK
397399
default:
398400
return nil

0 commit comments

Comments
 (0)