Skip to content

Commit c84a0d8

Browse files
committed
couple of drive-by consistency tweaks
1 parent 6fc75a2 commit c84a0d8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ export function build_component(node, component_name, context, anchor = context.
4545
/** @type {Identifier | MemberExpression | null} */
4646
let bind_this = null;
4747

48-
/**
49-
* @type {ExpressionStatement[]}
50-
*/
48+
/** @type {ExpressionStatement[]} */
5149
const binding_initializers = [];
5250

5351
/**
@@ -215,6 +213,7 @@ export function build_component(node, component_name, context, anchor = context.
215213

216214
/** @type {Statement[]} */
217215
const snippet_declarations = [];
216+
218217
/** @type {import('estree').Property[]} */
219218
const serialized_slots = [];
220219

packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export function build_inline_component(node, expression, context) {
5959
props_and_spreads.push(props);
6060
}
6161
}
62+
6263
for (const attribute of node.attributes) {
6364
if (attribute.type === 'LetDirective') {
6465
if (!slot_scope_applies_to_itself) {
@@ -101,6 +102,7 @@ export function build_inline_component(node, expression, context) {
101102

102103
/** @type {Statement[]} */
103104
const snippet_declarations = [];
105+
104106
/** @type {Property[]} */
105107
const serialized_slots = [];
106108

0 commit comments

Comments
 (0)