From b423b5c69503c58610699894a1a7dc7ef9a015bf Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 14 Dec 2024 23:47:40 -0500 Subject: [PATCH] update errors --- .../98-reference/.generated/compile-errors.md | 18 ++++++------------ .../svelte/messages/compile-errors/script.md | 12 ++++-------- packages/svelte/src/compiler/errors.js | 13 ++----------- .../2-analyze/visitors/CallExpression.js | 2 +- 4 files changed, 13 insertions(+), 32 deletions(-) diff --git a/documentation/docs/98-reference/.generated/compile-errors.md b/documentation/docs/98-reference/.generated/compile-errors.md index 45a525b714..c553c60c88 100644 --- a/documentation/docs/98-reference/.generated/compile-errors.md +++ b/documentation/docs/98-reference/.generated/compile-errors.md @@ -442,6 +442,12 @@ Expected whitespace Imports of `svelte/internal/*` are forbidden. It contains private runtime code which is subject to change without notice. If you're importing from `svelte/internal/*` to work around a limitation of Svelte, please open an issue at https://github.com/sveltejs/svelte and explain your use case ``` +### inspect_trace_invalid_placement + +``` +`$inspect.trace(...)` must be the first statement of a function body +``` + ### invalid_arguments_usage ``` @@ -970,18 +976,6 @@ A `