@@ -1930,6 +1930,20 @@ open class SyntaxVisitor {
19301930 open func visitPost( _ node: KeyPathExprSyntax ) {
19311931 }
19321932
1933+ /// Visiting `KeyPathMethodComponentSyntax` specifically.
1934+ /// - Parameter node: the node we are visiting.
1935+ /// - Returns: how should we continue visiting.
1936+ @_spi ( ExperimentalLanguageFeatures)
1937+ open func visit( _ node: KeyPathMethodComponentSyntax ) -> SyntaxVisitorContinueKind {
1938+ return . visitChildren
1939+ }
1940+
1941+ /// The function called after visiting `KeyPathMethodComponentSyntax` and its descendants.
1942+ /// - node: the node we just finished visiting.
1943+ @_spi ( ExperimentalLanguageFeatures)
1944+ open func visitPost( _ node: KeyPathMethodComponentSyntax ) {
1945+ }
1946+
19331947 /// Visiting ``KeyPathOptionalComponentSyntax`` specifically.
19341948 /// - Parameter node: the node we are visiting.
19351949 /// - Returns: how should we continue visiting.
@@ -4811,6 +4825,14 @@ open class SyntaxVisitor {
48114825 visitPost ( KeyPathExprSyntax ( unsafeCasting: node) )
48124826 }
48134827
4828+ @inline ( never)
4829+ private func visitKeyPathMethodComponentSyntaxImpl( _ node: Syntax ) {
4830+ if visit ( KeyPathMethodComponentSyntax ( unsafeCasting: node) ) == . visitChildren {
4831+ visitChildren ( node)
4832+ }
4833+ visitPost ( KeyPathMethodComponentSyntax ( unsafeCasting: node) )
4834+ }
4835+
48144836 @inline ( never)
48154837 private func visitKeyPathOptionalComponentSyntaxImpl( _ node: Syntax ) {
48164838 if visit ( KeyPathOptionalComponentSyntax ( unsafeCasting: node) ) == . visitChildren {
@@ -6217,6 +6239,8 @@ open class SyntaxVisitor {
62176239 return self . visitKeyPathComponentSyntaxImpl ( _: )
62186240 case . keyPathExpr:
62196241 return self . visitKeyPathExprSyntaxImpl ( _: )
6242+ case . keyPathMethodComponent:
6243+ return self . visitKeyPathMethodComponentSyntaxImpl ( _: )
62206244 case . keyPathOptionalComponent:
62216245 return self . visitKeyPathOptionalComponentSyntaxImpl ( _: )
62226246 case . keyPathPropertyComponent:
@@ -6807,6 +6831,8 @@ open class SyntaxVisitor {
68076831 self . visitKeyPathComponentSyntaxImpl ( node)
68086832 case . keyPathExpr:
68096833 self . visitKeyPathExprSyntaxImpl ( node)
6834+ case . keyPathMethodComponent:
6835+ self . visitKeyPathMethodComponentSyntaxImpl ( node)
68106836 case . keyPathOptionalComponent:
68116837 self . visitKeyPathOptionalComponentSyntaxImpl ( node)
68126838 case . keyPathPropertyComponent:
0 commit comments