validate_opening_tag() — svelte Function Reference
Architecture documentation for the validate_opening_tag() function in utils.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 7148e639_69d8_a03d_3f08_bd23f41e718a["validate_opening_tag()"] bf0d8f1b_17da_970d_bf44_fbcf099d5371["utils.js"] 7148e639_69d8_a03d_3f08_bd23f41e718a -->|defined in| bf0d8f1b_17da_970d_bf44_fbcf099d5371 40a9868f_fb12_2d7c_aa35_be01988cecf1["AwaitBlock()"] 40a9868f_fb12_2d7c_aa35_be01988cecf1 -->|calls| 7148e639_69d8_a03d_3f08_bd23f41e718a b419b46d_0943_3478_0109_3494c3daad24["ConstTag()"] b419b46d_0943_3478_0109_3494c3daad24 -->|calls| 7148e639_69d8_a03d_3f08_bd23f41e718a 9b5a2de9_71f6_f1c0_8d7c_e6e727cc32f7["DebugTag()"] 9b5a2de9_71f6_f1c0_8d7c_e6e727cc32f7 -->|calls| 7148e639_69d8_a03d_3f08_bd23f41e718a 411cfb7b_abaa_704a_4915_960543b87198["EachBlock()"] 411cfb7b_abaa_704a_4915_960543b87198 -->|calls| 7148e639_69d8_a03d_3f08_bd23f41e718a c9cd16b0_e8ae_550d_18c1_95f50b1ccee7["HtmlTag()"] c9cd16b0_e8ae_550d_18c1_95f50b1ccee7 -->|calls| 7148e639_69d8_a03d_3f08_bd23f41e718a a9271596_16f4_fc39_63e6_7fcfca105e9c["IfBlock()"] a9271596_16f4_fc39_63e6_7fcfca105e9c -->|calls| 7148e639_69d8_a03d_3f08_bd23f41e718a 0b4fd805_a4ef_284c_9d89_632d7cb4b794["KeyBlock()"] 0b4fd805_a4ef_284c_9d89_632d7cb4b794 -->|calls| 7148e639_69d8_a03d_3f08_bd23f41e718a a30b3d9e_0c0a_827e_19b7_68d435ab959b["RenderTag()"] a30b3d9e_0c0a_827e_19b7_68d435ab959b -->|calls| 7148e639_69d8_a03d_3f08_bd23f41e718a 170735b0_d19f_e8fe_cdc9_07ad2d5b7b3a["SnippetBlock()"] 170735b0_d19f_e8fe_cdc9_07ad2d5b7b3a -->|calls| 7148e639_69d8_a03d_3f08_bd23f41e718a 433ea7d7_7b51_9dd7_908c_e2d48152abe1["block_unexpected_character()"] 7148e639_69d8_a03d_3f08_bd23f41e718a -->|calls| 433ea7d7_7b51_9dd7_908c_e2d48152abe1 style 7148e639_69d8_a03d_3f08_bd23f41e718a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js lines 132–137
export function validate_opening_tag(node, state, expected) {
if (state.analysis.source[node.start + 1] !== expected) {
// avoid a sea of red and only mark the first few characters
e.block_unexpected_character({ start: node.start, end: node.start + 5 }, expected);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does validate_opening_tag() do?
validate_opening_tag() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js.
Where is validate_opening_tag() defined?
validate_opening_tag() is defined in packages/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js at line 132.
What does validate_opening_tag() call?
validate_opening_tag() calls 1 function(s): block_unexpected_character.
What calls validate_opening_tag()?
validate_opening_tag() is called by 9 function(s): AwaitBlock, ConstTag, DebugTag, EachBlock, HtmlTag, IfBlock, KeyBlock, RenderTag, and 1 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free