on_text event handler in ast_node