@@ -7788,6 +7788,8 @@ public struct DerivativeRegistrationAttributeArgumentsSyntax: SyntaxProtocol, Sy
7788
7788
case ofLabel
7789
7789
case colon
7790
7790
case originalDeclName
7791
+ case period
7792
+ case accessorKind
7791
7793
case comma
7792
7794
case diffParams
7793
7795
}
@@ -7882,6 +7884,55 @@ public struct DerivativeRegistrationAttributeArgumentsSyntax: SyntaxProtocol, Sy
7882
7884
return DerivativeRegistrationAttributeArgumentsSyntax ( newData)
7883
7885
}
7884
7886
7887
+ ///
7888
+ /// The period separating the original declaration name and the
7889
+ /// accessor name.
7890
+ ///
7891
+ public var period : TokenSyntax ? {
7892
+ get {
7893
+ let childData = data. child ( at: Cursor . period,
7894
+ parent: Syntax ( self ) )
7895
+ if childData == nil { return nil }
7896
+ return TokenSyntax ( childData!)
7897
+ }
7898
+ set ( value) {
7899
+ self = withPeriod ( value)
7900
+ }
7901
+ }
7902
+
7903
+ /// Returns a copy of the receiver with its `period` replaced.
7904
+ /// - param newChild: The new `period` to replace the node's
7905
+ /// current `period`, if present.
7906
+ public func withPeriod(
7907
+ _ newChild: TokenSyntax ? ) -> DerivativeRegistrationAttributeArgumentsSyntax {
7908
+ let raw = newChild? . raw
7909
+ let newData = data. replacingChild ( raw, at: Cursor . period)
7910
+ return DerivativeRegistrationAttributeArgumentsSyntax ( newData)
7911
+ }
7912
+
7913
+ /// The accessor name.
7914
+ public var accessorKind : TokenSyntax ? {
7915
+ get {
7916
+ let childData = data. child ( at: Cursor . accessorKind,
7917
+ parent: Syntax ( self ) )
7918
+ if childData == nil { return nil }
7919
+ return TokenSyntax ( childData!)
7920
+ }
7921
+ set ( value) {
7922
+ self = withAccessorKind ( value)
7923
+ }
7924
+ }
7925
+
7926
+ /// Returns a copy of the receiver with its `accessorKind` replaced.
7927
+ /// - param newChild: The new `accessorKind` to replace the node's
7928
+ /// current `accessorKind`, if present.
7929
+ public func withAccessorKind(
7930
+ _ newChild: TokenSyntax ? ) -> DerivativeRegistrationAttributeArgumentsSyntax {
7931
+ let raw = newChild? . raw
7932
+ let newData = data. replacingChild ( raw, at: Cursor . accessorKind)
7933
+ return DerivativeRegistrationAttributeArgumentsSyntax ( newData)
7934
+ }
7935
+
7885
7936
public var comma : TokenSyntax ? {
7886
7937
get {
7887
7938
let childData = data. child ( at: Cursor . comma,
@@ -7929,7 +7980,7 @@ public struct DerivativeRegistrationAttributeArgumentsSyntax: SyntaxProtocol, Sy
7929
7980
7930
7981
public func _validateLayout( ) {
7931
7982
let rawChildren = Array ( RawSyntaxChildren ( Syntax ( self ) ) )
7932
- assert ( rawChildren. count == 5 )
7983
+ assert ( rawChildren. count == 7 )
7933
7984
// Check child #0 child is TokenSyntax
7934
7985
assert ( rawChildren [ 0 ] . raw != nil )
7935
7986
if let raw = rawChildren [ 0 ] . raw {
@@ -7965,12 +8016,28 @@ public struct DerivativeRegistrationAttributeArgumentsSyntax: SyntaxProtocol, Sy
7965
8016
let syntaxChild = Syntax ( syntaxData)
7966
8017
assert ( syntaxChild. is ( TokenSyntax . self) )
7967
8018
}
7968
- // Check child #4 child is DifferentiabilityParamsClauseSyntax or missing
8019
+ // Check child #4 child is TokenSyntax or missing
7969
8020
if let raw = rawChildren [ 4 ] . raw {
7970
8021
let info = rawChildren [ 4 ] . syntaxInfo
7971
8022
let absoluteRaw = AbsoluteRawSyntax ( raw: raw, info: info)
7972
8023
let syntaxData = SyntaxData ( absoluteRaw, parent: Syntax ( self ) )
7973
8024
let syntaxChild = Syntax ( syntaxData)
8025
+ assert ( syntaxChild. is ( TokenSyntax . self) )
8026
+ }
8027
+ // Check child #5 child is TokenSyntax or missing
8028
+ if let raw = rawChildren [ 5 ] . raw {
8029
+ let info = rawChildren [ 5 ] . syntaxInfo
8030
+ let absoluteRaw = AbsoluteRawSyntax ( raw: raw, info: info)
8031
+ let syntaxData = SyntaxData ( absoluteRaw, parent: Syntax ( self ) )
8032
+ let syntaxChild = Syntax ( syntaxData)
8033
+ assert ( syntaxChild. is ( TokenSyntax . self) )
8034
+ }
8035
+ // Check child #6 child is DifferentiabilityParamsClauseSyntax or missing
8036
+ if let raw = rawChildren [ 6 ] . raw {
8037
+ let info = rawChildren [ 6 ] . syntaxInfo
8038
+ let absoluteRaw = AbsoluteRawSyntax ( raw: raw, info: info)
8039
+ let syntaxData = SyntaxData ( absoluteRaw, parent: Syntax ( self ) )
8040
+ let syntaxChild = Syntax ( syntaxData)
7974
8041
assert ( syntaxChild. is ( DifferentiabilityParamsClauseSyntax . self) )
7975
8042
}
7976
8043
}
@@ -7982,6 +8049,8 @@ extension DerivativeRegistrationAttributeArgumentsSyntax: CustomReflectable {
7982
8049
" ofLabel " : Syntax ( ofLabel) . asProtocol ( SyntaxProtocol . self) ,
7983
8050
" colon " : Syntax ( colon) . asProtocol ( SyntaxProtocol . self) ,
7984
8051
" originalDeclName " : Syntax ( originalDeclName) . asProtocol ( SyntaxProtocol . self) ,
8052
+ " period " : period. map ( Syntax . init) ? . asProtocol ( SyntaxProtocol . self) as Any ,
8053
+ " accessorKind " : accessorKind. map ( Syntax . init) ? . asProtocol ( SyntaxProtocol . self) as Any ,
7985
8054
" comma " : comma. map ( Syntax . init) ? . asProtocol ( SyntaxProtocol . self) as Any ,
7986
8055
" diffParams " : diffParams. map ( Syntax . init) ? . asProtocol ( SyntaxProtocol . self) as Any ,
7987
8056
] )
0 commit comments