Home / Function/ expected_block_type() — svelte Function Reference

expected_block_type() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0875dc47_a51d_ecef_77b7_d3206e748d3f["expected_block_type()"]
  495501a4_a342_6a4d_ac11_e3e2fee8b218["errors.js"]
  0875dc47_a51d_ecef_77b7_d3206e748d3f -->|defined in| 495501a4_a342_6a4d_ac11_e3e2fee8b218
  f9386464_dab0_7aa2_cfd0_969e973dc903["open()"]
  f9386464_dab0_7aa2_cfd0_969e973dc903 -->|calls| 0875dc47_a51d_ecef_77b7_d3206e748d3f
  style 0875dc47_a51d_ecef_77b7_d3206e748d3f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/errors.js lines 1110–1112

export function expected_block_type(node) {
	e(node, 'expected_block_type', `Expected 'if', 'each', 'await', 'key' or 'snippet'\nhttps://svelte.dev/e/expected_block_type`);
}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free