SourceOrderVisitor should visit the Identifier part of the PatternKeyword node (#18635)

This commit is contained in:
Jia Chen
2025-06-11 23:20:14 -07:00
committed by GitHub
parent 65a2c6d4eb
commit f74527f4e9
2 changed files with 4 additions and 2 deletions

View File

@@ -501,7 +501,7 @@ where
{
let node = AnyNodeRef::from(pattern_keyword);
if visitor.enter_node(node).is_traverse() {
visitor.visit_pattern(&pattern_keyword.pattern);
pattern_keyword.visit_source_order(visitor);
}
visitor.leave_node(node);
}