Walks the entire AST to find ListPages and ListUsers module elements,
analyzes their templates to determine which variables are used, builds
query objects from their attributes, and pre-compiles their templates.
Each module is assigned a sequential ID (separate counters for ListPages
and ListUsers) that is used to correlate requirements with fetched data
and compiled templates during the resolution phase.
Extract all data requirements from a parsed AST.
Walks the entire AST to find ListPages and ListUsers module elements, analyzes their templates to determine which variables are used, builds query objects from their attributes, and pre-compiles their templates.
Each module is assigned a sequential ID (separate counters for ListPages and ListUsers) that is used to correlate requirements with fetched data and compiled templates during the resolution phase.