MCPcopy Create free account
hub / github.com/SAP/ui5-builder / removeIgnoredGlobalNames

Method removeIgnoredGlobalNames

lib/lbt/resources/ModuleInfo.js:210–215  ·  view source on GitHub ↗

* Removes the given set of `ignoredGlobals` from the set of exposed global names. * * @param {string[]} ignoredGlobals Names to ignore (determined from shims in .library)

(ignoredGlobals)

Source from the content-addressed store, hash-verified

208 * @param {string[]} ignoredGlobals Names to ignore (determined from shims in .library)
209 */
210 removeIgnoredGlobalNames(ignoredGlobals) {
211 if ( this.exposedGlobals ) {
212 const remaining = this.exposedGlobals.filter((global) => !ignoredGlobals.includes(global));
213 this.exposedGlobals = remaining.length > 0 ? remaining : null;
214 }
215 }
216
217 toString() {
218 return "ModuleInfo(" +

Callers 2

determineDependencyInfoFunction · 0.95
ModuleInfo.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected