ramnes commented on issue #934:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/issues/934#issuecomment-2840901054

   > Two options for a generalised Visitor trait come to mind:
   > 
   > 1. expose pre + post trait method variants for every AST node type, or
   > 2. expose only two trait methods (pre_visit + post_visit) with signatures 
like fn pre_visit(&mut self, node: &AstNode) -> ControlFlow<Self::Break> - 
where AstNode is an enum with a wrapper variant for every AST node type found 
in src/ast/mod.rs and can be matched against.
   
   I meant option 2 here. Isn't it what @alamb and @iffyio meant as well? 😅


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to