declarator() — svelte Function Reference
Architecture documentation for the declarator() function in builders.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 194590d8_a5e9_3bcb_970e_633204eaa73e["declarator()"] 18e3101f_3e97_34c3_7373_b587af4b78e1["builders.js"] 194590d8_a5e9_3bcb_970e_633204eaa73e -->|defined in| 18e3101f_3e97_34c3_7373_b587af4b78e1 e1f30729_d2f5_9ffb_ee99_a7620e329ab5["let_builder()"] e1f30729_d2f5_9ffb_ee99_a7620e329ab5 -->|calls| 194590d8_a5e9_3bcb_970e_633204eaa73e 163968fb_73a4_19f8_f9fa_e61c4651478e["const_builder()"] 163968fb_73a4_19f8_f9fa_e61c4651478e -->|calls| 194590d8_a5e9_3bcb_970e_633204eaa73e 59f5c327_7ec9_6e94_a5fd_ab68f9822644["var_builder()"] 59f5c327_7ec9_6e94_a5fd_ab68f9822644 -->|calls| 194590d8_a5e9_3bcb_970e_633204eaa73e be1e2e2e_efd8_0ff6_cec1_bc18ea37e21e["id()"] 194590d8_a5e9_3bcb_970e_633204eaa73e -->|calls| be1e2e2e_efd8_0ff6_cec1_bc18ea37e21e style 194590d8_a5e9_3bcb_970e_633204eaa73e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/utils/builders.js lines 201–204
export function declarator(pattern, init) {
if (typeof pattern === 'string') pattern = id(pattern);
return { type: 'VariableDeclarator', id: pattern, init };
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does declarator() do?
declarator() is a function in the svelte codebase, defined in packages/svelte/src/compiler/utils/builders.js.
Where is declarator() defined?
declarator() is defined in packages/svelte/src/compiler/utils/builders.js at line 201.
What does declarator() call?
declarator() calls 1 function(s): id.
What calls declarator()?
declarator() is called by 3 function(s): const_builder, let_builder, var_builder.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free