@@ -1888,6 +1888,20 @@ open class SyntaxVisitor {
1888
1888
open func visitPost( _ node: KeyPathExprSyntax ) {
1889
1889
}
1890
1890
1891
+ /// Visiting `KeyPathMethodComponentSyntax` specifically.
1892
+ /// - Parameter node: the node we are visiting.
1893
+ /// - Returns: how should we continue visiting.
1894
+ @_spi ( ExperimentalLanguageFeatures)
1895
+ open func visit( _ node: KeyPathMethodComponentSyntax ) -> SyntaxVisitorContinueKind {
1896
+ return . visitChildren
1897
+ }
1898
+
1899
+ /// The function called after visiting `KeyPathMethodComponentSyntax` and its descendants.
1900
+ /// - node: the node we just finished visiting.
1901
+ @_spi ( ExperimentalLanguageFeatures)
1902
+ open func visitPost( _ node: KeyPathMethodComponentSyntax ) {
1903
+ }
1904
+
1891
1905
/// Visiting ``KeyPathOptionalComponentSyntax`` specifically.
1892
1906
/// - Parameter node: the node we are visiting.
1893
1907
/// - Returns: how should we continue visiting.
@@ -4733,6 +4747,14 @@ open class SyntaxVisitor {
4733
4747
visitPost ( KeyPathExprSyntax ( unsafeCasting: node) )
4734
4748
}
4735
4749
4750
+ @inline ( never)
4751
+ private func visitKeyPathMethodComponentSyntaxImpl( _ node: Syntax ) {
4752
+ if visit ( KeyPathMethodComponentSyntax ( unsafeCasting: node) ) == . visitChildren {
4753
+ visitChildren ( node)
4754
+ }
4755
+ visitPost ( KeyPathMethodComponentSyntax ( unsafeCasting: node) )
4756
+ }
4757
+
4736
4758
@inline ( never)
4737
4759
private func visitKeyPathOptionalComponentSyntaxImpl( _ node: Syntax ) {
4738
4760
if visit ( KeyPathOptionalComponentSyntax ( unsafeCasting: node) ) == . visitChildren {
@@ -6125,6 +6147,8 @@ open class SyntaxVisitor {
6125
6147
return self . visitKeyPathComponentSyntaxImpl ( _: )
6126
6148
case . keyPathExpr:
6127
6149
return self . visitKeyPathExprSyntaxImpl ( _: )
6150
+ case . keyPathMethodComponent:
6151
+ return self . visitKeyPathMethodComponentSyntaxImpl ( _: )
6128
6152
case . keyPathOptionalComponent:
6129
6153
return self . visitKeyPathOptionalComponentSyntaxImpl ( _: )
6130
6154
case . keyPathPropertyComponent:
@@ -6707,6 +6731,8 @@ open class SyntaxVisitor {
6707
6731
self . visitKeyPathComponentSyntaxImpl ( node)
6708
6732
case . keyPathExpr:
6709
6733
self . visitKeyPathExprSyntaxImpl ( node)
6734
+ case . keyPathMethodComponent:
6735
+ self . visitKeyPathMethodComponentSyntaxImpl ( node)
6710
6736
case . keyPathOptionalComponent:
6711
6737
self . visitKeyPathOptionalComponentSyntaxImpl ( node)
6712
6738
case . keyPathPropertyComponent:
0 commit comments