@@ -1295,7 +1295,7 @@ public struct ClassDeclSyntax: DeclSyntaxProtocol, SyntaxHashable {
1295
1295
enum Cursor : Int {
1296
1296
case attributes
1297
1297
case modifiers
1298
- case classKeyword
1298
+ case classOrActorKeyword
1299
1299
case identifier
1300
1300
case genericParameterClause
1301
1301
case inheritanceClause
@@ -1406,24 +1406,24 @@ public struct ClassDeclSyntax: DeclSyntaxProtocol, SyntaxHashable {
1406
1406
return ClassDeclSyntax ( newData)
1407
1407
}
1408
1408
1409
- public var classKeyword : TokenSyntax {
1409
+ public var classOrActorKeyword : TokenSyntax {
1410
1410
get {
1411
- let childData = data. child ( at: Cursor . classKeyword ,
1411
+ let childData = data. child ( at: Cursor . classOrActorKeyword ,
1412
1412
parent: Syntax ( self ) )
1413
1413
return TokenSyntax ( childData!)
1414
1414
}
1415
1415
set ( value) {
1416
- self = withClassKeyword ( value)
1416
+ self = withClassOrActorKeyword ( value)
1417
1417
}
1418
1418
}
1419
1419
1420
- /// Returns a copy of the receiver with its `classKeyword ` replaced.
1421
- /// - param newChild: The new `classKeyword ` to replace the node's
1422
- /// current `classKeyword `, if present.
1423
- public func withClassKeyword (
1420
+ /// Returns a copy of the receiver with its `classOrActorKeyword ` replaced.
1421
+ /// - param newChild: The new `classOrActorKeyword ` to replace the node's
1422
+ /// current `classOrActorKeyword `, if present.
1423
+ public func withClassOrActorKeyword (
1424
1424
_ newChild: TokenSyntax ? ) -> ClassDeclSyntax {
1425
1425
let raw = newChild? . raw ?? RawSyntax . missingToken ( TokenKind . classKeyword)
1426
- let newData = data. replacingChild ( raw, at: Cursor . classKeyword )
1426
+ let newData = data. replacingChild ( raw, at: Cursor . classOrActorKeyword )
1427
1427
return ClassDeclSyntax ( newData)
1428
1428
}
1429
1429
@@ -1614,7 +1614,7 @@ extension ClassDeclSyntax: CustomReflectable {
1614
1614
return Mirror ( self , children: [
1615
1615
" attributes " : attributes. map ( Syntax . init) ? . asProtocol ( SyntaxProtocol . self) as Any ,
1616
1616
" modifiers " : modifiers. map ( Syntax . init) ? . asProtocol ( SyntaxProtocol . self) as Any ,
1617
- " classKeyword " : Syntax ( classKeyword ) . asProtocol ( SyntaxProtocol . self) ,
1617
+ " classOrActorKeyword " : Syntax ( classOrActorKeyword ) . asProtocol ( SyntaxProtocol . self) ,
1618
1618
" identifier " : Syntax ( identifier) . asProtocol ( SyntaxProtocol . self) ,
1619
1619
" genericParameterClause " : genericParameterClause. map ( Syntax . init) ? . asProtocol ( SyntaxProtocol . self) as Any ,
1620
1620
" inheritanceClause " : inheritanceClause. map ( Syntax . init) ? . asProtocol ( SyntaxProtocol . self) as Any ,
0 commit comments