diff --git a/Sources/DependenciesMacrosPlugin/DependencyEndpointMacro.swift b/Sources/DependenciesMacrosPlugin/DependencyEndpointMacro.swift index 4deb2416..6c4c401c 100644 --- a/Sources/DependenciesMacrosPlugin/DependencyEndpointMacro.swift +++ b/Sources/DependenciesMacrosPlugin/DependencyEndpointMacro.swift @@ -15,7 +15,8 @@ public enum DependencyEndpointMacro: AccessorMacro, PeerMacro { guard let property = declaration.as(VariableDeclSyntax.self), let binding = property.bindings.first, - let identifier = binding.pattern.as(IdentifierPatternSyntax.self)?.identifier.trimmedDescription.trimmedBackticks, + let identifier = binding.pattern.as(IdentifierPatternSyntax.self)?.identifier + .trimmedDescription.trimmedBackticks, property.isClosure else { return []