We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6548a8 commit ca2c9eaCopy full SHA for ca2c9ea
Sources/SpyableMacro/Factories/ClosureFactory.swift
@@ -206,6 +206,6 @@ extension FunctionParameterListSyntax.Element {
206
// Check if the type contains 'inout' anywhere in its description
207
// This works regardless of SwiftSyntax version and handles cases like "isolated inout"
208
let typeDescription = self.type.description.trimmingCharacters(in: .whitespacesAndNewlines)
209
- return typeDescription.contains("inout")
+ return typeDescription.contains(TokenSyntax.keyword(.inout).text)
210
}
211
0 commit comments