Skip to content

Commit 0b8d2fa

Browse files
committed
remove static analysis restriction
1 parent 0d4add1 commit 0b8d2fa

File tree

6 files changed

+0
-41
lines changed

6 files changed

+0
-41
lines changed

documentation/docs/98-reference/.generated/compile-errors.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -660,12 +660,6 @@ Cannot access a computed property of a rune
660660
`%name%` is not a valid rune
661661
```
662662

663-
### rune_invalid_options
664-
665-
```
666-
Options for `%rune%` needs to be declared inline
667-
```
668-
669663
### rune_invalid_usage
670664

671665
```

packages/svelte/messages/compile-errors/script.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,6 @@ This turned out to be buggy and unpredictable, particularly when working with de
162162

163163
> `%name%` is not a valid rune
164164
165-
## rune_invalid_options
166-
167-
> Options for `%rune%` needs to be declared inline
168-
169165
## rune_invalid_usage
170166

171167
> Cannot use `%rune%` rune in non-runes mode

packages/svelte/src/compiler/errors.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -383,16 +383,6 @@ export function rune_invalid_name(node, name) {
383383
e(node, 'rune_invalid_name', `\`${name}\` is not a valid rune\nhttps://svelte.dev/e/rune_invalid_name`);
384384
}
385385

386-
/**
387-
* Options for `%rune%` needs to be declared inline
388-
* @param {null | number | NodeLike} node
389-
* @param {string} rune
390-
* @returns {never}
391-
*/
392-
export function rune_invalid_options(node, rune) {
393-
e(node, 'rune_invalid_options', `Options for \`${rune}\` needs to be declared inline\nhttps://svelte.dev/e/rune_invalid_options`);
394-
}
395-
396386
/**
397387
* Cannot use `%rune%` rune in non-runes mode
398388
* @param {null | number | NodeLike} node

packages/svelte/src/compiler/phases/2-analyze/visitors/CallExpression.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ export function CallExpression(node, context) {
121121
if (node.arguments.length > 2) {
122122
e.rune_invalid_arguments_length(node, rune, 'at most two arguments');
123123
}
124-
if (node.arguments.length === 2 && node.arguments[1].type !== 'ObjectExpression') {
125-
e.rune_invalid_options(node.arguments[1], rune);
126-
}
127124
}
128125

129126
break;

packages/svelte/tests/validator/samples/rune-invalid-options/errors.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/svelte/tests/validator/samples/rune-invalid-options/input.svelte

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)