`{@const}` must be the immediate child of `{#snippet}`, `{#if}`, `{:else if}`, `{:else}`, `{#each}`, `{:then}`, `{:catch}`, `<svelte:fragment>`, `<svelte:boundary` or `<Component>`
```
### const_tag_invalid_rune_usage
```
Can't use %name% as initialization of a `{@const}` tag
```
### constant_assignment
```
@ -654,6 +648,12 @@ Cannot access a computed property of a rune
> `{@const}` must be the immediate child of `{#snippet}`, `{#if}`, `{:else if}`, `{:else}`, `{#each}`, `{:then}`, `{:catch}`, `<svelte:fragment>`, `<svelte:boundary` or `<Component>`
## const_tag_invalid_rune_usage
> Can't use %name% as initialization of a `{@const}` tag
## debug_tag_invalid_arguments
> {@debug ...} arguments must be identifiers, not arbitrary expressions
@ -222,6 +218,10 @@ HTML restricts where certain elements can appear. In case of a violation the bro
> cannot use spread arguments in `{@render ...}` tags
## rune_invalid_placement
> Can't use `%name%` rune here
## script_duplicate
> A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element
@ -896,16 +896,6 @@ export function const_tag_invalid_placement(node) {
e(node,'const_tag_invalid_placement',`\`{@const}\` must be the immediate child of \`{#snippet}\`, \`{#if}\`, \`{:else if}\`, \`{:else}\`, \`{#each}\`, \`{:then}\`, \`{:catch}\`, \`<svelte:fragment>\`, \`<svelte:boundary\` or \`<Component>\`\nhttps://svelte.dev/e/const_tag_invalid_placement`);
@ -1126,6 +1116,16 @@ export function render_tag_invalid_spread_argument(node) {
e(node,'render_tag_invalid_spread_argument',`cannot use spread arguments in \`{@render ...}\` tags\nhttps://svelte.dev/e/render_tag_invalid_spread_argument`);
}
/**
*Can'tuse`%name%`runehere
*@param{null|number|NodeLike}node
*@param{string}name
*@returns{never}
*/
exportfunctionrune_invalid_placement(node,name){
e(node,'rune_invalid_placement',`Can't use \`${name}\` rune here\nhttps://svelte.dev/e/rune_invalid_placement`);