build_element_spread_attributes() — svelte Function Reference
Architecture documentation for the build_element_spread_attributes() function in element.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 55eb3f8e_68bc_d21e_cf79_8580012854f2["build_element_spread_attributes()"] b25fbb61_695c_e699_cbac_73059624d603["element.js"] 55eb3f8e_68bc_d21e_cf79_8580012854f2 -->|defined in| b25fbb61_695c_e699_cbac_73059624d603 17370b4c_df64_f183_35da_1de383ea4963["build_element_attributes()"] 17370b4c_df64_f183_35da_1de383ea4963 -->|calls| 55eb3f8e_68bc_d21e_cf79_8580012854f2 b6b60d37_35c9_2ea4_dd94_b777d0860ea8["prepare_element_spread()"] 55eb3f8e_68bc_d21e_cf79_8580012854f2 -->|calls| b6b60d37_35c9_2ea4_dd94_b777d0860ea8 style 55eb3f8e_68bc_d21e_cf79_8580012854f2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js lines 345–365
function build_element_spread_attributes(
element,
attributes,
style_directives,
class_directives,
context,
transform
) {
const args = prepare_element_spread(
element,
/** @type {Array<AST.Attribute | AST.SpreadAttribute | AST.BindDirective>} */ (attributes),
style_directives,
class_directives,
context,
transform
);
let call = b.call('$.attributes', ...args);
context.state.template.push(call);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does build_element_spread_attributes() do?
build_element_spread_attributes() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js.
Where is build_element_spread_attributes() defined?
build_element_spread_attributes() is defined in packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js at line 345.
What does build_element_spread_attributes() call?
build_element_spread_attributes() calls 1 function(s): prepare_element_spread.
What calls build_element_spread_attributes()?
build_element_spread_attributes() is called by 1 function(s): build_element_attributes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free