keep C++ class ASTIndexNameNode internal
add tests for generateAST()
drop an undefined function
mark as API
mark as static