create_attribute() — svelte Function Reference
Architecture documentation for the create_attribute() function in nodes.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 53888034_73fb_39d8_be82_b1928817ff74["create_attribute()"] bbca3d2a_42c8_b215_d3b5_5077ccaf0797["nodes.js"] 53888034_73fb_39d8_be82_b1928817ff74 -->|defined in| bbca3d2a_42c8_b215_d3b5_5077ccaf0797 dc598a1a_5625_fb76_e8ae_097c399278e6["read_static_attribute()"] dc598a1a_5625_fb76_e8ae_097c399278e6 -->|calls| 53888034_73fb_39d8_be82_b1928817ff74 774b1b65_7dad_02c2_b4ca_c77fc0d799ec["read_attribute()"] 774b1b65_7dad_02c2_b4ca_c77fc0d799ec -->|calls| 53888034_73fb_39d8_be82_b1928817ff74 78a6ba9a_5003_f569_a638_76e4f1977809["analyze_component()"] 78a6ba9a_5003_f569_a638_76e4f1977809 -->|calls| 53888034_73fb_39d8_be82_b1928817ff74 874d992f_5e60_ebce_f4ce_ea5fed014bc4["RegularElement()"] 874d992f_5e60_ebce_f4ce_ea5fed014bc4 -->|calls| 53888034_73fb_39d8_be82_b1928817ff74 1e3b81f2_cd53_e5a5_0140_a9af38facf99["RegularElement()"] 1e3b81f2_cd53_e5a5_0140_a9af38facf99 -->|calls| 53888034_73fb_39d8_be82_b1928817ff74 17370b4c_df64_f183_35da_1de383ea4963["build_element_attributes()"] 17370b4c_df64_f183_35da_1de383ea4963 -->|calls| 53888034_73fb_39d8_be82_b1928817ff74 style 53888034_73fb_39d8_be82_b1928817ff74 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/nodes.js lines 56–69
export function create_attribute(name, name_loc, start, end, value) {
return {
type: 'Attribute',
start,
end,
name,
name_loc,
value,
metadata: {
delegated: false,
needs_clsx: false
}
};
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does create_attribute() do?
create_attribute() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/nodes.js.
Where is create_attribute() defined?
create_attribute() is defined in packages/svelte/src/compiler/phases/nodes.js at line 56.
What calls create_attribute()?
create_attribute() is called by 6 function(s): RegularElement, RegularElement, analyze_component, build_element_attributes, 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