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

Method findResource

lib/lbt/resources/ResourcePool.js:203–211  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

201 }
202
203 async findResource(name) {
204 const resource = this._resourcesByName.get(name);
205 if ( resource == null ) {
206 // TODO: Remove throw and return null to align with ui5-fs
207 // This would require changes in most consuming classes
208 throw new Error("resource not found in pool: '" + name + "'");
209 }
210 return resource;
211 }
212
213 async findResourceWithInfo(name) {
214 return this.findResource(name).then( (resource) => {

Callers 9

getModuleInfoMethod · 0.95
findResourceWithInfoMethod · 0.95
determineDependencyInfoFunction · 0.45
analyzeMethod · 0.45
analyzeMethod · 0.45
getSourceMapForModuleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected