Skip to content

Commit 3f402c6

Browse files
committed
this condition is impossible
1 parent e7a001a commit 3f402c6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ export function CallExpression(node, context) {
5353
);
5454
const property = get_name(parent.left.property);
5555
source_tag = `${constructor?.id?.name ?? '[class]'}.${property}`;
56-
} else if (dev && parent?.type === 'PropertyDefinition' && context.state.in_constructor) {
57-
const constructor = /** @type {ClassDeclaration | ClassExpression} */ (context.path.at(-3));
58-
const property = get_name(parent.key);
59-
source_tag = `${constructor?.id?.name ?? '[class]'}.${property}`;
6056
}
6157
const call = b.call('$.state', value);
6258
return dev ? b.call('$.tag', call, b.literal(/** @type {string} */ (source_tag))) : call;
@@ -80,10 +76,6 @@ export function CallExpression(node, context) {
8076
);
8177
const property = get_name(parent.left.property);
8278
source_tag = `${constructor?.id?.name ?? '[class]'}.${property}`;
83-
} else if (dev && parent?.type === 'PropertyDefinition' && context.state.in_constructor) {
84-
const constructor = /** @type {ClassDeclaration | ClassExpression} */ (context.path.at(-3));
85-
const property = get_name(parent.key);
86-
source_tag = `${constructor?.id?.name ?? '[class]'}.${property}`;
8779
}
8880
const call = b.call('$.derived', fn);
8981
return dev ? b.call('$.tag', call, b.literal(/** @type {string} */ (source_tag))) : call;

0 commit comments

Comments
 (0)