File tree 1 file changed +2
-2
lines changed
lib/Macros/Sources/SwiftMacros 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ extension DistributedResolvableMacro {
80
80
if var variable = requirement. decl. as ( VariableDeclSyntax . self) {
81
81
variable. modifiers = variable. modifiers. filter { !$0. isAccessControl }
82
82
access. reversed ( ) . forEach { modifier in
83
- variable. modifiers = variable. modifiers. prepending ( modifier )
83
+ variable. modifiers = [ modifier ] + variable. modifiers
84
84
}
85
85
86
86
var accessorStubs : [ String ] = [ ]
@@ -106,7 +106,7 @@ extension DistributedResolvableMacro {
106
106
} else if var fun = requirement. decl. as ( FunctionDeclSyntax . self) {
107
107
fun. modifiers = fun. modifiers. filter { !$0. isAccessControl }
108
108
access. reversed ( ) . forEach { modifier in
109
- fun. modifiers = fun. modifiers. prepending ( modifier )
109
+ fun. modifiers = [ modifier ] + fun. modifiers
110
110
}
111
111
112
112
// normal function stub
You can’t perform that action at this time.
0 commit comments