read_rule() — svelte Function Reference
Architecture documentation for the read_rule() function in style.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 1ea28e91_1a56_629a_4392_75e7a2e27b72["read_rule()"] 251e2338_f8b8_69b4_b2e5_29ee7decbfa6["style.js"] 1ea28e91_1a56_629a_4392_75e7a2e27b72 -->|defined in| 251e2338_f8b8_69b4_b2e5_29ee7decbfa6 94e530df_408d_ac7a_c243_1709ce77053c["read_body()"] 94e530df_408d_ac7a_c243_1709ce77053c -->|calls| 1ea28e91_1a56_629a_4392_75e7a2e27b72 b72c2083_31ae_feed_8216_d263cace4b10["read_block_item()"] b72c2083_31ae_feed_8216_d263cace4b10 -->|calls| 1ea28e91_1a56_629a_4392_75e7a2e27b72 a2faeba8_5477_23ae_005c_e02d8e7f69c1["read_selector_list()"] 1ea28e91_1a56_629a_4392_75e7a2e27b72 -->|calls| a2faeba8_5477_23ae_005c_e02d8e7f69c1 880a32a4_ea32_dd22_0d38_a206a327356e["read_block()"] 1ea28e91_1a56_629a_4392_75e7a2e27b72 -->|calls| 880a32a4_ea32_dd22_0d38_a206a327356e style 1ea28e91_1a56_629a_4392_75e7a2e27b72 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/1-parse/read/style.js lines 105–121
function read_rule(parser) {
const start = parser.index;
return {
type: 'Rule',
prelude: read_selector_list(parser),
block: read_block(parser),
start,
end: parser.index,
metadata: {
parent_rule: null,
has_local_selectors: false,
has_global_selectors: false,
is_global_block: false
}
};
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does read_rule() do?
read_rule() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/1-parse/read/style.js.
Where is read_rule() defined?
read_rule() is defined in packages/svelte/src/compiler/phases/1-parse/read/style.js at line 105.
What does read_rule() call?
read_rule() calls 2 function(s): read_block, read_selector_list.
What calls read_rule()?
read_rule() is called by 2 function(s): read_block_item, read_body.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free