(key: Key, kind: string, text: string)
| 307 | } |
| 308 | |
| 309 | function requireText(key: Key, kind: string, text: string) { |
| 310 | if (text.length === 0) throw new Error(`System context source ${key} rendered an empty ${kind}`) |
| 311 | return text |
| 312 | } |
| 313 | |
| 314 | function assertUniqueKeys(sources: ReadonlyArray<PackedSource>) { |
| 315 | const keys = new Set<Key>() |