After the function calls have been expanded, the AST is traversed depth-first to gather enriched information about the document, such as: For clear performance reasons, only one traversal is performed ...