PropertyDefinition() — svelte Function Reference
Architecture documentation for the PropertyDefinition() function in PropertyDefinition.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 89b740b6_a29c_1c2f_88ee_da9b2cc7bca8["PropertyDefinition()"] 2e7493dd_ba08_9071_5988_c50f0fd536d9["PropertyDefinition.js"] 89b740b6_a29c_1c2f_88ee_da9b2cc7bca8 -->|defined in| 2e7493dd_ba08_9071_5988_c50f0fd536d9 d69a156c_617a_9397_4c8b_e94508c59e30["get_name()"] 89b740b6_a29c_1c2f_88ee_da9b2cc7bca8 -->|calls| d69a156c_617a_9397_4c8b_e94508c59e30 3a4c2825_00d6_8b8f_cee5_7f100dcb4fb7["state_field_invalid_assignment()"] 89b740b6_a29c_1c2f_88ee_da9b2cc7bca8 -->|calls| 3a4c2825_00d6_8b8f_cee5_7f100dcb4fb7 style 89b740b6_a29c_1c2f_88ee_da9b2cc7bca8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/2-analyze/visitors/PropertyDefinition.js lines 10–21
export function PropertyDefinition(node, context) {
const name = get_name(node.key);
const field = name && context.state.state_fields.get(name);
if (field && node !== field.node && node.value) {
if (/** @type {number} */ (node.start) < /** @type {number} */ (field.node.start)) {
e.state_field_invalid_assignment(node);
}
}
context.next();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does PropertyDefinition() do?
PropertyDefinition() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/visitors/PropertyDefinition.js.
Where is PropertyDefinition() defined?
PropertyDefinition() is defined in packages/svelte/src/compiler/phases/2-analyze/visitors/PropertyDefinition.js at line 10.
What does PropertyDefinition() call?
PropertyDefinition() calls 2 function(s): get_name, state_field_invalid_assignment.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free