read_tag() — svelte Function Reference
Architecture documentation for the read_tag() function in element.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 0905a037_af41_826b_7a01_9368b74b61a8["read_tag()"] 206889ff_1f9f_b6c1_d530_059d001e1cf4["element.js"] 0905a037_af41_826b_7a01_9368b74b61a8 -->|defined in| 206889ff_1f9f_b6c1_d530_059d001e1cf4 be9cd3f4_bdc5_dc26_dae4_4a34e45ab7eb["element()"] be9cd3f4_bdc5_dc26_dae4_4a34e45ab7eb -->|calls| 0905a037_af41_826b_7a01_9368b74b61a8 dc598a1a_5625_fb76_e8ae_097c399278e6["read_static_attribute()"] dc598a1a_5625_fb76_e8ae_097c399278e6 -->|calls| 0905a037_af41_826b_7a01_9368b74b61a8 774b1b65_7dad_02c2_b4ca_c77fc0d799ec["read_attribute()"] 774b1b65_7dad_02c2_b4ca_c77fc0d799ec -->|calls| 0905a037_af41_826b_7a01_9368b74b61a8 style 0905a037_af41_826b_7a01_9368b74b61a8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/1-parse/state/element.js lines 862–877
function read_tag(parser, regex) {
const start = parser.index;
const name = parser.read_until(regex);
const end = parser.index;
return {
type: 'Identifier',
name,
start,
end,
loc: {
start: locator(start),
end: locator(end)
}
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does read_tag() do?
read_tag() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/1-parse/state/element.js.
Where is read_tag() defined?
read_tag() is defined in packages/svelte/src/compiler/phases/1-parse/state/element.js at line 862.
What calls read_tag()?
read_tag() is called by 3 function(s): element, read_attribute, read_static_attribute.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free