Type Alias AstNodeTypesWithCrossReferences<A>

AstNodeTypesWithCrossReferences<A>: {
    [T in keyof A]: CrossReferencesOfAstNodeType<A[T]> extends never
        ? never
        : A[T]
}[keyof A]

Returns all types that contain cross-references, A is meant to be the interface XXXAstType fromm your generated ast.ts file. Meant to be used during cross-reference resolution in combination with assertUnreachable(context.container).

Type Parameters