--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: valid.jsonc --- # Input ```cjs function foo(a) { var b = a; } ``` # Input ```cjs function foo(a) { for (b in a); } ``` # Input ```cjs function foo(a) { for (b of a); } ``` # Input ```cjs function foo(a) { a.prop = 'value'; } ``` # Input ```cjs function foo(a) { for (a.prop in obj); } ``` # Input ```cjs function foo(a) { for (a.prop of arr); } ``` # Input ```cjs function foo(a) { (function() { var a = 12; a++; })(); } ``` # Input ```cjs function foo() { someGlobal = 13; } ``` # Input ```cjs function foo() { someGlobal = 13; } ``` # Input ```cjs function foo(a) { a.b = 0; } ``` # Input ```cjs function foo(a) { delete a.b; } ``` # Input ```cjs function foo(a) { ++a.b; } ``` # Input ```cjs function foo(a) { [a.b] = []; } ``` # Input ```cjs function foo(a) { bar(a.b).c = 0; } ``` # Input ```cjs function foo(a) { data[a.b] = 0; } ``` # Input ```cjs function foo(a) { +a.b; } ``` # Input ```cjs function foo(a) { (a ? [] : [])[0] = 1; } ``` # Input ```cjs function foo(a) { (a.b ? [] : [])[0] = 1; } ``` # Input ```cjs function foo(a) { a.b = 0; } ``` # Input ```cjs function foo(a) { ++a.b; } ``` # Input ```cjs function foo(a) { delete a.b; } ``` # Input ```cjs function foo(a) { for (a.b in obj); } ``` # Input ```cjs function foo(a) { for (a.b of arr); } ``` # Input ```cjs function foo(a, z) { a.b = 0; x.y = 0; } ``` # Input ```cjs function foo(a) { a.b.c = 0;} ``` # Input ```cjs function foo(aFoo) { aFoo.b = 0; } ``` # Input ```cjs function foo(aFoo) { ++aFoo.b; } ``` # Input ```cjs function foo(aFoo) { delete aFoo.b; } ``` # Input ```cjs function foo(a, z) { aFoo.b = 0; x.y = 0; } ``` # Input ```cjs function foo(aFoo) { aFoo.b.c = 0;} ``` # Input ```cjs function foo(a) { ({ [a]: variable } = value) } ``` # Input ```cjs function foo(a) { ([...a.b] = obj); } ``` # Input ```cjs function foo(a) { ({...a.b} = obj); } ``` # Input ```cjs function foo(a) { for (obj[a.b] in obj); } ``` # Input ```cjs function foo(a) { for (obj[a.b] of arr); } ``` # Input ```cjs function foo(a) { for (bar in a.b); } ``` # Input ```cjs function foo(a) { for (bar of a.b); } ``` # Input ```cjs function foo(a) { for (bar in baz) a.b; } ``` # Input ```cjs function foo(a) { for (bar of baz) a.b; } ``` # Input ```cjs function foo(bar, baz) { bar.a = true; baz.b = false; } ``` # Input ```cjs function foo(bar) { bar.a = 0; } ``` # Input ```cjs function foo(bar) { bar.get(0).a = 0; } ``` # Input ```cjs function foo(bar) { delete bar.a; } ``` # Input ```cjs function foo(bar) { ++bar.a; } ``` # Input ```cjs function foo(bar) { for (bar.a in {}); } ``` # Input ```cjs function foo(bar) { for (bar.a of []); } ``` # Input ```cjs function foo(bar) { (bar ? bar : [])[0] = 1; } ``` # Input ```cjs function foo(bar) { [bar.a] = []; } ``` # Input ```cjs function foo(bar) { [bar.a] = []; } ``` # Input ```cjs function foo(bar) { [bar.a] = []; } ``` # Input ```cjs function foo(bar) { [bar.a] = []; } ``` # Input ```cjs function foo(bar) { ({foo: bar.a} = {}); } ``` # Input ```cjs function foo(a) { ([...a.b] = obj); } ``` # Input ```cjs function foo(a) { ({...a.b} = obj); } ``` # Input ```cjs function foo(a) { for ({bar: a.b} in {}); } ``` # Input ```cjs function foo(a) { for ([a.b] of []); } ``` # Input ```cjs function foo(a) { a.b &&= c; } ``` # Input ```cjs function foo(a) { a.b.c ||= d; } ``` # Input ```cjs function foo(a) { a[b] ??= c; } ``` # Input ```cjs function foo(arguments) { } ```