code: public void setModule(JSModule module) {
      // An input may only belong to one module.
      checkArgument(module == null || this.module == null || this.module == module);
      this.module = module;
    }
docs: Sets the module to which the input belongs.