Function
Attribute
(node, { visit, next, path })
Source from the content-addressed store, hash-verified
| 432 | }; |
| 433 | }, |
| 434 | Attribute(node, { visit, next, path }) { |
| 435 | if (node.value !== true && !Array.isArray(node.value)) { |
| 436 | path.push(node); |
| 437 | const value = /** @type {Legacy.LegacyAttribute['value']} */ ([visit(node.value)]); |
| 438 | path.pop(); |
| 439 | |
| 440 | return { |
| 441 | ...node, |
| 442 | value |
| 443 | }; |
| 444 | } else { |
| 445 | return next(); |
| 446 | } |
| 447 | }, |
| 448 | StyleDirective(node, { visit, next, path }) { |
| 449 | if (node.value !== true && !Array.isArray(node.value)) { |
| 450 | path.push(node); |
Callers
nothing calls this directly
Tested by
no test coverage detected