One IR with a family forced into a state the recording never has.
(document: SemanticIR, family: 'calls' | 'throws' | 'reads', state: KnowledgeState)
| 99 | |
| 100 | /** One IR with a family forced into a state the recording never has. */ |
| 101 | function withState(document: SemanticIR, family: 'calls' | 'throws' | 'reads', state: KnowledgeState): SemanticIR { |
| 102 | return { ...document, [family]: { ...document[family], state } }; |
| 103 | } |
| 104 | |
| 105 | function group(entries: FileImportRef[], irs: readonly SemanticIR[] = [CREATE_USER], cap?: number) { |
| 106 | return buildImportsGroup({ imports: dto(entries, { fileIrs: [...irs] }), irs, uri: URI, cap }); |