File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
packages/svelte/src/compiler Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1076,6 +1076,16 @@ export function snippet_invalid_rest_parameter(node) {
1076
1076
e ( node , "snippet_invalid_rest_parameter" , "snippets do not support rest parameters; use an array instead" ) ;
1077
1077
}
1078
1078
1079
+ /**
1080
+ * This snippet is shadowing the prop `%prop%` with the same name
1081
+ * @param {null | number | NodeLike } node
1082
+ * @param {string } prop
1083
+ * @returns {never }
1084
+ */
1085
+ export function snippet_shadowing_prop ( node , prop ) {
1086
+ e ( node , "snippet_shadowing_prop" , `This snippet is shadowing the prop \`${ prop } \` with the same name` ) ;
1087
+ }
1088
+
1079
1089
/**
1080
1090
* `style:` directive can only use the `important` modifier
1081
1091
* @param {null | number | NodeLike } node
@@ -1374,14 +1384,4 @@ export function unexpected_reserved_word(node, word) {
1374
1384
*/
1375
1385
export function void_element_invalid_content ( node ) {
1376
1386
e ( node , "void_element_invalid_content" , "Void elements cannot have children or closing tags" ) ;
1377
- }
1378
-
1379
- /**
1380
- * This snippet is shadowing the prop `%prop%` with the same name
1381
- * @param {null | number | NodeLike } node
1382
- * @param {string } prop
1383
- * @returns {never }
1384
- */
1385
- export function snippet_shadowing_prop ( node , prop ) {
1386
- e ( node , "snippet_shadowing_prop" , `This snippet is shadowing the prop \`${ prop } \` with the same name` ) ;
1387
1387
}
You can’t perform that action at this time.
0 commit comments