File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Sources/PrincipleMacros/Syntax/Extensions Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,25 @@ extension GenericArgumentClauseSyntax {
114
114
GenericArgumentClauseSyntax (
115
115
arguments: GenericArgumentListSyntax (
116
116
arguments. map { element in
117
+ #if canImport(SwiftSyntax601)
118
+ switch element. argument {
119
+ case . type( let type) :
120
+ GenericArgumentSyntax (
121
+ argument: . type( type. standardized) ,
122
+ trailingComma: element. trailingComma? . trimmed. withTrailingSpace
123
+ )
124
+ default :
125
+ GenericArgumentSyntax (
126
+ argument: element. argument,
127
+ trailingComma: element. trailingComma? . trimmed. withTrailingSpace
128
+ )
129
+ }
130
+ #else
117
131
GenericArgumentSyntax (
118
132
argument: element. argument. standardized,
119
133
trailingComma: element. trailingComma? . trimmed. withTrailingSpace
120
134
)
135
+ #endif
121
136
}
122
137
)
123
138
)
You can’t perform that action at this time.
0 commit comments