@@ -105,7 +105,7 @@ extension ASTGenVisitor {
105
105
underlyingType: self . generate ( type: node. initializer. value) ,
106
106
genericWhereClause: self . generate ( genericWhereClause: node. genericWhereClause)
107
107
)
108
- decl. asDecl. setAttrs ( attrs. attributes)
108
+ decl. asDecl. attrs = attrs . attributes
109
109
return decl
110
110
}
111
111
@@ -129,7 +129,7 @@ extension ASTGenVisitor {
129
129
end: node. memberBlock. rightBrace
130
130
)
131
131
)
132
- decl. asDecl. setAttrs ( attrs. attributes)
132
+ decl. asDecl. attrs = attrs . attributes
133
133
134
134
self . withDeclContext ( decl. asDeclContext) {
135
135
decl. setParsedMembers ( self . generate ( memberBlockItemList: node. memberBlock. members) . lazy. bridgedArray ( in: self ) )
@@ -158,7 +158,7 @@ extension ASTGenVisitor {
158
158
end: node. memberBlock. rightBrace
159
159
)
160
160
)
161
- decl. asDecl. setAttrs ( attrs. attributes)
161
+ decl. asDecl. attrs = attrs . attributes
162
162
163
163
self . withDeclContext ( decl. asDeclContext) {
164
164
decl. setParsedMembers ( self . generate ( memberBlockItemList: node. memberBlock. members) . lazy. bridgedArray ( in: self ) )
@@ -188,7 +188,7 @@ extension ASTGenVisitor {
188
188
) ,
189
189
isActor: false
190
190
)
191
- decl. asDecl. setAttrs ( attrs. attributes)
191
+ decl. asDecl. attrs = attrs . attributes
192
192
193
193
self . withDeclContext ( decl. asDeclContext) {
194
194
decl. setParsedMembers ( self . generate ( memberBlockItemList: node. memberBlock. members) . lazy. bridgedArray ( in: self ) )
@@ -218,7 +218,7 @@ extension ASTGenVisitor {
218
218
) ,
219
219
isActor: true
220
220
)
221
- decl. asDecl. setAttrs ( attrs. attributes)
221
+ decl. asDecl. attrs = attrs . attributes
222
222
223
223
self . withDeclContext ( decl. asDeclContext) {
224
224
decl. setParsedMembers ( self . generate ( memberBlockItemList: node. memberBlock. members) . lazy. bridgedArray ( in: self ) )
@@ -250,7 +250,7 @@ extension ASTGenVisitor {
250
250
end: node. memberBlock. rightBrace
251
251
)
252
252
)
253
- decl. asDecl. setAttrs ( attrs. attributes)
253
+ decl. asDecl. attrs = attrs . attributes
254
254
255
255
self . withDeclContext ( decl. asDeclContext) {
256
256
decl. setParsedMembers ( self . generate ( memberBlockItemList: node. memberBlock. members) . lazy. bridgedArray ( in: self ) )
@@ -275,7 +275,7 @@ extension ASTGenVisitor {
275
275
defaultType: self . generate ( type: node. initializer? . value) ,
276
276
genericWhereClause: self . generate ( genericWhereClause: node. genericWhereClause)
277
277
)
278
- decl. asDecl. setAttrs ( attrs. attributes)
278
+ decl. asDecl. attrs = attrs . attributes
279
279
return decl
280
280
}
281
281
}
@@ -297,7 +297,7 @@ extension ASTGenVisitor {
297
297
end: node. memberBlock. rightBrace
298
298
)
299
299
)
300
- decl. asDecl. setAttrs ( attrs. attributes)
300
+ decl. asDecl. attrs = attrs . attributes
301
301
302
302
self . withDeclContext ( decl. asDeclContext) {
303
303
decl. setParsedMembers ( self . generate ( memberBlockItemList: node. memberBlock. members) . lazy. bridgedArray ( in: self ) )
@@ -334,7 +334,7 @@ extension ASTGenVisitor {
334
334
guard let elemDecl = self . generate ( enumCaseElement: elem) else {
335
335
return nil
336
336
}
337
- elemDecl. asDecl. setAttrs ( attrs. attributes)
337
+ elemDecl. asDecl. attrs = attrs . attributes
338
338
return elemDecl
339
339
} )
340
340
return . createParsed(
@@ -564,7 +564,7 @@ extension ASTGenVisitor {
564
564
arrowLoc: self . generateSourceLoc ( node. returnClause. arrow) ,
565
565
returnType: self . generate ( type: node. returnClause. type)
566
566
)
567
- subscriptDecl. asDecl. setAttrs ( attrs. attributes)
567
+ subscriptDecl. asDecl. attrs = attrs . attributes
568
568
569
569
if let accessors = node. accessorBlock {
570
570
let storage = subscriptDecl. asAbstractStorageDecl
@@ -599,7 +599,7 @@ extension ASTGenVisitor {
599
599
returnType: self . generate ( type: node. signature. returnClause? . type) ,
600
600
genericWhereClause: self . generate ( genericWhereClause: node. genericWhereClause)
601
601
)
602
- decl. asDecl. setAttrs ( attrs. attributes)
602
+ decl. asDecl. attrs = attrs . attributes
603
603
604
604
if let body = node. body {
605
605
self . withDeclContext ( decl. asDeclContext) {
@@ -626,7 +626,7 @@ extension ASTGenVisitor {
626
626
thrownType: self . generate ( type: node. signature. effectSpecifiers? . thrownError) ,
627
627
genericWhereClause: self . generate ( genericWhereClause: node. genericWhereClause)
628
628
)
629
- decl. asDecl. setAttrs ( attrs. attributes)
629
+ decl. asDecl. attrs = attrs . attributes
630
630
631
631
if let body = node. body {
632
632
self . withDeclContext ( decl. asDeclContext) {
@@ -645,7 +645,7 @@ extension ASTGenVisitor {
645
645
declContext: self . declContext,
646
646
deinitKeywordLoc: self . generateSourceLoc ( node. deinitKeyword)
647
647
)
648
- decl. asDecl. setAttrs ( attrs. attributes)
648
+ decl. asDecl. attrs = attrs . attributes
649
649
650
650
if let body = node. body {
651
651
self . withDeclContext ( decl. asDeclContext) {
@@ -697,7 +697,7 @@ extension ASTGenVisitor {
697
697
rightAngleLoc: info. rightAngleLoc,
698
698
args: info. arguments
699
699
)
700
- decl. asDecl. setAttrs ( attrs. attributes)
700
+ decl. asDecl. attrs = attrs . attributes
701
701
702
702
return decl
703
703
}
@@ -854,7 +854,7 @@ extension ASTGenVisitor {
854
854
lowerThanNames: self . generate ( precedenceGroupNameList: body. lowerThanRelation? . precedenceGroups) ,
855
855
rightBraceLoc: self . generateSourceLoc ( node. rightBrace)
856
856
)
857
- decl. asDecl. setAttrs ( attrs. attributes)
857
+ decl. asDecl. attrs = attrs . attributes
858
858
return decl
859
859
}
860
860
}
@@ -901,7 +901,7 @@ extension ASTGenVisitor {
901
901
self . generateLocatedIdentifier ( $0. name)
902
902
} . bridgedArray ( in: self )
903
903
)
904
- decl. asDecl. setAttrs ( attrs. attributes)
904
+ decl. asDecl. attrs = attrs . attributes
905
905
return decl
906
906
}
907
907
}
0 commit comments