AST generation hooks written