We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3441004 commit 75a01a5Copy full SHA for 75a01a5
packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteBoundary.js
@@ -0,0 +1,17 @@
1
+/** @import { AST } from '#compiler' */
2
+/** @import { Context } from '../types' */
3
+import * as e from '../../../errors.js';
4
+
5
+/**
6
+ * @param {AST.SvelteBoundary} node
7
+ * @param {Context} context
8
+ */
9
+export function SvelteBoundary(node, context) {
10
+ for (const attribute of node.attributes) {
11
+ if (attribute.type === 'SpreadAttribute') {
12
+ e.illegal_element_attribute(attribute, 'svelte:boundary');
13
+ }
14
15
16
+ context.next();
17
+}
0 commit comments