Home / Function/ host_invalid_placement() — svelte Function Reference

host_invalid_placement() — svelte Function Reference

Architecture documentation for the host_invalid_placement() function in errors.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  0ca6ca6b_88c4_91f9_a87e_346ec7bda334["host_invalid_placement()"]
  495501a4_a342_6a4d_ac11_e3e2fee8b218["errors.js"]
  0ca6ca6b_88c4_91f9_a87e_346ec7bda334 -->|defined in| 495501a4_a342_6a4d_ac11_e3e2fee8b218
  f847bd70_7e16_ed37_5fde_c34cd0ce1d43["CallExpression()"]
  f847bd70_7e16_ed37_5fde_c34cd0ce1d43 -->|calls| 0ca6ca6b_88c4_91f9_a87e_346ec7bda334
  style 0ca6ca6b_88c4_91f9_a87e_346ec7bda334 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/errors.js lines 217–219

export function host_invalid_placement(node) {
	e(node, 'host_invalid_placement', `\`$host()\` can only be used inside custom element component instances\nhttps://svelte.dev/e/host_invalid_placement`);
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does host_invalid_placement() do?
host_invalid_placement() is a function in the svelte codebase, defined in packages/svelte/src/compiler/errors.js.
Where is host_invalid_placement() defined?
host_invalid_placement() is defined in packages/svelte/src/compiler/errors.js at line 217.
What calls host_invalid_placement()?
host_invalid_placement() is called by 1 function(s): CallExpression.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free