Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,7 @@ export function processInstanceScriptContent(
exportedNames.handleExportFunctionOrClass(node);
}

if (ts.isBlock(node)) {
pushScope();
onLeaveCallbacks.push(() => popScope());
}

if (ts.isArrowFunction(node)) {
if (ts.isBlock(node) || ts.isArrowFunction(node) || ts.isFunctionExpression(node)) {
pushScope();
onLeaveCallbacks.push(() => popScope());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
///<reference types="svelte" />
<></>;function render() {

const a = function (shadowed1) {}
const b = (shadowed2) => {}
let c = __sveltets_1_invalidate(() => function (shadowed3) {})
let d = __sveltets_1_invalidate(() => (shadowed4) => {})

let shadowed1 = __sveltets_1_invalidate(() => 1)
let shadowed2 = __sveltets_1_invalidate(() => 1)
let shadowed3 = __sveltets_1_invalidate(() => 1)
let shadowed4 = __sveltets_1_invalidate(() => 1)
;
() => (<></>);
return { props: {}, slots: {}, getters: {}, events: {} }}

export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
///<reference types="svelte" />
;function render() {

const a = function (shadowed1) {}
const b = (shadowed2) => {}
let c = __sveltets_1_invalidate(() => function (shadowed3) {})
let d = __sveltets_1_invalidate(() => (shadowed4) => {})

let shadowed1 = __sveltets_1_invalidate(() => 1)
let shadowed2 = __sveltets_1_invalidate(() => 1)
let shadowed3 = __sveltets_1_invalidate(() => 1)
let shadowed4 = __sveltets_1_invalidate(() => 1)
;
async () => {};
return { props: {}, slots: {}, getters: {}, events: {} }}

export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script>
const a = function (shadowed1) {}
const b = (shadowed2) => {}
$: c = function (shadowed3) {}
$: d = (shadowed4) => {}

$: shadowed1 = 1
$: shadowed2 = 1
$: shadowed3 = 1
$: shadowed4 = 1
</script>