Home / Function/ expected_token() — svelte Function Reference

expected_token() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7cef41bd_b7cf_112a_875e_5ca7e892c65e["expected_token()"]
  495501a4_a342_6a4d_ac11_e3e2fee8b218["errors.js"]
  7cef41bd_b7cf_112a_875e_5ca7e892c65e -->|defined in| 495501a4_a342_6a4d_ac11_e3e2fee8b218
  0a126ed1_9325_909c_db03_54fdcc1d99b4["eat()"]
  0a126ed1_9325_909c_db03_54fdcc1d99b4 -->|calls| 7cef41bd_b7cf_112a_875e_5ca7e892c65e
  f55653bc_77b3_5212_03f1_93bc274916e8["read_expression()"]
  f55653bc_77b3_5212_03f1_93bc274916e8 -->|calls| 7cef41bd_b7cf_112a_875e_5ca7e892c65e
  dc598a1a_5625_fb76_e8ae_097c399278e6["read_static_attribute()"]
  dc598a1a_5625_fb76_e8ae_097c399278e6 -->|calls| 7cef41bd_b7cf_112a_875e_5ca7e892c65e
  774b1b65_7dad_02c2_b4ca_c77fc0d799ec["read_attribute()"]
  774b1b65_7dad_02c2_b4ca_c77fc0d799ec -->|calls| 7cef41bd_b7cf_112a_875e_5ca7e892c65e
  9fcb1dc7_f1ea_4501_df05_9617e7c7d114["read_attribute_value()"]
  9fcb1dc7_f1ea_4501_df05_9617e7c7d114 -->|calls| 7cef41bd_b7cf_112a_875e_5ca7e892c65e
  563ea552_7fa4_4834_a19f_2b256bff987c["next()"]
  563ea552_7fa4_4834_a19f_2b256bff987c -->|calls| 7cef41bd_b7cf_112a_875e_5ca7e892c65e
  dacf5984_89ce_530d_f035_1eac4b0b8e1f["match_bracket()"]
  dacf5984_89ce_530d_f035_1eac4b0b8e1f -->|calls| 7cef41bd_b7cf_112a_875e_5ca7e892c65e
  style 7cef41bd_b7cf_112a_875e_5ca7e892c65e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/errors.js lines 1147–1149

export function expected_token(node, token) {
	e(node, 'expected_token', `Expected token ${token}\nhttps://svelte.dev/e/expected_token`);
}

Domain

Subdomains

Frequently Asked Questions

What does expected_token() do?
expected_token() is a function in the svelte codebase, defined in packages/svelte/src/compiler/errors.js.
Where is expected_token() defined?
expected_token() is defined in packages/svelte/src/compiler/errors.js at line 1147.
What calls expected_token()?
expected_token() is called by 7 function(s): eat, match_bracket, next, read_attribute, read_attribute_value, read_expression, read_static_attribute.

Analyze Your Own Codebase

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

Try Supermodel Free