@@ -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. attachParsedAttrs ( 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. attachParsedAttrs ( 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. attachParsedAttrs ( 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. attachParsedAttrs ( 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. attachParsedAttrs ( 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. attachParsedAttrs ( 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. attachParsedAttrs ( 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. attachParsedAttrs ( 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. attachParsedAttrs ( attrs. attributes)
338
338
return elemDecl
339
339
} )
340
340
return . createParsed(
@@ -409,7 +409,7 @@ extension ASTGenVisitor {
409
409
throwsSpecifierLoc: self . generateSourceLoc ( node. effectSpecifiers? . throwsClause) ,
410
410
thrownType: self . generate ( type: node. effectSpecifiers? . thrownError)
411
411
)
412
- accessor. asDecl. setAttrs ( attrs)
412
+ accessor. asDecl. attachParsedAttrs ( attrs)
413
413
if let body = node. body {
414
414
self . withDeclContext ( accessor. asDeclContext) {
415
415
accessor. setParsedBody ( self . generate ( codeBlock: body) )
@@ -570,7 +570,7 @@ extension ASTGenVisitor {
570
570
arrowLoc: self . generateSourceLoc ( node. returnClause. arrow) ,
571
571
returnType: self . generate ( type: node. returnClause. type)
572
572
)
573
- subscriptDecl. asDecl. setAttrs ( attrs. attributes)
573
+ subscriptDecl. asDecl. attachParsedAttrs ( attrs. attributes)
574
574
575
575
if let accessors = node. accessorBlock {
576
576
let storage = subscriptDecl. asAbstractStorageDecl
@@ -605,7 +605,7 @@ extension ASTGenVisitor {
605
605
returnType: self . generate ( type: node. signature. returnClause? . type) ,
606
606
genericWhereClause: self . generate ( genericWhereClause: node. genericWhereClause)
607
607
)
608
- decl. asDecl. setAttrs ( attrs. attributes)
608
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
609
609
610
610
if let body = node. body {
611
611
self . withDeclContext ( decl. asDeclContext) {
@@ -632,7 +632,7 @@ extension ASTGenVisitor {
632
632
thrownType: self . generate ( type: node. signature. effectSpecifiers? . thrownError) ,
633
633
genericWhereClause: self . generate ( genericWhereClause: node. genericWhereClause)
634
634
)
635
- decl. asDecl. setAttrs ( attrs. attributes)
635
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
636
636
637
637
if let body = node. body {
638
638
self . withDeclContext ( decl. asDeclContext) {
@@ -651,7 +651,7 @@ extension ASTGenVisitor {
651
651
declContext: self . declContext,
652
652
deinitKeywordLoc: self . generateSourceLoc ( node. deinitKeyword)
653
653
)
654
- decl. asDecl. setAttrs ( attrs. attributes)
654
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
655
655
656
656
if let body = node. body {
657
657
self . withDeclContext ( decl. asDeclContext) {
@@ -681,7 +681,7 @@ extension ASTGenVisitor {
681
681
resultType: self . generate ( type: node. signature. returnClause? . type) ,
682
682
definition: self . generate ( expr: node. definition? . value)
683
683
)
684
- decl. asDecl. setAttrs ( attrs. attributes) ;
684
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
685
685
return decl;
686
686
}
687
687
}
@@ -703,7 +703,7 @@ extension ASTGenVisitor {
703
703
rightAngleLoc: info. rightAngleLoc,
704
704
args: info. arguments
705
705
)
706
- decl. asDecl. setAttrs ( attrs. attributes)
706
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
707
707
708
708
return decl
709
709
}
@@ -860,7 +860,7 @@ extension ASTGenVisitor {
860
860
lowerThanNames: self . generate ( precedenceGroupNameList: body. lowerThanRelation? . precedenceGroups) ,
861
861
rightBraceLoc: self . generateSourceLoc ( node. rightBrace)
862
862
)
863
- decl. asDecl. setAttrs ( attrs. attributes)
863
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
864
864
return decl
865
865
}
866
866
}
@@ -907,7 +907,7 @@ extension ASTGenVisitor {
907
907
self . generateLocatedIdentifier ( $0. name)
908
908
} . bridgedArray ( in: self )
909
909
)
910
- decl. asDecl. setAttrs ( attrs. attributes)
910
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
911
911
return decl
912
912
}
913
913
}
0 commit comments