iterate over all ModuleInfos in a file