Open zhou-shulin opened 2 years ago
Hello @zhou-shulin , thank you for stopping by :) Apologies for the delay, I was away for a couple of weeks.
The difference between these methods is documented here. It's a bit dense, so let me know if it's still unclear and I will try to clarify.
Best, -Andrzej
Hi,
I am learning the excellent tutorial, and I have some confusion in UnusedForLoopVar Tool. In UnusedForLoopVar especially in the implementation of RecursiveASTVisitor, the
TraverseForStmt()
is used to visit the ForStmt in AST, rather thanVisitForStmt()
. What's the difference between these two methods on visiting the AST nodes? Why would UnusedForLoopVar useTraverseForStmt()
rather thanVisitForStmt()
?Thank you very much!!!