Failed to visit Javadoc node #836
-
I want to visit Javadoc node to get the SimpleName node in it, and I wrote code like this:
In which |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to use ASTVisitor(true) for the ASTVisitor constructor. Otherwise, Javadoc-specific visit methods will return false by default and you won't get to the children. They will return true by default if you specify true to the constructor so you don't need to override them. |
Beta Was this translation helpful? Give feedback.
You need to use ASTVisitor(true) for the ASTVisitor constructor. Otherwise, Javadoc-specific visit methods will return false by default and you won't get to the children. They will return true by default if you specify true to the constructor so you don't need to override them.