Consumes a WebIDL AST and returns the list of external dependencies referenced along with those exposed by the WebIDL fragments.