@@ -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(
@@ -419,7 +419,7 @@ extension ASTGenVisitor {
419
419
throwsSpecifierLoc: self . generateSourceLoc ( node. effectSpecifiers? . throwsClause) ,
420
420
thrownType: self . generate ( type: node. effectSpecifiers? . thrownError)
421
421
)
422
- accessor. asDecl. setAttrs ( attrs)
422
+ accessor. asDecl. attachParsedAttrs ( attrs)
423
423
if let body = node. body {
424
424
self . withDeclContext ( accessor. asDeclContext) {
425
425
accessor. setParsedBody ( self . generate ( codeBlock: body) )
@@ -580,7 +580,7 @@ extension ASTGenVisitor {
580
580
arrowLoc: self . generateSourceLoc ( node. returnClause. arrow) ,
581
581
returnType: self . generate ( type: node. returnClause. type)
582
582
)
583
- subscriptDecl. asDecl. setAttrs ( attrs. attributes)
583
+ subscriptDecl. asDecl. attachParsedAttrs ( attrs. attributes)
584
584
585
585
if let accessors = node. accessorBlock {
586
586
let storage = subscriptDecl. asAbstractStorageDecl
@@ -615,7 +615,7 @@ extension ASTGenVisitor {
615
615
returnType: self . generate ( type: node. signature. returnClause? . type) ,
616
616
genericWhereClause: self . generate ( genericWhereClause: node. genericWhereClause)
617
617
)
618
- decl. asDecl. setAttrs ( attrs. attributes)
618
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
619
619
620
620
if let body = node. body {
621
621
self . withDeclContext ( decl. asDeclContext) {
@@ -642,7 +642,7 @@ extension ASTGenVisitor {
642
642
thrownType: self . generate ( type: node. signature. effectSpecifiers? . thrownError) ,
643
643
genericWhereClause: self . generate ( genericWhereClause: node. genericWhereClause)
644
644
)
645
- decl. asDecl. setAttrs ( attrs. attributes)
645
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
646
646
647
647
if let body = node. body {
648
648
self . withDeclContext ( decl. asDeclContext) {
@@ -661,7 +661,7 @@ extension ASTGenVisitor {
661
661
declContext: self . declContext,
662
662
deinitKeywordLoc: self . generateSourceLoc ( node. deinitKeyword)
663
663
)
664
- decl. asDecl. setAttrs ( attrs. attributes)
664
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
665
665
666
666
if let body = node. body {
667
667
self . withDeclContext ( decl. asDeclContext) {
@@ -691,7 +691,7 @@ extension ASTGenVisitor {
691
691
resultType: self . generate ( type: node. signature. returnClause? . type) ,
692
692
definition: self . generate ( expr: node. definition? . value)
693
693
)
694
- decl. asDecl. setAttrs ( attrs. attributes) ;
694
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
695
695
return decl;
696
696
}
697
697
}
@@ -713,7 +713,7 @@ extension ASTGenVisitor {
713
713
rightAngleLoc: info. rightAngleLoc,
714
714
args: info. arguments
715
715
)
716
- decl. asDecl. setAttrs ( attrs. attributes)
716
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
717
717
718
718
return decl
719
719
}
@@ -870,7 +870,7 @@ extension ASTGenVisitor {
870
870
lowerThanNames: self . generate ( precedenceGroupNameList: body. lowerThanRelation? . precedenceGroups) ,
871
871
rightBraceLoc: self . generateSourceLoc ( node. rightBrace)
872
872
)
873
- decl. asDecl. setAttrs ( attrs. attributes)
873
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
874
874
return decl
875
875
}
876
876
}
@@ -917,7 +917,7 @@ extension ASTGenVisitor {
917
917
self . generateLocatedIdentifier ( $0. name)
918
918
} . bridgedArray ( in: self )
919
919
)
920
- decl. asDecl. setAttrs ( attrs. attributes)
920
+ decl. asDecl. attachParsedAttrs ( attrs. attributes)
921
921
return decl
922
922
}
923
923
}
0 commit comments