(block)
| 19597 | return this.is_static_content && this.fragment.nodes.every((node2) => node2.node.type === "Text" || node2.node.type === "MustacheTag"); |
| 19598 | } |
| 19599 | get_render_statement(block) { |
| 19600 | const { name, namespace, tag_expr } = this.node; |
| 19601 | if (namespace === namespaces.svg) { |
| 19602 | return x`@svg_element("${name}")`; |
| 19603 | } |
| 19604 | if (namespace) { |
| 19605 | return x`@_document.createElementNS("${namespace}", "${name}")`; |
| 19606 | } |
| 19607 | const is = this.attributes.find((attr) => attr.node.name === "is"); |
| 19608 | if (is) { |
| 19609 | return x`@element_is("${name}", ${is.render_chunks(block).reduce((lhs, rhs) => x`${lhs} + ${rhs}`)})`; |
| 19610 | } |
| 19611 | const reference = tag_expr.manipulate(block); |
| 19612 | return x`@element(${reference})`; |
| 19613 | } |
| 19614 | get_claim_statement(block, nodes) { |
| 19615 | const attributes = this.attributes.filter((attr) => !(attr instanceof SpreadAttributeWrapper) && !attr.property_name).map((attr) => p`${attr.name}: true`); |
| 19616 | let reference; |
no test coverage detected