Home / Function/ experimental_async() — svelte Function Reference

experimental_async() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0900de7c_eb74_d304_a146_49ce6e132173["experimental_async()"]
  495501a4_a342_6a4d_ac11_e3e2fee8b218["errors.js"]
  0900de7c_eb74_d304_a146_49ce6e132173 -->|defined in| 495501a4_a342_6a4d_ac11_e3e2fee8b218
  8faf0d70_7e56_5e11_3d46_3702b9634650["AwaitExpression()"]
  8faf0d70_7e56_5e11_3d46_3702b9634650 -->|calls| 0900de7c_eb74_d304_a146_49ce6e132173
  style 0900de7c_eb74_d304_a146_49ce6e132173 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/errors.js lines 188–190

export function experimental_async(node) {
	e(node, 'experimental_async', `Cannot use \`await\` in deriveds and template expressions, or at the top level of a component, unless the \`experimental.async\` compiler option is \`true\`\nhttps://svelte.dev/e/experimental_async`);
}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free