You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/validator/samples/unreferenced-variables/input.svelte

49 lines
830 B

<script context="module">
var a1 = 1;
let b1 = 1;
const c1 = 1;
var d1 = 1;
let e1 = 1;
const f1 = 1;
export { d1, e1, f1};
export var g1 = 1;
export let h1 = 1;
export const i1 = 1;
export let j1 = () => {};
export const k1 = () => {};
export function l1() {};
var m1 = 1;
let n1 = 1;
const o1 = 1;
function foo1() {
return m1 + n1 + o1;
}
export let p1;
</script>
<script>
var a2 = 1;
let b2 = 1;
const c2 = 1;
var d2 = 1;
let e2 = 1;
const f2 = 1;
export { d2, e2, f2};
export var g2 = 1;
export let h2 = 1;
export const i2 = 1;
export let j2 = () => {};
export const k2 = () => {};
export function l2() {};
var m2 = 1;
let n2 = 1;
const o2 = 1;
function foo2() {
return m2 + n2 + o2;
}
export let p2;
export let q2;
$p2;
</script>
{$q2}