File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/Macros/Sources/SwiftMacros Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ extension DistributedResolvableMacro {
8080 if var variable = requirement. decl. as ( VariableDeclSyntax . self) {
8181 variable. modifiers = variable. modifiers. filter { !$0. isAccessControl }
8282 access. reversed ( ) . forEach { modifier in
83- variable. modifiers = variable. modifiers. prepending ( modifier )
83+ variable. modifiers = [ modifier ] + variable. modifiers
8484 }
8585
8686 var accessorStubs : [ String ] = [ ]
@@ -106,7 +106,7 @@ extension DistributedResolvableMacro {
106106 } else if var fun = requirement. decl. as ( FunctionDeclSyntax . self) {
107107 fun. modifiers = fun. modifiers. filter { !$0. isAccessControl }
108108 access. reversed ( ) . forEach { modifier in
109- fun. modifiers = fun. modifiers. prepending ( modifier )
109+ fun. modifiers = [ modifier ] + fun. modifiers
110110 }
111111
112112 // normal function stub
You can’t perform that action at this time.
0 commit comments