MCPcopy
hub / github.com/webpack/webpack / getReadOnlyExportInfo

Method getReadOnlyExportInfo

lib/ExportsInfo.js:353–360  ·  view source on GitHub ↗

* Gets read only export info. * @param {ExportInfoName} name export name * @returns {ExportInfo} export info for this name

(name)

Source from the content-addressed store, hash-verified

351 * @returns {ExportInfo} export info for this name
352 */
353 getReadOnlyExportInfo(name) {
354 const info = this._exports.get(name);
355 if (info !== undefined) return info;
356 if (this._redirectTo !== undefined) {
357 return this._redirectTo.getReadOnlyExportInfo(name);
358 }
359 return this._otherExportsInfo;
360 }
361
362 /**
363 * Gets read only export info recursive.

Callers 6

isExportProvidedMethod · 0.95
getUsedMethod · 0.95
getUsedNameMethod · 0.95
getNestedExportsInfoMethod · 0.45
hasInlinedUsedNameMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected