(
check: SchemaRepresentation.Check
)
| 298 | } |
| 299 | |
| 300 | function checkBrands( |
| 301 | check: SchemaRepresentation.Check |
| 302 | ): ReadonlyArray<string> { |
| 303 | const own = InternalAnnotations.collectBrands(check.annotations) |
| 304 | if ( |
| 305 | check._tag === "FilterGroup" && |
| 306 | check.annotations?.toCode === undefined |
| 307 | ) { |
| 308 | return [...own, ...check.checks.flatMap(checkBrands)] |
| 309 | } |
| 310 | return own |
| 311 | } |
| 312 | |
| 313 | function runtimeBrands(brands: ReadonlyArray<string>): string { |
| 314 | return brands.length === 0 |