MCPcopy Create free account
hub / github.com/SAP/ui5-project / addProjectShim

Method addProjectShim

lib/graph/ShimCollection.js:32–48  ·  view source on GitHub ↗
(shimExtension)

Source from the content-addressed store, hash-verified

30 }
31
32 addProjectShim(shimExtension) {
33 const name = shimExtension.getName();
34 log.verbose(`Adding new shim ${name}...`);
35
36 const configurations = shimExtension.getConfigurationShims();
37 if (configurations) {
38 addToMap(name, configurations, this._projectConfigShims);
39 }
40 const dependencies = shimExtension.getDependencyShims();
41 if (dependencies) {
42 addToMap(name, dependencies, this._dependencyShims);
43 }
44 const collections = shimExtension.getCollectionShims();
45 if (collections) {
46 addToMap(name, collections, this._collectionShims);
47 }
48 }
49
50 getProjectConfigurationShims(moduleId) {
51 return this._projectConfigShims[moduleId];

Callers 2

_handleExtensionsFunction · 0.80
ShimCollection.jsFile · 0.80

Calls 5

addToMapFunction · 0.85
getConfigurationShimsMethod · 0.80
getDependencyShimsMethod · 0.80
getNameMethod · 0.45
getCollectionShimsMethod · 0.45

Tested by

no test coverage detected