Skip to content

Commit f9273e4

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/FoundationMacros/PredicateMacro.swift

+2
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ extension KeyPathExprSyntax {
394394
case .subscript(let sub):
395395
result = ExprSyntax(SubscriptCallExprSyntax(calledExpression: result, arguments: sub.arguments))
396396
#if FOUNDATION_FRAMEWORK
397+
case .method(let method):
398+
result = ExprSyntax(FunctionCallExprSyntax(calledExpression: method, arguments: method.arguments))
397399
default:
398400
return nil
399401
#endif

0 commit comments

Comments
 (0)