Skip to content

Commit 4866150

Browse files
committed
[Distributed][Macro] Imrpve diagnostics, skip copying assoc types etc.
1 parent 03c948d commit 4866150

File tree

5 files changed

+3682
-0
lines changed

5 files changed

+3682
-0
lines changed

lib/Macros/Sources/SwiftMacros/DistributedProtocolMacro.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ extension DistributedProtocolMacro {
4949

5050
let requirementStubs =
5151
proto.memberBlock.members // requirements
52+
.filter { member in
53+
switch member.decl.kind {
54+
case .functionDecl: return true
55+
case .variableDecl: return true
56+
default:
57+
return false
58+
}
59+
}
5260
.map { member in
5361
stubMethodDecl(access: accessModifiers, member.trimmed)
5462
}

0 commit comments

Comments
 (0)