(source: string, rawDocCache: Map<string, unknown>)
| 67 | } |
| 68 | |
| 69 | private async loadDocument(source: string, rawDocCache: Map<string, unknown>): Promise<unknown> { |
| 70 | if (rawDocCache.has(source)) { |
| 71 | return rawDocCache.get(source); |
| 72 | } |
| 73 | |
| 74 | const loaded = await this.loadFromSource(source); |
| 75 | rawDocCache.set(source, loaded); |
| 76 | return loaded; |
| 77 | } |
| 78 | |
| 79 | private parseSpec(content: string | object, source: string): unknown { |
| 80 | if (typeof content !== "string") { |
no test coverage detected