parse the ast for require calls