@@ -873,6 +873,48 @@ extension SyntaxNode {
873
873
return ObjCSelectorSyntax ( asSyntaxData)
874
874
}
875
875
876
+ public var isDifferentiableAttributeArguments : Bool { return raw. kind == . differentiableAttributeArguments }
877
+ public var asDifferentiableAttributeArguments : DifferentiableAttributeArgumentsSyntax ? {
878
+ guard isDifferentiableAttributeArguments else { return nil }
879
+ return DifferentiableAttributeArgumentsSyntax ( asSyntaxData)
880
+ }
881
+
882
+ public var isDifferentiationParamsClause : Bool { return raw. kind == . differentiationParamsClause }
883
+ public var asDifferentiationParamsClause : DifferentiationParamsClauseSyntax ? {
884
+ guard isDifferentiationParamsClause else { return nil }
885
+ return DifferentiationParamsClauseSyntax ( asSyntaxData)
886
+ }
887
+
888
+ public var isDifferentiationParams : Bool { return raw. kind == . differentiationParams }
889
+ public var asDifferentiationParams : DifferentiationParamsSyntax ? {
890
+ guard isDifferentiationParams else { return nil }
891
+ return DifferentiationParamsSyntax ( asSyntaxData)
892
+ }
893
+
894
+ public var isDifferentiationParamList : Bool { return raw. kind == . differentiationParamList }
895
+ public var asDifferentiationParamList : DifferentiationParamListSyntax ? {
896
+ guard isDifferentiationParamList else { return nil }
897
+ return DifferentiationParamListSyntax ( asSyntaxData)
898
+ }
899
+
900
+ public var isDifferentiationParam : Bool { return raw. kind == . differentiationParam }
901
+ public var asDifferentiationParam : DifferentiationParamSyntax ? {
902
+ guard isDifferentiationParam else { return nil }
903
+ return DifferentiationParamSyntax ( asSyntaxData)
904
+ }
905
+
906
+ public var isDifferentiableAttributeFuncSpecifier : Bool { return raw. kind == . differentiableAttributeFuncSpecifier }
907
+ public var asDifferentiableAttributeFuncSpecifier : DifferentiableAttributeFuncSpecifierSyntax ? {
908
+ guard isDifferentiableAttributeFuncSpecifier else { return nil }
909
+ return DifferentiableAttributeFuncSpecifierSyntax ( asSyntaxData)
910
+ }
911
+
912
+ public var isFunctionDeclName : Bool { return raw. kind == . functionDeclName }
913
+ public var asFunctionDeclName : FunctionDeclNameSyntax ? {
914
+ guard isFunctionDeclName else { return nil }
915
+ return FunctionDeclNameSyntax ( asSyntaxData)
916
+ }
917
+
876
918
public var isContinueStmt : Bool { return raw. kind == . continueStmt }
877
919
public var asContinueStmt : ContinueStmtSyntax ? {
878
920
guard isContinueStmt else { return nil }
@@ -1657,6 +1699,20 @@ extension Syntax {
1657
1699
return node
1658
1700
case . objCSelector( let node) :
1659
1701
return node
1702
+ case . differentiableAttributeArguments( let node) :
1703
+ return node
1704
+ case . differentiationParamsClause( let node) :
1705
+ return node
1706
+ case . differentiationParams( let node) :
1707
+ return node
1708
+ case . differentiationParamList( let node) :
1709
+ return node
1710
+ case . differentiationParam( let node) :
1711
+ return node
1712
+ case . differentiableAttributeFuncSpecifier( let node) :
1713
+ return node
1714
+ case . functionDeclName( let node) :
1715
+ return node
1660
1716
case . continueStmt( let node) :
1661
1717
return node
1662
1718
case . whileStmt( let node) :
@@ -1822,6 +1878,6 @@ extension Syntax {
1822
1878
extension SyntaxParser {
1823
1879
static func verifyNodeDeclarationHash( ) -> Bool {
1824
1880
return String ( cString: swiftparse_syntax_structure_versioning_identifier ( ) !) ==
1825
- " 1232070026209439384 "
1881
+ " 274521544372836110 "
1826
1882
}
1827
1883
}
0 commit comments