in typesymbol, visit the module hierarchy without reversing the order