code: private void declareExportsInModuleScope(
        Module googModule, Node moduleBody, TypedScope moduleScope) {
      if (!googModule.namespace().containsKey(Export.NAMESPACE)) {
        // The goog.module never assigns `exports = ...`, so declare `exports` as an object literal.
        moduleScope.declare(
            "exports",
            googModule.metadata().rootNode(),
            typeRegistry.createAnonymousObjectType(null),
            compiler.getInput(moduleBody.getInputId()),
            /* inferred= */ false);
      }
    }
docs: Ensures that the name `exports` is declared in goog.module scope.
  
  <p>If a goog.module explicitly assigns to exports, we want to treat that assignment inside the
  scope as if it were a declaration: `const exports = ...`. This method only handles cases where
  we want to treat exports as implicitly declared.