@@ -15,11 +15,11 @@ extension ASTGenVisitor {
15
15
TypeAliasDecl_create (
16
16
astContext: self . ctx,
17
17
declContext: self . declContext,
18
- typealiasKeywordLoc: self . bridgedSourceLoc ( for : node . typealiasKeyword ) ,
18
+ typealiasKeywordLoc: node . typealiasKeyword . bridgedSourceLoc ( in : self ) ,
19
19
name: name,
20
20
nameLoc: nameLoc,
21
21
genericParamList: self . visit ( node. genericParameterClause) ? . rawValue,
22
- equalLoc: self . bridgedSourceLoc ( for : node. initializer. equal) ,
22
+ equalLoc: node. initializer. equal. bridgedSourceLoc ( in : self ) ,
23
23
underlyingType: self . visit ( node. initializer. value) . rawValue,
24
24
genericWhereClause: self . visit ( node. genericWhereClause) ? . rawValue
25
25
)
@@ -32,7 +32,7 @@ extension ASTGenVisitor {
32
32
let decl = EnumDecl_create (
33
33
astContext: self . ctx,
34
34
declContext: self . declContext,
35
- enumKeywordLoc: self . bridgedSourceLoc ( for : node . enumKeyword ) ,
35
+ enumKeywordLoc: node . enumKeyword . bridgedSourceLoc ( in : self ) ,
36
36
name: name,
37
37
nameLoc: nameLoc,
38
38
genericParamList: self . visit ( node. genericParameterClause) ? . rawValue,
@@ -54,7 +54,7 @@ extension ASTGenVisitor {
54
54
let decl = StructDecl_create (
55
55
astContext: self . ctx,
56
56
declContext: self . declContext,
57
- structKeywordLoc: self . bridgedSourceLoc ( for : node . structKeyword ) ,
57
+ structKeywordLoc: node . structKeyword . bridgedSourceLoc ( in : self ) ,
58
58
name: name,
59
59
nameLoc: nameLoc,
60
60
genericParamList: self . visit ( node. genericParameterClause) ? . rawValue,
@@ -76,7 +76,7 @@ extension ASTGenVisitor {
76
76
let decl = ClassDecl_create (
77
77
astContext: self . ctx,
78
78
declContext: self . declContext,
79
- classKeywordLoc: self . bridgedSourceLoc ( for : node . classKeyword ) ,
79
+ classKeywordLoc: node . classKeyword . bridgedSourceLoc ( in : self ) ,
80
80
name: name,
81
81
nameLoc: nameLoc,
82
82
genericParamList: self . visit ( node. genericParameterClause) ? . rawValue,
@@ -99,7 +99,7 @@ extension ASTGenVisitor {
99
99
let decl = ClassDecl_create (
100
100
astContext: self . ctx,
101
101
declContext: self . declContext,
102
- classKeywordLoc: self . bridgedSourceLoc ( for : node . actorKeyword ) ,
102
+ classKeywordLoc: node . actorKeyword . bridgedSourceLoc ( in : self ) ,
103
103
name: name,
104
104
nameLoc: nameLoc,
105
105
genericParamList: self . visit ( node. genericParameterClause) ? . rawValue,
@@ -125,7 +125,7 @@ extension ASTGenVisitor {
125
125
let decl = ProtocolDecl_create (
126
126
astContext: self . ctx,
127
127
declContext: self . declContext,
128
- protocolKeywordLoc: self . bridgedSourceLoc ( for : node . protocolKeyword ) ,
128
+ protocolKeywordLoc: node . protocolKeyword . bridgedSourceLoc ( in : self ) ,
129
129
name: name,
130
130
nameLoc: nameLoc,
131
131
primaryAssociatedTypeNames: primaryAssociatedTypeNames. bridgedArray ( in: self ) ,
@@ -148,7 +148,7 @@ extension ASTGenVisitor {
148
148
AssociatedTypeDecl_create (
149
149
astContext: self . ctx,
150
150
declContext: self . declContext,
151
- associatedtypeKeywordLoc: self . bridgedSourceLoc ( for : node . associatedtypeKeyword ) ,
151
+ associatedtypeKeywordLoc: node . associatedtypeKeyword . bridgedSourceLoc ( in : self ) ,
152
152
name: name,
153
153
nameLoc: nameLoc,
154
154
inheritedTypes: self . visit ( node. inheritanceClause? . inheritedTypes) ,
@@ -166,7 +166,7 @@ extension ASTGenVisitor {
166
166
let decl = ExtensionDecl_create (
167
167
astContext: self . ctx,
168
168
declContext: self . declContext,
169
- extensionKeywordLoc: self . bridgedSourceLoc ( for : node . extensionKeyword ) ,
169
+ extensionKeywordLoc: node . extensionKeyword . bridgedSourceLoc ( in : self ) ,
170
170
extendedType: self . visit ( node. extendedType) . rawValue,
171
171
inheritedTypes: self . visit ( node. inheritanceClause? . inheritedTypes) ,
172
172
genericWhereClause: self . visit ( node. genericWhereClause) ? . rawValue,
@@ -194,7 +194,7 @@ extension ASTGenVisitor {
194
194
name: name,
195
195
nameLoc: nameLoc,
196
196
parameterList: self . visit ( node. parameterClause) ? . rawValue,
197
- equalsLoc: self . bridgedSourceLoc ( for : node. rawValue? . equal) ,
197
+ equalsLoc: ( node. rawValue? . equal) . bridgedSourceLoc ( in : self ) ,
198
198
rawValue: self . visit ( node. rawValue? . value) ? . rawValue
199
199
)
200
200
)
@@ -204,7 +204,7 @@ extension ASTGenVisitor {
204
204
. decl(
205
205
EnumCaseDecl_create (
206
206
declContext: self . declContext,
207
- caseKeywordLoc: self . bridgedSourceLoc ( for : node . caseKeyword ) ,
207
+ caseKeywordLoc: node . caseKeyword . bridgedSourceLoc ( in : self ) ,
208
208
elements: node. elements. lazy. map { self . visit ( $0) . rawValue } . bridgedArray ( in: self )
209
209
)
210
210
)
@@ -225,7 +225,7 @@ extension ASTGenVisitor {
225
225
VarDecl_create (
226
226
astContext: self . ctx,
227
227
declContext: self . declContext,
228
- bindingKeywordLoc: self . bridgedSourceLoc ( for : node . bindingSpecifier ) ,
228
+ bindingKeywordLoc: node . bindingSpecifier . bridgedSourceLoc ( in : self ) ,
229
229
nameExpr: pattern,
230
230
initializer: initializer,
231
231
isStatic: isStatic,
@@ -248,13 +248,13 @@ extension ASTGenVisitor {
248
248
astContext: self . ctx,
249
249
declContext: self . declContext,
250
250
staticLoc: staticLoc,
251
- funcKeywordLoc: self . bridgedSourceLoc ( for : node . funcKeyword ) ,
251
+ funcKeywordLoc: node . funcKeyword . bridgedSourceLoc ( in : self ) ,
252
252
name: name,
253
253
nameLoc: nameLoc,
254
254
genericParamList: self . visit ( node. genericParameterClause) ? . rawValue,
255
255
parameterList: self . visit ( node. signature. parameterClause) . rawValue,
256
- asyncSpecifierLoc: self . bridgedSourceLoc ( for : node. signature. effectSpecifiers? . asyncSpecifier) ,
257
- throwsSpecifierLoc: self . bridgedSourceLoc ( for : node. signature. effectSpecifiers? . throwsSpecifier) ,
256
+ asyncSpecifierLoc: ( node. signature. effectSpecifiers? . asyncSpecifier) . bridgedSourceLoc ( in : self ) ,
257
+ throwsSpecifierLoc: ( node. signature. effectSpecifiers? . throwsSpecifier) . bridgedSourceLoc ( in : self ) ,
258
258
returnType: self . visit ( node. signature. returnClause? . type) ? . rawValue,
259
259
genericWhereClause: self . visit ( node. genericWhereClause) ? . rawValue
260
260
)
@@ -272,13 +272,13 @@ extension ASTGenVisitor {
272
272
let decl = ConstructorDecl_create (
273
273
astContext: self . ctx,
274
274
declContext: self . declContext,
275
- initKeywordLoc: self . bridgedSourceLoc ( for : node . initKeyword ) ,
276
- failabilityMarkLoc: self . bridgedSourceLoc ( for : node . optionalMark ) ,
275
+ initKeywordLoc: node . initKeyword . bridgedSourceLoc ( in : self ) ,
276
+ failabilityMarkLoc: node . optionalMark . bridgedSourceLoc ( in : self ) ,
277
277
isIUO: node. optionalMark? . tokenKind == . exclamationMark,
278
278
genericParamList: self . visit ( node. genericParameterClause) ? . rawValue,
279
279
parameterList: self . visit ( node. signature. parameterClause) . rawValue,
280
- asyncSpecifierLoc: self . bridgedSourceLoc ( for : node. signature. effectSpecifiers? . asyncSpecifier) ,
281
- throwsSpecifierLoc: self . bridgedSourceLoc ( for : node. signature. effectSpecifiers? . throwsSpecifier) ,
280
+ asyncSpecifierLoc: ( node. signature. effectSpecifiers? . asyncSpecifier) . bridgedSourceLoc ( in : self ) ,
281
+ throwsSpecifierLoc: ( node. signature. effectSpecifiers? . throwsSpecifier) . bridgedSourceLoc ( in : self ) ,
282
282
genericWhereClause: self . visit ( node. genericWhereClause) ? . rawValue
283
283
)
284
284
@@ -295,7 +295,7 @@ extension ASTGenVisitor {
295
295
let decl = DestructorDecl_create (
296
296
astContext: self . ctx,
297
297
declContext: self . declContext,
298
- deinitKeywordLoc: self . bridgedSourceLoc ( for : node . deinitKeyword )
298
+ deinitKeywordLoc: node . deinitKeyword . bridgedSourceLoc ( in : self )
299
299
)
300
300
301
301
if let body = node. body {
@@ -339,10 +339,10 @@ extension ASTGenVisitor {
339
339
astContext: self . ctx,
340
340
declContext: self . declContext,
341
341
fixity: fixity,
342
- operatorKeywordLoc: self . bridgedSourceLoc ( for : node . operatorKeyword ) ,
342
+ operatorKeywordLoc: node . operatorKeyword . bridgedSourceLoc ( in : self ) ,
343
343
name: name,
344
344
nameLoc: nameLoc,
345
- colonLoc: self . bridgedSourceLoc ( for : node. operatorPrecedenceAndTypes? . colon) ,
345
+ colonLoc: ( node. operatorPrecedenceAndTypes? . colon) . bridgedSourceLoc ( in : self ) ,
346
346
precedenceGroupName: precedenceGroupName,
347
347
PrecedenceGroupLoc: precedenceGroupLoc
348
348
)
@@ -440,21 +440,21 @@ extension ASTGenVisitor {
440
440
return . decl(
441
441
PrecedenceGroupDecl_create (
442
442
declContext: self . declContext,
443
- precedencegroupKeywordLoc: self . bridgedSourceLoc ( for : node . precedencegroupKeyword ) ,
443
+ precedencegroupKeywordLoc: node . precedencegroupKeyword . bridgedSourceLoc ( in : self ) ,
444
444
name: name,
445
445
nameLoc: nameLoc,
446
- leftBraceLoc: self . bridgedSourceLoc ( for : node . leftBrace ) ,
447
- associativityLabelLoc: self . bridgedSourceLoc ( for : body. associativity? . associativityLabel) ,
448
- associativityValueLoc: self . bridgedSourceLoc ( for : body. associativity? . value) ,
446
+ leftBraceLoc: node . leftBrace . bridgedSourceLoc ( in : self ) ,
447
+ associativityLabelLoc: ( body. associativity? . associativityLabel) . bridgedSourceLoc ( in : self ) ,
448
+ associativityValueLoc: ( body. associativity? . value) . bridgedSourceLoc ( in : self ) ,
449
449
associativity: associativityValue,
450
- assignmentLabelLoc: self . bridgedSourceLoc ( for : body. assignment? . assignmentLabel) ,
451
- assignmentValueLoc: self . bridgedSourceLoc ( for : body. assignment? . value) ,
450
+ assignmentLabelLoc: ( body. assignment? . assignmentLabel) . bridgedSourceLoc ( in : self ) ,
451
+ assignmentValueLoc: ( body. assignment? . value) . bridgedSourceLoc ( in : self ) ,
452
452
isAssignment: assignmentValue,
453
- higherThanKeywordLoc: self . bridgedSourceLoc ( for : body. higherThanRelation? . higherThanOrLowerThanLabel) ,
453
+ higherThanKeywordLoc: ( body. higherThanRelation? . higherThanOrLowerThanLabel) . bridgedSourceLoc ( in : self ) ,
454
454
higherThanNames: self . visit ( body. higherThanRelation? . precedenceGroups) ,
455
- lowerThanKeywordLoc: self . bridgedSourceLoc ( for : body. lowerThanRelation? . higherThanOrLowerThanLabel) ,
455
+ lowerThanKeywordLoc: ( body. lowerThanRelation? . higherThanOrLowerThanLabel) . bridgedSourceLoc ( in : self ) ,
456
456
lowerThanNames: self . visit ( body. lowerThanRelation? . precedenceGroups) ,
457
- rightBraceLoc: self . bridgedSourceLoc ( for : node . rightBrace )
457
+ rightBraceLoc: node . rightBrace . bridgedSourceLoc ( in : self )
458
458
)
459
459
)
460
460
}
@@ -495,9 +495,9 @@ extension ASTGenVisitor {
495
495
ImportDecl_create (
496
496
astContext: self . ctx,
497
497
declContext: self . declContext,
498
- importKeywordLoc: self . bridgedSourceLoc ( for : node . importKeyword ) ,
498
+ importKeywordLoc: node . importKeyword . bridgedSourceLoc ( in : self ) ,
499
499
importKind: importKind,
500
- importKindLoc: self . bridgedSourceLoc ( for : node . importKindSpecifier ) ,
500
+ importKindLoc: node . importKindSpecifier . bridgedSourceLoc ( in : self ) ,
501
501
path: node. path. lazy. map {
502
502
$0. name. bridgedIdentifierAndSourceLoc ( in: self ) as BridgedIdentifierAndSourceLoc
503
503
} . bridgedArray ( in: self )
0 commit comments