(terms: GoJSONMatchTerm[])
| 1425 | } |
| 1426 | |
| 1427 | function removeRedundantGoJSONExistsTerms(terms: GoJSONMatchTerm[]): GoJSONMatchTerm[] { |
| 1428 | const stringPaths = new Set(terms |
| 1429 | .filter((term) => term.kind === "stringValue") |
| 1430 | .map((term) => goJSONMatchPathKey(term.path))); |
| 1431 | return terms.filter((term) => term.kind !== "propertyExists" || !stringPaths.has(goJSONMatchPathKey(term.path))); |
| 1432 | } |
| 1433 | |
| 1434 | function goVariantTargetedMatchSpec( |
| 1435 | variant: GoDiscriminatedUnionVariant, |
no test coverage detected
searching dependent graphs…