(block, parent_node, parent_nodes)
| 14725 | this.parent.not_static_content(); |
| 14726 | } |
| 14727 | get_or_create_anchor(block, parent_node, parent_nodes) { |
| 14728 | const needs_anchor = this.next ? !this.next.is_dom_node() : !parent_node || !this.parent.is_dom_node(); |
| 14729 | const anchor = needs_anchor ? block.get_unique_name(`${this.var.name}_anchor`) : this.next && this.next.var || { type: "Identifier", name: "null" }; |
| 14730 | if (needs_anchor) { |
| 14731 | block.add_element(anchor, x`@empty()`, parent_nodes && x`@empty()`, parent_node); |
| 14732 | } |
| 14733 | return anchor; |
| 14734 | } |
| 14735 | get_update_mount_node(anchor) { |
| 14736 | return this.parent && this.parent.is_dom_node() ? this.parent.var : x`${anchor}.parentNode`; |
| 14737 | } |
no test coverage detected