(name)
| 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) => { |
no outgoing calls
no test coverage detected