state_referenced_locally() — svelte Function Reference
Architecture documentation for the state_referenced_locally() function in warnings.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 6384dc05_4f76_6156_e398_c1fed20ea92b["state_referenced_locally()"] 56a689f9_11c0_cc76_bd60_41bb6dc96475["warnings.js"] 6384dc05_4f76_6156_e398_c1fed20ea92b -->|defined in| 56a689f9_11c0_cc76_bd60_41bb6dc96475 5c01291d_15ff_bab3_2463_d54766affbf6["Identifier()"] 5c01291d_15ff_bab3_2463_d54766affbf6 -->|calls| 6384dc05_4f76_6156_e398_c1fed20ea92b style 6384dc05_4f76_6156_e398_c1fed20ea92b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/warnings.js lines 669–671
export function state_referenced_locally(node, name, type) {
w(node, 'state_referenced_locally', `This reference only captures the initial value of \`${name}\`. Did you mean to reference it inside a ${type} instead?\nhttps://svelte.dev/e/state_referenced_locally`);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does state_referenced_locally() do?
state_referenced_locally() is a function in the svelte codebase, defined in packages/svelte/src/compiler/warnings.js.
Where is state_referenced_locally() defined?
state_referenced_locally() is defined in packages/svelte/src/compiler/warnings.js at line 669.
What calls state_referenced_locally()?
state_referenced_locally() is called by 1 function(s): Identifier.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free