state_invalid_placement() — svelte Function Reference
Architecture documentation for the state_invalid_placement() function in errors.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD a2b51285_e33f_02f6_875e_244185db2012["state_invalid_placement()"] 495501a4_a342_6a4d_ac11_e3e2fee8b218["errors.js"] a2b51285_e33f_02f6_875e_244185db2012 -->|defined in| 495501a4_a342_6a4d_ac11_e3e2fee8b218 f847bd70_7e16_ed37_5fde_c34cd0ce1d43["CallExpression()"] f847bd70_7e16_ed37_5fde_c34cd0ce1d43 -->|calls| a2b51285_e33f_02f6_875e_244185db2012 411cfb7b_abaa_704a_4915_960543b87198["EachBlock()"] 411cfb7b_abaa_704a_4915_960543b87198 -->|calls| a2b51285_e33f_02f6_875e_244185db2012 style a2b51285_e33f_02f6_875e_244185db2012 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/errors.js lines 528–530
export function state_invalid_placement(node, rune) {
e(node, 'state_invalid_placement', `\`${rune}(...)\` can only be used as a variable declaration initializer, a class field declaration, or the first assignment to a class field at the top level of the constructor.\nhttps://svelte.dev/e/state_invalid_placement`);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does state_invalid_placement() do?
state_invalid_placement() is a function in the svelte codebase, defined in packages/svelte/src/compiler/errors.js.
Where is state_invalid_placement() defined?
state_invalid_placement() is defined in packages/svelte/src/compiler/errors.js at line 528.
What calls state_invalid_placement()?
state_invalid_placement() is called by 2 function(s): CallExpression, EachBlock.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free