is_block() — svelte Function Reference
Architecture documentation for the is_block() function in css-prune.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 5850e1d2_00c3_46f8_65a8_3e14a5008835["is_block()"] cb1bf043_dade_7352_cc2b_976ffa2968d8["css-prune.js"] 5850e1d2_00c3_46f8_65a8_3e14a5008835 -->|defined in| cb1bf043_dade_7352_cc2b_976ffa2968d8 d5d7e4cd_440a_0f1d_4f04_04a2cabd1beb["get_possible_element_siblings()"] d5d7e4cd_440a_0f1d_4f04_04a2cabd1beb -->|calls| 5850e1d2_00c3_46f8_65a8_3e14a5008835 f1ba25ad_bb71_e826_ea99_c51b13d5cd8b["loop_child()"] f1ba25ad_bb71_e826_ea99_c51b13d5cd8b -->|calls| 5850e1d2_00c3_46f8_65a8_3e14a5008835 style 5850e1d2_00c3_46f8_65a8_3e14a5008835 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js lines 1152–1160
function is_block(node) {
return (
node.type === 'IfBlock' ||
node.type === 'EachBlock' ||
node.type === 'AwaitBlock' ||
node.type === 'KeyBlock' ||
node.type === 'SlotElement'
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does is_block() do?
is_block() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js.
Where is is_block() defined?
is_block() is defined in packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js at line 1152.
What calls is_block()?
is_block() is called by 2 function(s): get_possible_element_siblings, loop_child.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free