MCPcopy
hub / github.com/sveltejs/svelte / is_element_node

Function is_element_node

packages/svelte/src/compiler/phases/nodes.js:23–25  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

21 * @returns {node is AST.Component | AST.RegularElement | AST.SlotElement | AST.SvelteComponent | AST.SvelteElement | AST.SvelteFragment | AST.SvelteSelf}
22 */
23export function is_element_node(node) {
24 return element_nodes.includes(node.type);
25}
26
27/**
28 * Returns true for all component-like nodes

Callers 3

determine_slotFunction · 0.90
build_inline_componentFunction · 0.90
elementFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected