(ast: AST, brand: string)
| 3475 | |
| 3476 | /** @internal */ |
| 3477 | export function brand(ast: AST, brand: string): AST { |
| 3478 | const existing = InternalAnnotations.resolveBrands(ast) |
| 3479 | const brands = existing ? [...existing, brand] : [brand] |
| 3480 | return annotate(ast, { brands }) |
| 3481 | } |
| 3482 | |
| 3483 | /** |
| 3484 | * Maps over the array but will return the original array if no changes occur. |
nothing calls this directly
no test coverage detected