docs: def _get_scope_with_mangled(self, name):
          """Return a scope containing passed mangled name."""
          scope = self
          while True:
              parent = scope.get_enclosing_scope()
              if parent is None:
                  return
  
              if name in parent.rev_mangled:
                  return parent
  
              scope = parent