Skip to content

Commit 2b7c082

Browse files
committed
fix: sqlparser-rs 扩展VisitorMut增加Ident访问入口 --bugfix=122346615
1 parent 18b75c5 commit 2b7c082

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/ast/visitor.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,16 @@ pub trait VisitorMut {
422422
ControlFlow::Continue(())
423423
}
424424

425+
/// Invoked for any Identifier that appear in the AST before visiting children
426+
fn pre_visit_ident(&mut self, _ident: &mut Ident) -> ControlFlow<Self::Break> {
427+
ControlFlow::Continue(())
428+
}
429+
430+
/// Invoked for any Identifier that appear in the AST after visiting children
431+
fn post_visit_ident(&mut self, _ident: &mut Ident) -> ControlFlow<Self::Break> {
432+
ControlFlow::Continue(())
433+
}
434+
425435
/// Invoked for any functions that appear in the AST before visiting children
426436
fn pre_visit_function(&mut self, _function: &mut Function) -> ControlFlow<Self::Break> {
427437
ControlFlow::Continue(())

0 commit comments

Comments
 (0)