Skip to content

Commit 3fa48fb

Browse files
committed
chore: regenerate errors
1 parent 1b1545e commit 3fa48fb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/svelte/src/compiler/errors.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,15 @@ export function snippet_invalid_rest_parameter(node) {
10761076
e(node, "snippet_invalid_rest_parameter", "snippets do not support rest parameters; use an array instead");
10771077
}
10781078

1079+
/**
1080+
* The component content is implicitly passed as a `children` snippet which conflicts with the `children` prop set as an attribute.
1081+
* @param {null | number | NodeLike} node
1082+
* @returns {never}
1083+
*/
1084+
export function snippet_shadowing_children_prop(node) {
1085+
e(node, "snippet_shadowing_children_prop", "The component content is implicitly passed as a `children` snippet which conflicts with the `children` prop set as an attribute.");
1086+
}
1087+
10791088
/**
10801089
* This snippet is conflicting with the prop `%prop%` with the same name
10811090
* @param {null | number | NodeLike} node
@@ -1384,13 +1393,4 @@ export function unexpected_reserved_word(node, word) {
13841393
*/
13851394
export function void_element_invalid_content(node) {
13861395
e(node, "void_element_invalid_content", "Void elements cannot have children or closing tags");
1387-
}
1388-
1389-
/**
1390-
* The component content is implicitly passed as a `children` snippet which conflicts with the `children` prop set as an attribute.
1391-
* @param {null | number | NodeLike} node
1392-
* @returns {never}
1393-
*/
1394-
export function snippet_shadowing_children_prop(node) {
1395-
e(node, "snippet_shadowing_children_prop", "The component content is implicitly passed as a `children` snippet which conflicts with the `children` prop set as an attribute.");
13961396
}

0 commit comments

Comments
 (0)