File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
lib/Macros/Sources/SwiftMacros Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1084,9 +1084,13 @@ public struct SwiftifyImportMacro: PeerMacro {
1084
1084
}
1085
1085
var args : [ LabeledExprSyntax ] = [ ]
1086
1086
for dependence in returnDependencies {
1087
- if ( dependence. type == . borrow) {
1087
+ switch dependence. type {
1088
+ case . borrow:
1088
1089
args. append ( LabeledExprSyntax ( expression:
1089
- DeclReferenceExprSyntax ( baseName: TokenSyntax ( " borrow " ) ) ) )
1090
+ DeclReferenceExprSyntax ( baseName: TokenSyntax ( " borrow " ) ) ) )
1091
+ case . copy:
1092
+ args. append ( LabeledExprSyntax ( expression:
1093
+ DeclReferenceExprSyntax ( baseName: TokenSyntax ( " copy " ) ) ) )
1090
1094
}
1091
1095
args. append ( LabeledExprSyntax ( expression:
1092
1096
DeclReferenceExprSyntax ( baseName: TokenSyntax ( tryGetParamName ( funcDecl, dependence. dependsOn) ) !) ,
You can’t perform that action at this time.
0 commit comments