@@ -6904,14 +6904,13 @@ extension ObjCSelectorPieceSyntax: CustomReflectable {
6904
6904
// MARK: - DifferentiableAttributeArgumentsSyntax
6905
6905
6906
6906
///
6907
- /// The arguments for the `@differentiable` attribute: an optional differentiation parameter list and associated functions.
6907
+ /// The arguments for the `@differentiable` attribute: an optional
6908
+ /// differentiation parameter list and associated functions.
6908
6909
///
6909
6910
public struct DifferentiableAttributeArgumentsSyntax : SyntaxProtocol , SyntaxHashable {
6910
6911
enum Cursor : Int {
6911
6912
case diffParams
6912
6913
case diffParamsComma
6913
- case maybePrimal
6914
- case maybeAdjoint
6915
6914
case maybeJVP
6916
6915
case maybeVJP
6917
6916
case whereClause
@@ -6982,50 +6981,6 @@ public struct DifferentiableAttributeArgumentsSyntax: SyntaxProtocol, SyntaxHash
6982
6981
return DifferentiableAttributeArgumentsSyntax ( newData)
6983
6982
}
6984
6983
6985
- public var maybePrimal : DifferentiableAttributeFuncSpecifierSyntax ? {
6986
- get {
6987
- let childData = data. child ( at: Cursor . maybePrimal,
6988
- parent: Syntax ( self ) )
6989
- if childData == nil { return nil }
6990
- return DifferentiableAttributeFuncSpecifierSyntax ( childData!)
6991
- }
6992
- set ( value) {
6993
- self = withMaybePrimal ( value)
6994
- }
6995
- }
6996
-
6997
- /// Returns a copy of the receiver with its `maybePrimal` replaced.
6998
- /// - param newChild: The new `maybePrimal` to replace the node's
6999
- /// current `maybePrimal`, if present.
7000
- public func withMaybePrimal(
7001
- _ newChild: DifferentiableAttributeFuncSpecifierSyntax ? ) -> DifferentiableAttributeArgumentsSyntax {
7002
- let raw = newChild? . raw
7003
- let newData = data. replacingChild ( raw, at: Cursor . maybePrimal)
7004
- return DifferentiableAttributeArgumentsSyntax ( newData)
7005
- }
7006
-
7007
- public var maybeAdjoint : DifferentiableAttributeFuncSpecifierSyntax ? {
7008
- get {
7009
- let childData = data. child ( at: Cursor . maybeAdjoint,
7010
- parent: Syntax ( self ) )
7011
- if childData == nil { return nil }
7012
- return DifferentiableAttributeFuncSpecifierSyntax ( childData!)
7013
- }
7014
- set ( value) {
7015
- self = withMaybeAdjoint ( value)
7016
- }
7017
- }
7018
-
7019
- /// Returns a copy of the receiver with its `maybeAdjoint` replaced.
7020
- /// - param newChild: The new `maybeAdjoint` to replace the node's
7021
- /// current `maybeAdjoint`, if present.
7022
- public func withMaybeAdjoint(
7023
- _ newChild: DifferentiableAttributeFuncSpecifierSyntax ? ) -> DifferentiableAttributeArgumentsSyntax {
7024
- let raw = newChild? . raw
7025
- let newData = data. replacingChild ( raw, at: Cursor . maybeAdjoint)
7026
- return DifferentiableAttributeArgumentsSyntax ( newData)
7027
- }
7028
-
7029
6984
public var maybeJVP : DifferentiableAttributeFuncSpecifierSyntax ? {
7030
6985
get {
7031
6986
let childData = data. child ( at: Cursor . maybeJVP,
@@ -7095,7 +7050,7 @@ public struct DifferentiableAttributeArgumentsSyntax: SyntaxProtocol, SyntaxHash
7095
7050
7096
7051
public func _validateLayout( ) {
7097
7052
let rawChildren = Array ( RawSyntaxChildren ( Syntax ( self ) ) )
7098
- assert ( rawChildren. count == 7 )
7053
+ assert ( rawChildren. count == 5 )
7099
7054
// Check child #0 child is DifferentiationParamsClauseSyntax or missing
7100
7055
if let raw = rawChildren [ 0 ] . raw {
7101
7056
let info = rawChildren [ 0 ] . syntaxInfo
@@ -7128,28 +7083,12 @@ public struct DifferentiableAttributeArgumentsSyntax: SyntaxProtocol, SyntaxHash
7128
7083
let syntaxChild = Syntax ( syntaxData)
7129
7084
assert ( syntaxChild. is ( DifferentiableAttributeFuncSpecifierSyntax . self) )
7130
7085
}
7131
- // Check child #4 child is DifferentiableAttributeFuncSpecifierSyntax or missing
7086
+ // Check child #4 child is GenericWhereClauseSyntax or missing
7132
7087
if let raw = rawChildren [ 4 ] . raw {
7133
7088
let info = rawChildren [ 4 ] . syntaxInfo
7134
7089
let absoluteRaw = AbsoluteRawSyntax ( raw: raw, info: info)
7135
7090
let syntaxData = SyntaxData ( absoluteRaw, parent: Syntax ( self ) )
7136
7091
let syntaxChild = Syntax ( syntaxData)
7137
- assert ( syntaxChild. is ( DifferentiableAttributeFuncSpecifierSyntax . self) )
7138
- }
7139
- // Check child #5 child is DifferentiableAttributeFuncSpecifierSyntax or missing
7140
- if let raw = rawChildren [ 5 ] . raw {
7141
- let info = rawChildren [ 5 ] . syntaxInfo
7142
- let absoluteRaw = AbsoluteRawSyntax ( raw: raw, info: info)
7143
- let syntaxData = SyntaxData ( absoluteRaw, parent: Syntax ( self ) )
7144
- let syntaxChild = Syntax ( syntaxData)
7145
- assert ( syntaxChild. is ( DifferentiableAttributeFuncSpecifierSyntax . self) )
7146
- }
7147
- // Check child #6 child is GenericWhereClauseSyntax or missing
7148
- if let raw = rawChildren [ 6 ] . raw {
7149
- let info = rawChildren [ 6 ] . syntaxInfo
7150
- let absoluteRaw = AbsoluteRawSyntax ( raw: raw, info: info)
7151
- let syntaxData = SyntaxData ( absoluteRaw, parent: Syntax ( self ) )
7152
- let syntaxChild = Syntax ( syntaxData)
7153
7092
assert ( syntaxChild. is ( GenericWhereClauseSyntax . self) )
7154
7093
}
7155
7094
}
@@ -7160,8 +7099,6 @@ extension DifferentiableAttributeArgumentsSyntax: CustomReflectable {
7160
7099
return Mirror ( self , children: [
7161
7100
" diffParams " : diffParams. map ( Syntax . init) ? . as ( SyntaxProtocol . self) as Any ,
7162
7101
" diffParamsComma " : diffParamsComma. map ( Syntax . init) ? . as ( SyntaxProtocol . self) as Any ,
7163
- " maybePrimal " : maybePrimal. map ( Syntax . init) ? . as ( SyntaxProtocol . self) as Any ,
7164
- " maybeAdjoint " : maybeAdjoint. map ( Syntax . init) ? . as ( SyntaxProtocol . self) as Any ,
7165
7102
" maybeJVP " : maybeJVP. map ( Syntax . init) ? . as ( SyntaxProtocol . self) as Any ,
7166
7103
" maybeVJP " : maybeVJP. map ( Syntax . init) ? . as ( SyntaxProtocol . self) as Any ,
7167
7104
" whereClause " : whereClause. map ( Syntax . init) ? . as ( SyntaxProtocol . self) as Any ,
@@ -7464,7 +7401,8 @@ extension DifferentiationParamsSyntax: CustomReflectable {
7464
7401
// MARK: - DifferentiationParamSyntax
7465
7402
7466
7403
///
7467
- /// A differentiation parameter: either the "self" identifier or a function parameter name.
7404
+ /// A differentiation parameter: either the "self" identifier or a
7405
+ /// function parameter name.
7468
7406
///
7469
7407
public struct DifferentiationParamSyntax : SyntaxProtocol , SyntaxHashable {
7470
7408
enum Cursor : Int {
@@ -7568,7 +7506,8 @@ extension DifferentiationParamSyntax: CustomReflectable {
7568
7506
// MARK: - DifferentiableAttributeFuncSpecifierSyntax
7569
7507
7570
7508
///
7571
- /// A function specifier, consisting of an identifier, colon, and a function declaration name (e.g. `vjp: foo(_:_:)`).
7509
+ /// A function specifier, consisting of an identifier, colon, and a
7510
+ /// function declaration name (e.g. `vjp: foo(_:_:)`).
7572
7511
///
7573
7512
public struct DifferentiableAttributeFuncSpecifierSyntax : SyntaxProtocol , SyntaxHashable {
7574
7513
enum Cursor : Int {
@@ -7785,7 +7724,8 @@ public struct FunctionDeclNameSyntax: SyntaxProtocol, SyntaxHashable {
7785
7724
}
7786
7725
7787
7726
///
7788
- /// The argument labels of the referenced function, optionally specified.
7727
+ /// The argument labels of the referenced function, optionally
7728
+ /// specified.
7789
7729
///
7790
7730
public var arguments : DeclNameArgumentsSyntax ? {
7791
7731
get {
0 commit comments