diff --git a/spec/compilers/block_with_early_return b/spec/compilers/block_with_early_return index 3cb3a250..d7e7963e 100644 --- a/spec/compilers/block_with_early_return +++ b/spec/compilers/block_with_early_return @@ -13,18 +13,18 @@ component Main { } -------------------------------------------------------------------------------- import { - patternVariable as H, - destructure as E, - newVariant as F, - pattern as G, - variant as B + patternVariable as E, + destructure as B, + newVariant as C, + pattern as D, + variant as A } from "./runtime.js"; export const - A = B(1), - C = B(1), - D = () => { - const a = E(F(A)(`Some string...`), G(A, [H])); + F = A(1), + G = A(1), + H = () => { + const a = B(C(F)(`Some string...`), D(F, [E])); if (a === false) { return `RETURN` }; diff --git a/spec/compilers/block_with_early_return_await b/spec/compilers/block_with_early_return_await index ab2071bf..ec9b3c33 100644 --- a/spec/compilers/block_with_early_return_await +++ b/spec/compilers/block_with_early_return_await @@ -17,19 +17,19 @@ component Main { } -------------------------------------------------------------------------------- import { - patternVariable as H, - destructure as E, - newVariant as F, - pattern as G, - variant as B + patternVariable as E, + destructure as B, + newVariant as C, + pattern as D, + variant as A } from "./runtime.js"; export const - A = B(1), - C = B(1), - D = () => { + F = A(1), + G = A(1), + H = () => { (async () => { - const a = E(await F(A)(`Some string...`), G(A, [H])); + const a = B(await C(F)(`Some string...`), D(F, [E])); if (a === false) { return `RETURN` }; diff --git a/spec/compilers/bracket_access b/spec/compilers/bracket_access index d128c83a..34abc696 100644 --- a/spec/compilers/bracket_access +++ b/spec/compilers/bracket_access @@ -20,24 +20,24 @@ component Main { } -------------------------------------------------------------------------------- import { - bracketAccess as E, - mapAccess as F, - variant as B + bracketAccess as B, + mapAccess as C, + variant as A } from "./runtime.js"; export const - A = B(0), - C = B(1), - D = () => { - E([ + D = A(0), + E = A(1), + F = () => { + B([ `Hello`, `Blah`, `Joe` - ], 1, C, A); - E([], 1, C, A); - F([[ + ], 1, E, D); + B([], 1, E, D); + C([[ `key`, `value` - ]], `key`, C, A); + ]], `key`, E, D); return `` }; diff --git a/spec/compilers/builtin b/spec/compilers/builtin index 4fd5d370..7d0963dc 100644 --- a/spec/compilers/builtin +++ b/spec/compilers/builtin @@ -7,11 +7,11 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as C, - decodeBoolean as B + createElement as B, + decodeBoolean as A } from "./runtime.js"; -export const A = () => { - (B); - return C(`div`, {}) +export const C = () => { + (A); + return B(`div`, {}) }; diff --git a/spec/compilers/bundling b/spec/compilers/bundling index 90f40da5..b4fc9b72 100644 --- a/spec/compilers/bundling +++ b/spec/compilers/bundling @@ -57,14 +57,14 @@ component Main { -------------------------------------------------------------------------------- ---=== /__mint__/index.js ===--- import { - lazyComponent as I, - createElement as G, - useEffect as E, - useSignal as D, - fragment as H, - variant as K, - load as F, - lazy as B + lazyComponent as G, + createElement as E, + useEffect as C, + useSignal as B, + fragment as F, + variant as H, + load as D, + lazy as A } from "./runtime.js"; export const @@ -72,31 +72,31 @@ export const b = (c) => { return `Hello ${c}!` }, - A = B(`./2.js`), - C = () => { - const d = D(``); - E(() => { + I = A(`./2.js`), + J = () => { + const d = B(``); + C(() => { (async () => { - const e = await F(a); + const e = await D(a); return (() => { d.value = e })() })() }, []); - return G(H, {}, [ - G(I, { + return E(F, {}, [ + E(G, { c: [], key: `Greeter`, p: { a: `World` }, - x: A + x: I }), b(`Me`) ]) }, - J = K(0), - L = K(0); + K = H(0), + L = H(0); ---=== /__mint__/1.js ===--- export const a = `Hello, I was loaded later...`; diff --git a/spec/compilers/case b/spec/compilers/case index 1b4049e7..3e9c654f 100644 --- a/spec/compilers/case +++ b/spec/compilers/case @@ -10,10 +10,10 @@ component Main { } } -------------------------------------------------------------------------------- -import { match as B } from "./runtime.js"; +import { match as A } from "./runtime.js"; -export const A = () => { - B(`Hello`, [ +export const B = () => { + A(`Hello`, [ [ `test`, () => { diff --git a/spec/compilers/case_await b/spec/compilers/case_await index db208de5..d74257f9 100644 --- a/spec/compilers/case_await +++ b/spec/compilers/case_await @@ -12,11 +12,11 @@ component Main { } } -------------------------------------------------------------------------------- -import { match as B } from "./runtime.js"; +import { match as A } from "./runtime.js"; -export const A = () => { +export const B = () => { (async () => { - return B(await `Hello`, [ + return A(await `Hello`, [ [ `test`, () => { diff --git a/spec/compilers/case_empty b/spec/compilers/case_empty index c1812f1d..60a6a56a 100644 --- a/spec/compilers/case_empty +++ b/spec/compilers/case_empty @@ -6,10 +6,10 @@ component Main { } } -------------------------------------------------------------------------------- -import { match as B } from "./runtime.js"; +import { match as A } from "./runtime.js"; -export const A = () => { - return B(`Hello`, [[ +export const B = () => { + return A(`Hello`, [[ null, () => { return `false` diff --git a/spec/compilers/case_with_array_destructuring b/spec/compilers/case_with_array_destructuring index acd9f446..8f62d461 100644 --- a/spec/compilers/case_with_array_destructuring +++ b/spec/compilers/case_with_array_destructuring @@ -11,13 +11,13 @@ component Main { } -------------------------------------------------------------------------------- import { - patternVariable as C, - patternSpread as D, - match as B + patternVariable as B, + patternSpread as C, + match as A } from "./runtime.js"; -export const A = () => { - return B([], [ +export const D = () => { + return A([], [ [ [], () => { @@ -31,15 +31,15 @@ export const A = () => { } ], [ - [C], + [B], (a) => { return [a] } ], [ [ - C, - C + B, + B ], (b, c) => { return [ @@ -50,9 +50,9 @@ export const A = () => { ], [ [ - C, - C, - D + B, + B, + C ], (d, e, f) => { return f diff --git a/spec/compilers/case_with_nested_tuple_destructuring b/spec/compilers/case_with_nested_tuple_destructuring index 249c7d05..08b6af17 100644 --- a/spec/compilers/case_with_nested_tuple_destructuring +++ b/spec/compilers/case_with_nested_tuple_destructuring @@ -14,12 +14,12 @@ component Main { } -------------------------------------------------------------------------------- import { - patternVariable as C, - match as B + patternVariable as B, + match as A } from "./runtime.js"; -export const A = () => { - return B([ +export const C = () => { + return A([ `A`, [ `B`, @@ -52,10 +52,10 @@ export const A = () => { ], [ [ - C, + B, [ - C, - C + B, + B ] ], (a, b, c) => { diff --git a/spec/compilers/case_with_tuple_destructuring b/spec/compilers/case_with_tuple_destructuring index 273dd655..a1805e5c 100644 --- a/spec/compilers/case_with_tuple_destructuring +++ b/spec/compilers/case_with_tuple_destructuring @@ -14,12 +14,12 @@ component Main { } -------------------------------------------------------------------------------- import { - patternVariable as C, - match as B + patternVariable as B, + match as A } from "./runtime.js"; -export const A = () => { - return B([ +export const C = () => { + return A([ `A`, 0, true @@ -46,9 +46,9 @@ export const A = () => { ], [ [ - C, - C, - C + B, + B, + B ], (a, b, c) => { return a diff --git a/spec/compilers/case_with_tuple_destructuring_bool b/spec/compilers/case_with_tuple_destructuring_bool index d466229b..33a123d5 100644 --- a/spec/compilers/case_with_tuple_destructuring_bool +++ b/spec/compilers/case_with_tuple_destructuring_bool @@ -12,10 +12,10 @@ component Main { } } -------------------------------------------------------------------------------- -import { match as B } from "./runtime.js"; +import { match as A } from "./runtime.js"; -export const A = () => { - return B([ +export const B = () => { + return A([ false, true ], [ diff --git a/spec/compilers/case_with_type_destructuring b/spec/compilers/case_with_type_destructuring index 892c40be..5e558894 100644 --- a/spec/compilers/case_with_type_destructuring +++ b/spec/compilers/case_with_type_destructuring @@ -23,30 +23,30 @@ component Main { } -------------------------------------------------------------------------------- import { - patternVariable as I, - newVariant as G, - pattern as H, - variant as B, - match as F + patternVariable as E, + newVariant as C, + pattern as D, + variant as A, + match as B } from "./runtime.js"; export const - A = B(1), - C = B(0), - D = B(1), - E = () => { - F(G(A)(G(D)(``)), [ + F = A(1), + G = A(0), + H = A(1), + I = () => { + B(C(F)(C(H)(``)), [ [ - H(C, []), + D(G, []), () => { return `` } ], [ - H(A, [I]), + D(F, [E]), (a) => { - return F(a, [[ - H(D, [I]), + return B(a, [[ + D(H, [E]), (b) => { return b } diff --git a/spec/compilers/component_async b/spec/compilers/component_async index db6c9ee8..cc904594 100644 --- a/spec/compilers/component_async +++ b/spec/compilers/component_async @@ -36,9 +36,9 @@ component Main { -------------------------------------------------------------------------------- ---=== /__mint__/index.js ===--- import { - lazyComponent as E, - createElement as D, - lazy as B + lazyComponent as C, + createElement as B, + lazy as A } from "./runtime.js"; export const @@ -48,34 +48,34 @@ export const b = () => { return `I'm in both!` }, - A = B(`./1.js`), - C = () => { - return D(`div`, {}, [ + D = A(`./1.js`), + E = () => { + return B(`div`, {}, [ a(), b(), - D(E, { + B(C, { c: [], key: `Test`, p: {}, - x: A + x: D }) ]) }; ---=== /__mint__/1.js ===--- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -import { b as c } from "./index.js"; +import { b as a } from "./index.js"; export const - a = (b) => { - return `I'm ${b}!` + b = (c) => { + return `I'm ${c}!` }, - A = () => { - return B(`div`, {}, [ - a(`async`), - c() + B = () => { + return A(`div`, {}, [ + b(`async`), + a() ]) }; -export default A; +export default B; diff --git a/spec/compilers/component_async_2 b/spec/compilers/component_async_2 index 036beee5..8810cd01 100644 --- a/spec/compilers/component_async_2 +++ b/spec/compilers/component_async_2 @@ -26,59 +26,59 @@ component Main { -------------------------------------------------------------------------------- ---=== /__mint__/index.js ===--- import { - lazyComponent as F, - createElement as E, - lazy as B + lazyComponent as C, + createElement as B, + lazy as A } from "./runtime.js"; export const - A = B(`./1.js`), - C = B(`./2.js`), - D = () => { - return E(`div`, {}, [ - E(F, { + D = A(`./1.js`), + E = A(`./2.js`), + F = () => { + return B(`div`, {}, [ + B(C, { c: [], key: `First`, p: {}, - x: A + x: D }), - E(F, { + B(C, { c: [], key: `Second`, p: {}, - x: C + x: E }) ]) }; ---=== /__mint__/1.js ===--- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -export const A = () => { - return B(`div`, {}, [`First`]) +export const B = () => { + return A(`div`, {}, [`First`]) }; -export default A; +export default B; ---=== /__mint__/2.js ===--- import { - lazyComponent as E, - createElement as D, - lazy as B + lazyComponent as C, + createElement as B, + lazy as A } from "./runtime.js"; export const - A = B(`./1.js`), - C = () => { - return D(`div`, {}, [ - D(E, { + D = A(`./1.js`), + E = () => { + return B(`div`, {}, [ + B(C, { c: [], key: `First`, p: {}, - x: A + x: D }), `Second` ]) }; -export default C; +export default E; diff --git a/spec/compilers/component_async_3 b/spec/compilers/component_async_3 index 05442c94..2474d7a9 100644 --- a/spec/compilers/component_async_3 +++ b/spec/compilers/component_async_3 @@ -38,9 +38,9 @@ component Main { -------------------------------------------------------------------------------- ---=== /__mint__/index.js ===--- import { - lazyComponent as F, - createElement as E, - lazy as B + lazyComponent as C, + createElement as B, + lazy as A } from "./runtime.js"; export const @@ -50,50 +50,50 @@ export const b = () => { return a() }, - A = B(`./1.js`), - C = B(`./2.js`), - D = () => { - return E(`div`, {}, [ - E(F, { + D = A(`./1.js`), + E = A(`./2.js`), + F = () => { + return B(`div`, {}, [ + B(C, { c: [], key: `First`, p: {}, - x: A + x: D }), - E(F, { + B(C, { c: [], key: `Second`, p: {}, - x: C + x: E }), b() ]) }; ---=== /__mint__/1.js ===--- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; import { b as a } from "./index.js"; -export const A = () => { - return B(`div`, {}, [ +export const B = () => { + return A(`div`, {}, [ `First`, a() ]) }; -export default A; +export default B; ---=== /__mint__/2.js ===--- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; import { b as a } from "./index.js"; -export const A = () => { - return B(`div`, {}, [ +export const B = () => { + return A(`div`, {}, [ `Second`, a() ]) }; -export default A; +export default B; diff --git a/spec/compilers/component_async_4 b/spec/compilers/component_async_4 index dd1e1213..ce626627 100644 --- a/spec/compilers/component_async_4 +++ b/spec/compilers/component_async_4 @@ -40,34 +40,34 @@ component Main { -------------------------------------------------------------------------------- ---=== /__mint__/index.js ===--- import { - lazyComponent as G, - createElement as B, - lazy as E + lazyComponent as C, + createElement as A, + lazy as B } from "./runtime.js"; export const - A = ({ + D = ({ a = `` }) => { - return B(`div`, {}, [a]) + return A(`div`, {}, [a]) }, - C = ({ + E = ({ b = 18 }) => { - return B(`div`, {}, [`${b}px`]) + return A(`div`, {}, [`${b}px`]) }, - D = E(`./1.js`), - F = () => { - return B(`div`, {}, [ - B(A, { + F = B(`./1.js`), + G = () => { + return A(`div`, {}, [ + A(D, { a: `blah` }), - B(C, {}), - B(G, { + A(E, {}), + A(C, { c: [], key: `Test`, p: {}, - x: D + x: F }) ]) }; @@ -75,16 +75,16 @@ export const ---=== /__mint__/1.js ===--- import { createElement as B } from "./runtime.js"; -import { C } from "./index.js"; +import { E as A } from "./index.js"; -export const A = ({ +export const C = ({ a = ``, b = ``, c = `` }) => { - return B(C, { + return B(A, { b: 16 }) }; -export default A; +export default C; diff --git a/spec/compilers/component_async_5 b/spec/compilers/component_async_5 index 82c4d1ea..7e5274df 100644 --- a/spec/compilers/component_async_5 +++ b/spec/compilers/component_async_5 @@ -25,30 +25,30 @@ component Main { -------------------------------------------------------------------------------- ---=== /__mint__/index.js ===--- import { - lazyComponent as F, - createElement as E, - lazy as C + lazyComponent as C, + createElement as B, + lazy as A } from "./runtime.js"; export const - A = ({ + D = ({ a = `` }) => { return a }, - B = C(`./1.js`), - D = () => { - return E(`div`, {}, [ - E(A, { + E = A(`./1.js`), + F = () => { + return B(`div`, {}, [ + B(D, { a: `Blah` }), - E(F, { + B(C, { c: [], key: `Lesson`, p: { a: `Hello` }, - x: B + x: E }) ]) }; diff --git a/spec/compilers/component_children b/spec/compilers/component_children index 16460f25..a3b25a2a 100644 --- a/spec/compilers/component_children +++ b/spec/compilers/component_children @@ -13,16 +13,16 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as C, - toArray as D + createElement as A, + toArray as B } from "./runtime.js"; export const - A = ({ + C = ({ children: a = [] }) => { return a }, - B = () => { - return C(A, {}, D(``)) + D = () => { + return A(C, {}, B(``)) }; diff --git a/spec/compilers/component_global b/spec/compilers/component_global index e78a0b59..af872dda 100644 --- a/spec/compilers/component_global +++ b/spec/compilers/component_global @@ -25,21 +25,21 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as B, - signal as D + createElement as A, + signal as B } from "./runtime.js"; export const - A = () => { - return B(`div`, {}, [a()]) + C = () => { + return A(`div`, {}, [a()]) }, b = (c) => { return c }, - C = () => { - return B(`div`, {}, [b(`Hello`)]) + D = () => { + return A(`div`, {}, [b(`Hello`)]) }, - d = D(``), + d = B(``), a = () => { return d.value }; diff --git a/spec/compilers/component_instance_access b/spec/compilers/component_instance_access index 71bc658c..5c6f7920 100644 --- a/spec/compilers/component_instance_access +++ b/spec/compilers/component_instance_access @@ -29,55 +29,55 @@ component Main { } -------------------------------------------------------------------------------- import { - patternVariable as K, - createElement as F, - pattern as J, - useMemo as E, - variant as B, - setRef as L, - useRef as H, - match as I + patternVariable as G, + createElement as C, + pattern as F, + useMemo as B, + variant as A, + setRef as H, + useRef as D, + match as E } from "./runtime.js"; export const - A = B(1), - C = B(0), - D = ({ + I = A(1), + J = A(0), + K = ({ _ }) => { const a = () => { return `Instance` }; - const b = E(() => { + const b = B(() => { return { a } }, []); (_ ? _(b) : null); - return F(`div`, {}) + return C(`div`, {}) }, - G = () => { + L = () => { const - c = H(new C()), + c = D(new J()), d = () => { - return I(c.current, [ + return E(c.current, [ [ - J(A, [K]), + F(I, [G]), (e) => { return e.a() } ], [ - J(C, []), + F(J, []), () => { return `` } ] ]) }; - return F(`div`, { + return C(`div`, { "onClick": d - }, [F(D, { - _: L(c, A) + }, [C(K, { + _: H(c, I) })]) }; diff --git a/spec/compilers/component_instance_access_2 b/spec/compilers/component_instance_access_2 index ebd4f433..1b73c1bb 100644 --- a/spec/compilers/component_instance_access_2 +++ b/spec/compilers/component_instance_access_2 @@ -16,21 +16,21 @@ global component Global { } -------------------------------------------------------------------------------- import { - createElement as E, - createRef as F, - variant as B, - setRef as H + createElement as B, + createRef as C, + variant as A, + setRef as D } from "./runtime.js"; export const - A = B(1), - C = B(0), - D = () => { - return E(`div`, {}) - }, - a = F(new C()), + E = A(1), + F = A(0), G = () => { - return E(D, { - _: H(a, A) + return B(`div`, {}) + }, + a = C(new F()), + H = () => { + return B(G, { + _: D(a, E) }) }; diff --git a/spec/compilers/component_instance_access_ref b/spec/compilers/component_instance_access_ref index 187c0808..4b94c9f7 100644 --- a/spec/compilers/component_instance_access_ref +++ b/spec/compilers/component_instance_access_ref @@ -25,55 +25,55 @@ component Main { } -------------------------------------------------------------------------------- import { - patternVariable as L, - createElement as G, - pattern as K, - useMemo as F, - variant as B, - setRef as H, - useRef as E, - match as J + patternVariable as H, + createElement as D, + pattern as G, + useMemo as C, + variant as A, + setRef as E, + useRef as B, + match as F } from "./runtime.js"; export const - A = B(1), - C = B(0), - D = ({ + I = A(1), + J = A(0), + K = ({ _ }) => { - const a = E(new C()); - const b = F(() => { + const a = B(new J()); + const b = C(() => { return { a } }, []); (_ ? _(b) : null); - return G(`div`, { - ref: H(a, A) + return D(`div`, { + ref: E(a, I) }) }, - I = () => { + L = () => { const - c = E(new C()), + c = B(new J()), d = () => { - return J(c.current, [ + return F(c.current, [ [ - K(A, [L]), + G(I, [H]), (e) => { return e.a.current } ], [ - K(C, []), + G(J, []), () => { - return new C() + return new J() } ] ]) }; - return G(`div`, { + return D(`div`, { "onClick": d - }, [G(D, { - _: H(c, A) + }, [D(K, { + _: E(c, I) })]) }; diff --git a/spec/compilers/component_namespaced b/spec/compilers/component_namespaced index 450ad76d..cc9cd7c6 100644 --- a/spec/compilers/component_namespaced +++ b/spec/compilers/component_namespaced @@ -10,12 +10,12 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as C } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; export const - A = () => { + B = () => { return `test` }, - B = () => { - return C(A, {}) + C = () => { + return A(B, {}) }; diff --git a/spec/compilers/component_namespaced_with_style b/spec/compilers/component_namespaced_with_style index 7c36f4e5..50d526f7 100644 --- a/spec/compilers/component_namespaced_with_style +++ b/spec/compilers/component_namespaced_with_style @@ -22,14 +22,14 @@ component Main { } ---=== /__mint__/index.js ===--- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; export const - A = () => { - return B(`div`, { + B = () => { + return A(`div`, { className: `Ui·Dropdown_base` }, [`test`]) }, C = () => { - return B(A, {}) + return A(B, {}) }; diff --git a/spec/compilers/component_readonly b/spec/compilers/component_readonly index 536a5716..7a37dfdd 100644 --- a/spec/compilers/component_readonly +++ b/spec/compilers/component_readonly @@ -12,16 +12,16 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; export const - A = ({ + B = ({ a = false }) => { - return B(`div`, {}) + return A(`div`, {}) }, C = () => { - return B(A, { + return A(B, { a: true }) }; diff --git a/spec/compilers/component_with_provider b/spec/compilers/component_with_provider index d3c75e11..933ebfe7 100644 --- a/spec/compilers/component_with_provider +++ b/spec/compilers/component_with_provider @@ -23,19 +23,19 @@ component Main { } -------------------------------------------------------------------------------- import { - createProvider as B, - createElement as E, - useId as D + createProvider as A, + createElement as C, + useId as B } from "./runtime.js"; export const a = new Map(), - A = B(a, () => { + D = A(a, () => { return null }), - C = () => { - const b = D(); - A(b, () => { + E = () => { + const b = B(); + D(b, () => { return (false ? { moves: (c) => { return null @@ -45,6 +45,5 @@ export const } } : null) }); - return E(`div`, {}) + return C(`div`, {}) }; - diff --git a/spec/compilers/component_with_provider_and_lifecycle_functions b/spec/compilers/component_with_provider_and_lifecycle_functions index 78184033..a2d5d2ae 100644 --- a/spec/compilers/component_with_provider_and_lifecycle_functions +++ b/spec/compilers/component_with_provider_and_lifecycle_functions @@ -35,21 +35,21 @@ component Main { } -------------------------------------------------------------------------------- import { - createProvider as B, - createElement as G, - useDidUpdate as F, - useEffect as E, - useId as D + createProvider as A, + createElement as E, + useDidUpdate as D, + useEffect as C, + useId as B } from "./runtime.js"; export const a = new Map(), - A = B(a, () => { + F = A(a, () => { return null }), - C = () => { - const b = D(); - E(() => { + G = () => { + const b = B(); + C(() => { (() => { return null })(); @@ -57,10 +57,10 @@ export const return null } }, []); - F(() => { + D(() => { return null }); - A(b, () => { + F(b, () => { return (false ? { moves: (c) => { return null @@ -70,5 +70,5 @@ export const } } : null) }); - return G(`div`, {}) + return E(`div`, {}) }; diff --git a/spec/compilers/component_with_provider_and_store b/spec/compilers/component_with_provider_and_store index c005a0be..cd7228b8 100644 --- a/spec/compilers/component_with_provider_and_store +++ b/spec/compilers/component_with_provider_and_store @@ -33,10 +33,10 @@ component Main { } -------------------------------------------------------------------------------- import { - createProvider as C, - createElement as F, + createProvider as B, + createElement as D, signal as A, - useId as E + useId as C } from "./runtime.js"; export const @@ -45,12 +45,12 @@ export const }, b = A(``), c = new Map(), - B = C(c, () => { + E = B(c, () => { return null }), - D = () => { - const d = E(); - B(d, () => { + F = () => { + const d = C(); + E(d, () => { return (false ? { moves: (e) => { return null @@ -60,5 +60,5 @@ export const } } : null) }); - return F(`div`, {}) + return D(`div`, {}) }; diff --git a/spec/compilers/constant_component b/spec/compilers/constant_component index 2d5eaa6d..d8f0051a 100644 --- a/spec/compilers/constant_component +++ b/spec/compilers/constant_component @@ -6,9 +6,9 @@ component Main { } } -------------------------------------------------------------------------------- -import { useSignal as B } from "./runtime.js"; +import { useSignal as A } from "./runtime.js"; -export const A = () => { - const a = B(`ASD`); +export const B = () => { + const a = A(`ASD`); return a.value }; diff --git a/spec/compilers/constant_global_component b/spec/compilers/constant_global_component index 2f286b54..c3e6842e 100644 --- a/spec/compilers/constant_global_component +++ b/spec/compilers/constant_global_component @@ -14,13 +14,13 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as C } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; export const - A = () => { + B = () => { return a }, a = `ASD`, - B = () => { - return C(`div`, {}, [a]) + C = () => { + return A(`div`, {}, [a]) }; diff --git a/spec/compilers/constant_module b/spec/compilers/constant_module index 2957d19d..26a26ede 100644 --- a/spec/compilers/constant_module +++ b/spec/compilers/constant_module @@ -10,11 +10,10 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; export const a = `ASD`, - A = () => { - return B(`div`, {}, [a]) + B = () => { + return A(`div`, {}, [a]) }; - diff --git a/spec/compilers/constant_store b/spec/compilers/constant_store index c0dcfedc..edade58c 100644 --- a/spec/compilers/constant_store +++ b/spec/compilers/constant_store @@ -10,11 +10,10 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; export const a = `ASD`, - A = () => { - return B(`div`, {}, [a]) + B = () => { + return A(`div`, {}, [a]) }; - diff --git a/spec/compilers/constant_store_exposed b/spec/compilers/constant_store_exposed index 983dbdde..ccbf4fe9 100644 --- a/spec/compilers/constant_store_exposed +++ b/spec/compilers/constant_store_exposed @@ -12,10 +12,10 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; export const a = `ASD`, - A = () => { - return B(`div`, {}, [a]) + B = () => { + return A(`div`, {}, [a]) }; diff --git a/spec/compilers/css_definition b/spec/compilers/css_definition index bd72fb6b..69e16445 100644 --- a/spec/compilers/css_definition +++ b/spec/compilers/css_definition @@ -19,11 +19,11 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as B, - style as C + createElement as A, + style as B } from "./runtime.js"; -export const A = () => { +export const C = () => { const a = () => { return 10 @@ -34,8 +34,8 @@ export const A = () => { }; return _ }; - return B(`div`, { + return A(`div`, { className: `Main_test`, - style: C([b()]) + style: B([b()]) }) }; diff --git a/spec/compilers/css_font_face b/spec/compilers/css_font_face index 0d40aa33..efd7272a 100644 --- a/spec/compilers/css_font_face +++ b/spec/compilers/css_font_face @@ -30,10 +30,10 @@ component Main { } ---=== /__mint__/index.js ===--- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -export const A = () => { - return B(`div`, { +export const B = () => { + return A(`div`, { className: `Main_test` }) }; diff --git a/spec/compilers/css_font_face_with_quotes b/spec/compilers/css_font_face_with_quotes index 379a6046..43fc81f9 100644 --- a/spec/compilers/css_font_face_with_quotes +++ b/spec/compilers/css_font_face_with_quotes @@ -24,10 +24,10 @@ component Main { } ---=== /__mint__/index.js ===--- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -export const A = () => { - return B(`div`, { +export const B = () => { + return A(`div`, { className: `Main_test` }) }; diff --git a/spec/compilers/css_keyframes b/spec/compilers/css_keyframes index eb807256..f523404c 100644 --- a/spec/compilers/css_keyframes +++ b/spec/compilers/css_keyframes @@ -51,22 +51,22 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as C, - useSignal as B, - style as D + createElement as B, + useSignal as A, + style as C } from "./runtime.js"; -export const A = () => { +export const D = () => { const - a = B(1), + a = A(1), b = () => { const _ = { [`--a-a`]: a.value }; return _ }; - return C(`div`, { + return B(`div`, { className: `Main_test`, - style: D([b()]) + style: C([b()]) }) }; diff --git a/spec/compilers/css_media b/spec/compilers/css_media index 105687c2..f4bd748e 100644 --- a/spec/compilers/css_media +++ b/spec/compilers/css_media @@ -31,11 +31,11 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as B, - style as C + createElement as A, + style as B } from "./runtime.js"; -export const A = () => { +export const C = () => { const a = () => { return `blue` @@ -47,8 +47,8 @@ export const A = () => { }; return _ }; - return B(`div`, { + return A(`div`, { className: `Main_test`, - style: C([b()]) + style: B([b()]) }) }; diff --git a/spec/compilers/css_media_with_if b/spec/compilers/css_media_with_if index a309f821..43fd01f7 100644 --- a/spec/compilers/css_media_with_if +++ b/spec/compilers/css_media_with_if @@ -27,11 +27,11 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as B, - style as C + createElement as A, + style as B } from "./runtime.js"; -export const A = () => { +export const C = () => { const a = () => { const _ = {}; (true ? Object.assign(_, { @@ -39,8 +39,8 @@ export const A = () => { }) : null); return _ }; - return B(`div`, { + return A(`div`, { className: `Main_test`, - style: C([a()]) + style: B([a()]) }) }; diff --git a/spec/compilers/css_selector b/spec/compilers/css_selector index cb4e1cd3..f93a6f9c 100644 --- a/spec/compilers/css_selector +++ b/spec/compilers/css_selector @@ -29,11 +29,11 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as B, - style as C + createElement as A, + style as B } from "./runtime.js"; -export const A = () => { +export const C = () => { const a = () => { return `blue` @@ -44,8 +44,8 @@ export const A = () => { }; return _ }; - return B(`div`, { + return A(`div`, { className: `Main_test`, - style: C([b()]) + style: B([b()]) }) }; diff --git a/spec/compilers/css_selector_multiple b/spec/compilers/css_selector_multiple index c56eeb3e..822d8126 100644 --- a/spec/compilers/css_selector_multiple +++ b/spec/compilers/css_selector_multiple @@ -34,11 +34,11 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as B, - style as C + createElement as A, + style as B } from "./runtime.js"; -export const A = () => { +export const C = () => { const a = () => { return `blue` @@ -49,8 +49,8 @@ export const A = () => { }; return _ }; - return B(`div`, { + return A(`div`, { className: `Main_test`, - style: C([b()]) + style: B([b()]) }) }; diff --git a/spec/compilers/css_string b/spec/compilers/css_string index 18848fa9..3ccce933 100644 --- a/spec/compilers/css_string +++ b/spec/compilers/css_string @@ -21,22 +21,22 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as C, - useSignal as B, - style as D + createElement as B, + useSignal as A, + style as C } from "./runtime.js"; -export const A = () => { +export const D = () => { const - a = B(`Joe`), + a = A(`Joe`), b = () => { const _ = { [`--a-a`]: `"Hi"` + ` blah ` + a.value + ` ` + `"Here is some content; Thanks ${a.value}"` }; return _ }; - return C(`div`, { + return B(`div`, { className: `Main_unicode`, - style: D([b()]) - }, [C(`span`, {})]) + style: C([b()]) + }, [B(`span`, {})]) }; diff --git a/spec/compilers/css_supports b/spec/compilers/css_supports index 18c78c62..fb991122 100644 --- a/spec/compilers/css_supports +++ b/spec/compilers/css_supports @@ -21,22 +21,22 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as C, - useSignal as B, - style as D + createElement as B, + useSignal as A, + style as C } from "./runtime.js"; -export const A = () => { +export const D = () => { const - a = B(`blue`), + a = A(`blue`), b = () => { const _ = { [`--a-a`]: a.value }; return _ }; - return C(`div`, { + return B(`div`, { className: `Main_test`, - style: D([b()]) + style: C([b()]) }) }; diff --git a/spec/compilers/css_with_ands b/spec/compilers/css_with_ands index c7ed74e8..c59fc541 100644 --- a/spec/compilers/css_with_ands +++ b/spec/compilers/css_with_ands @@ -32,10 +32,10 @@ component Main { } ---=== /__mint__/index.js ===--- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -export const A = () => { - return B(`div`, { +export const B = () => { + return A(`div`, { className: `Main_test` }) }; diff --git a/spec/compilers/css_with_arguments b/spec/compilers/css_with_arguments index da0f4dee..e6433007 100644 --- a/spec/compilers/css_with_arguments +++ b/spec/compilers/css_with_arguments @@ -15,19 +15,19 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as B, - style as C + createElement as A, + style as B } from "./runtime.js"; -export const A = () => { +export const C = () => { const a = (b) => { const _ = { [`--a-a`]: b }; return _ }; - return B(`div`, { + return A(`div`, { className: `Main_test`, - style: C([a(`red`)]) + style: B([a(`red`)]) }) }; diff --git a/spec/compilers/css_with_case b/spec/compilers/css_with_case index b3154b5d..0ab66257 100644 --- a/spec/compilers/css_with_case +++ b/spec/compilers/css_with_case @@ -23,15 +23,15 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as C, - style as D, - match as B + createElement as B, + style as C, + match as A } from "./runtime.js"; -export const A = () => { +export const D = () => { const a = () => { const _ = {}; - B(`a`, [ + A(`a`, [ [ `a`, () => { @@ -51,8 +51,8 @@ export const A = () => { ]); return _ }; - return C(`div`, { + return B(`div`, { className: `Main_test`, - style: D([a()]) + style: C([a()]) }) }; diff --git a/spec/compilers/css_with_else_if b/spec/compilers/css_with_else_if index 2579ad24..9d6359a5 100644 --- a/spec/compilers/css_with_else_if +++ b/spec/compilers/css_with_else_if @@ -25,23 +25,23 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as C, - compare as B, - style as D + createElement as B, + compare as A, + style as C } from "./runtime.js"; -export const A = () => { +export const D = () => { const a = (b) => { const _ = {}; - (B(b, `red`) ? Object.assign(_, { + (A(b, `red`) ? Object.assign(_, { [`--a-a`]: `red` - }) : (B(b, `blue`) ? Object.assign(_, { + }) : (A(b, `blue`) ? Object.assign(_, { [`--a-a`]: `blue` }) : null)); return _ }; - return C(`div`, {}, [C(`div`, { + return B(`div`, {}, [B(`div`, { className: `Main_base`, - style: D([a(`blue`)]) + style: C([a(`blue`)]) })]) }; diff --git a/spec/compilers/css_with_if b/spec/compilers/css_with_if index 4ef9ba40..4b0e8ca7 100644 --- a/spec/compilers/css_with_if +++ b/spec/compilers/css_with_if @@ -21,11 +21,11 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as B, - style as C + createElement as A, + style as B } from "./runtime.js"; -export const A = () => { +export const C = () => { const a = () => { const _ = {}; (true ? Object.assign(_, { @@ -35,8 +35,8 @@ export const A = () => { })); return _ }; - return B(`div`, { + return A(`div`, { className: `Main_test`, - style: C([a()]) + style: B([a()]) }) }; diff --git a/spec/compilers/css_with_if_and_case b/spec/compilers/css_with_if_and_case index 91233822..f93284d0 100644 --- a/spec/compilers/css_with_if_and_case +++ b/spec/compilers/css_with_if_and_case @@ -26,15 +26,15 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as C, - style as D, - match as B + createElement as B, + style as C, + match as A } from "./runtime.js"; -export const A = () => { +export const D = () => { const a = () => { const _ = {}; - B(true, [ + A(true, [ [ true, () => { @@ -59,8 +59,8 @@ export const A = () => { })); return _ }; - return C(`div`, { + return B(`div`, { className: `Main_test`, - style: D([a()]) + style: C([a()]) }) }; diff --git a/spec/compilers/css_with_if_same_condition b/spec/compilers/css_with_if_same_condition index b470533b..f90c2a21 100644 --- a/spec/compilers/css_with_if_same_condition +++ b/spec/compilers/css_with_if_same_condition @@ -33,11 +33,11 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as B, - style as C + createElement as A, + style as B } from "./runtime.js"; -export const A = () => { +export const C = () => { const a = () => { const _ = {}; (true ? Object.assign(_, { @@ -52,8 +52,8 @@ export const A = () => { })); return _ }; - return B(`div`, { + return A(`div`, { className: `Main_test`, - style: C([a()]) + style: B([a()]) }) }; diff --git a/spec/compilers/css_with_if_variables b/spec/compilers/css_with_if_variables index 9420809b..712c9c5d 100644 --- a/spec/compilers/css_with_if_variables +++ b/spec/compilers/css_with_if_variables @@ -28,14 +28,14 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as C, + createElement as B, signal as A, - style as D + style as C } from "./runtime.js"; export const a = A(false), - B = () => { + D = () => { const b = () => { const _ = {}; (a.value ? Object.assign(_, { @@ -45,8 +45,8 @@ export const })); return _ }; - return C(`div`, { + return B(`div`, { className: `Main_test`, - style: D([b()]) + style: C([b()]) }) }; diff --git a/spec/compilers/css_with_if_with_interpolation b/spec/compilers/css_with_if_with_interpolation index 54a2e350..911abaee 100644 --- a/spec/compilers/css_with_if_with_interpolation +++ b/spec/compilers/css_with_if_with_interpolation @@ -21,11 +21,11 @@ component Main { ---=== /__mint__/index.js ===--- import { - createElement as B, - style as C + createElement as A, + style as B } from "./runtime.js"; -export const A = () => { +export const C = () => { const a = () => { const _ = {}; (true ? Object.assign(_, { @@ -35,8 +35,8 @@ export const A = () => { })); return _ }; - return B(`div`, { + return A(`div`, { className: `Main_test`, - style: C([a()]) + style: B([a()]) }) }; diff --git a/spec/compilers/dce_remove_component_computed_property b/spec/compilers/dce_remove_component_computed_property index 4313d58e..b0fc7de7 100644 --- a/spec/compilers/dce_remove_component_computed_property +++ b/spec/compilers/dce_remove_component_computed_property @@ -8,8 +8,8 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -export const A = () => { - return B(`div`, {}) +export const B = () => { + return A(`div`, {}) }; diff --git a/spec/compilers/dce_remove_component_function b/spec/compilers/dce_remove_component_function index b7e25d8a..30b5389f 100644 --- a/spec/compilers/dce_remove_component_function +++ b/spec/compilers/dce_remove_component_function @@ -8,8 +8,8 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -export const A = () => { - return B(`div`, {}) +export const B = () => { + return A(`div`, {}) }; diff --git a/spec/compilers/dce_style b/spec/compilers/dce_style index 278f4f98..874cc137 100644 --- a/spec/compilers/dce_style +++ b/spec/compilers/dce_style @@ -8,8 +8,8 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -export const A = () => { - return B(`div`, {}) +export const B = () => { + return A(`div`, {}) }; diff --git a/spec/compilers/decode b/spec/compilers/decode index 027759c6..e17e6144 100644 --- a/spec/compilers/decode +++ b/spec/compilers/decode @@ -21,21 +21,21 @@ component Main { } -------------------------------------------------------------------------------- import { - decodeString as E, - decoder as D, - variant as B + decodeString as C, + decoder as B, + variant as A } from "./runtime.js"; export const - A = B(1), - C = B(1), - a = D({ - blah: E(C, A) - }, C, A), - b = D({ - name: E(C, A), + D = A(1), + E = A(1), + a = B({ + blah: C(E, D) + }, E, D), + b = B({ + name: C(E, D), y: a - }, C, A), + }, E, D), F = () => { b((null)); return `` diff --git a/spec/compilers/decode_function b/spec/compilers/decode_function index 824734ba..346767c0 100644 --- a/spec/compilers/decode_function +++ b/spec/compilers/decode_function @@ -21,21 +21,21 @@ component Main { } -------------------------------------------------------------------------------- import { - decodeString as E, - decoder as D, - variant as B + decodeString as C, + decoder as B, + variant as A } from "./runtime.js"; export const - A = B(1), - C = B(1), - a = D({ - blah: E(C, A) - }, C, A), - b = D({ - name: E(C, A), + D = A(1), + E = A(1), + a = B({ + blah: C(E, D) + }, E, D), + b = B({ + name: C(E, D), y: a - }, C, A), + }, E, D), F = () => { (b)((null)); return `` diff --git a/spec/compilers/decode_map b/spec/compilers/decode_map index 5b42bd6e..84dc2673 100644 --- a/spec/compilers/decode_map +++ b/spec/compilers/decode_map @@ -12,15 +12,15 @@ component Main { } -------------------------------------------------------------------------------- import { - decodeNumber as F, - decodeMap as E, - variant as B + decodeNumber as C, + decodeMap as B, + variant as A } from "./runtime.js"; export const - A = B(1), - C = B(1), - D = () => { - E(F(C, A), C, A)((([]))); + D = A(1), + E = A(1), + F = () => { + B(C(E, D), E, D)((([]))); return `` }; diff --git a/spec/compilers/decode_tuple b/spec/compilers/decode_tuple index ec12d75e..0aaa8745 100644 --- a/spec/compilers/decode_tuple +++ b/spec/compilers/decode_tuple @@ -12,20 +12,20 @@ component Main { } -------------------------------------------------------------------------------- import { - decodeNumber as G, - decodeString as F, - decodeTuple as E, - variant as B + decodeNumber as D, + decodeString as C, + decodeTuple as B, + variant as A } from "./runtime.js"; export const - A = B(1), - C = B(1), - D = () => { - E([ - F(C, A), - G(C, A), - F(C, A) - ], C, A)((([]))); + E = A(1), + F = A(1), + G = () => { + B([ + C(F, E), + D(F, E), + C(F, E) + ], F, E)((([]))); return `` }; diff --git a/spec/compilers/decoder b/spec/compilers/decoder index b92ae10e..55a3756d 100644 --- a/spec/compilers/decoder +++ b/spec/compilers/decoder @@ -30,36 +30,36 @@ component Main { } -------------------------------------------------------------------------------- import { - decodeBoolean as K, - decodeString as I, - decodeNumber as G, - decodeArray as J, - decodeMaybe as H, - decodeTime as L, - decoder as F, - variant as B + decodeBoolean as G, + decodeString as E, + decodeNumber as C, + decodeArray as F, + decodeMaybe as D, + decodeTime as H, + decoder as B, + variant as A } from "./runtime.js"; export const - A = B(1), - C = B(0), - D = B(1), - E = B(1), - a = F({ + I = A(1), + J = A(0), + K = A(1), + L = A(1), + a = B({ size: [ - G(E, D), + C(L, K), "SIIIZEEE" ] - }, E, D), - b = F({ - maybe: H(I(E, D), E, D, A, C), - array: J(I(E, D), E, D), - string: I(E, D), - number: G(E, D), - bool: K(E, D), - time: L(E, D), + }, L, K), + b = B({ + maybe: D(E(L, K), L, K, I, J), + array: F(E(L, K), L, K), + string: E(L, K), + number: C(L, K), + bool: G(L, K), + time: H(L, K), y: a - }, E, D), + }, L, K), M = () => { b(undefined); return `` diff --git a/spec/compilers/defer b/spec/compilers/defer index a82b625c..4b618f95 100644 --- a/spec/compilers/defer +++ b/spec/compilers/defer @@ -28,9 +28,9 @@ component Main { -------------------------------------------------------------------------------- ---=== /__mint__/index.js ===--- import { - createElement as D, - useEffect as B, - load as C + createElement as C, + useEffect as A, + load as B } from "./runtime.js"; export const @@ -38,23 +38,23 @@ export const return `Blah` }, b = `./1.js`, - A = () => { - B(() => { + D = () => { + A(() => { (async () => { - const c = await C(b); + const c = await B(b); return c })() }, []); - return D(`div`, {}, [a()]) + return C(`div`, {}, [a()]) }; ---=== /__mint__/1.js ===--- -import { a as c } from "./index.js"; +import { a } from "./index.js"; export const - a = () => { + b = () => { return `Hello!` }, - b = a() + c(); + c = b() + a(); -export default b; +export default c; diff --git a/spec/compilers/defer_2 b/spec/compilers/defer_2 index c9acd434..14486f47 100644 --- a/spec/compilers/defer_2 +++ b/spec/compilers/defer_2 @@ -16,27 +16,27 @@ component Main { -------------------------------------------------------------------------------- ---=== /__mint__/index.js ===--- import { - patternVariable as E, - createElement as F, - destructure as C, - useEffect as B, - load as D + patternVariable as D, + createElement as E, + destructure as B, + useEffect as A, + load as C } from "./runtime.js"; export const a = `./1.js`, - A = () => { - B(() => { + F = () => { + A(() => { (async () => { - const b = C(await D(a), [E]); + const b = B(await C(a), [D]); if (b === false) { return `` }; const [c] = b; - return await D(c) + return await C(c) })() }, []); - return F(`div`, {}, [``]) + return E(`div`, {}, [``]) }; ---=== /__mint__/1.js ===--- diff --git a/spec/compilers/destructuring b/spec/compilers/destructuring index 02d4e1a7..bea76d8c 100644 --- a/spec/compilers/destructuring +++ b/spec/compilers/destructuring @@ -22,34 +22,34 @@ component Main { } -------------------------------------------------------------------------------- import { - patternVariable as H, - newVariant as E, - pattern as G, - variant as B, - match as F + patternVariable as E, + newVariant as B, + pattern as D, + variant as A, + match as C } from "./runtime.js"; export const - A = B([ + F = A([ "matchString", "content", "key" ]), - C = B(0), - D = () => { - const a = E(A)(`MATCHSTRING`, `CONTENT`, `KEY`); - return F(a, [ + G = A(0), + H = () => { + const a = B(F)(`MATCHSTRING`, `CONTENT`, `KEY`); + return C(a, [ [ - G(A, [ + D(F, [ null, - H + E ]), (b) => { return b } ], [ - G(C, []), + D(G, []), () => { return `` } diff --git a/spec/compilers/destructuring_constant b/spec/compilers/destructuring_constant index c9b0e2a3..54c8cea4 100644 --- a/spec/compilers/destructuring_constant +++ b/spec/compilers/destructuring_constant @@ -11,12 +11,12 @@ component Main { } } -------------------------------------------------------------------------------- -import { match as B } from "./runtime.js"; +import { match as A } from "./runtime.js"; export const a = `Hello`, - A = () => { - return B(``, [ + B = () => { + return A(``, [ [ a, () => { diff --git a/spec/compilers/destructuring_state b/spec/compilers/destructuring_state index be6d9ab0..08eec52b 100644 --- a/spec/compilers/destructuring_state +++ b/spec/compilers/destructuring_state @@ -13,13 +13,13 @@ component Main { -------------------------------------------------------------------------------- import { signal as A, - match as C + match as B } from "./runtime.js"; export const a = A(`Hello`), - B = () => { - return C(``, [ + C = () => { + return B(``, [ [ a.value, () => { diff --git a/spec/compilers/directives/highlight b/spec/compilers/directives/highlight index d84cc121..73d1abb4 100644 --- a/spec/compilers/directives/highlight +++ b/spec/compilers/directives/highlight @@ -7,16 +7,16 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as B, - fragment as C + createElement as A, + fragment as B } from "./runtime.js"; -export const A = () => { +export const C = () => { return [ `Test`, - B(C, {}, [B("span", { + A(B, {}, [A("span", { className: "line" - }, [B("span", { + }, [A("span", { className: "string" }, [`"Test"`])])]) ][1] diff --git a/spec/compilers/directives/highlight-comments-multiple b/spec/compilers/directives/highlight-comments-multiple index 34343cac..36373140 100644 --- a/spec/compilers/directives/highlight-comments-multiple +++ b/spec/compilers/directives/highlight-comments-multiple @@ -9,38 +9,38 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as B, - fragment as C + createElement as A, + fragment as B } from "./runtime.js"; -export const A = () => { +export const C = () => { return [ ``, - B(C, {}, [ - B("span", { + A(B, {}, [ + A("span", { className: "line" }, [ - B("span", { + A("span", { className: "comment" }, [`// Comment1`]), ` ` ]), - B("span", { + A("span", { className: "line" }, [ ``, - B("span", { + A("span", { className: "comment" }, [`// Comment2`]), ` ` ]), - B("span", { + A("span", { className: "line" }, [ ``, - B("span", { + A("span", { className: "string" }, [`""`]) ]) diff --git a/spec/compilers/directives/highlight-file b/spec/compilers/directives/highlight-file index 0c5c5c4e..cf396afb 100644 --- a/spec/compilers/directives/highlight-file +++ b/spec/compilers/directives/highlight-file @@ -5,62 +5,62 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as B, - fragment as C + createElement as A, + fragment as B } from "./runtime.js"; -export const A = () => { - return B(C, {}, [ - B("span", { +export const C = () => { + return A(B, {}, [ + A("span", { className: "line" }, [ - B("span", { + A("span", { className: "keyword" }, [`component`]), ` `, - B("span", { + A("span", { className: "type" }, [`Main`]), ` { ` ]), - B("span", { + A("span", { className: "line" }, [ ` `, - B("span", { + A("span", { className: "keyword" }, [`fun`]), ` render : `, - B("span", { + A("span", { className: "type" }, [`Html`]), ` { ` ]), - B("span", { + A("span", { className: "line" }, [ ` <`, - B("span", { + A("span", { className: "namespace" }, [`div`]), `>`, - B("span", { + A("span", { className: "namespace" }, [`div`]), `> ` ]), - B("span", { + A("span", { className: "line" }, [` } `]), - B("span", { + A("span", { className: "line" }, [`} `]), - B("span", { + A("span", { className: "line" }, [``]) ]) diff --git a/spec/compilers/encode_in_async b/spec/compilers/encode_in_async index 1cc98e82..4d595c62 100644 --- a/spec/compilers/encode_in_async +++ b/spec/compilers/encode_in_async @@ -13,19 +13,19 @@ component Main { -------------------------------------------------------------------------------- ---=== /__mint__/index.js ===--- import { - lazyComponent as E, - createElement as D, - lazy as B + lazyComponent as C, + createElement as B, + lazy as A } from "./runtime.js"; export const - A = B(`./1.js`), - C = () => { - return D(E, { + D = A(`./1.js`), + E = () => { + return B(C, { c: [], key: `X`, p: {}, - x: A + x: D }) }; diff --git a/spec/compilers/encoder_and_decoder b/spec/compilers/encoder_and_decoder index 0c935861..71c10b48 100644 --- a/spec/compilers/encoder_and_decoder +++ b/spec/compilers/encoder_and_decoder @@ -18,24 +18,24 @@ component Main { } -------------------------------------------------------------------------------- import { - decodeNumber as F, - decodeString as E, - identity as H, - encoder as G, - decoder as D, - variant as B + decodeNumber as D, + decodeString as C, + identity as F, + encoder as E, + decoder as B, + variant as A } from "./runtime.js"; export const - A = B(1), - C = B(1), - a = D({ - string: E(C, A), - number: F(C, A) - }, C, A), - b = G({ - string: H, - number: H + G = A(1), + H = A(1), + a = B({ + string: C(H, G), + number: D(H, G) + }, H, G), + b = E({ + string: F, + number: F }), I = () => { a(undefined); diff --git a/spec/compilers/field b/spec/compilers/field index fa3afe1d..e59d3a46 100644 --- a/spec/compilers/field +++ b/spec/compilers/field @@ -14,12 +14,12 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -export const A = () => { +export const B = () => { { a: `Hello`, b: 0 }; - return B(`div`, {}) + return A(`div`, {}) }; diff --git a/spec/compilers/field_access b/spec/compilers/field_access index d71b5457..956c9e7a 100644 --- a/spec/compilers/field_access +++ b/spec/compilers/field_access @@ -24,13 +24,13 @@ component Main { } } -------------------------------------------------------------------------------- -import { access as B } from "./runtime.js"; +import { access as A } from "./runtime.js"; export const a = (b, c) => { return undefined }, - A = () => { + B = () => { a([ { name: `Joe` @@ -38,6 +38,6 @@ export const { name: `Doe` } - ], B(`name`)); + ], A(`name`)); return `asd` }; diff --git a/spec/compilers/for b/spec/compilers/for index 22d34470..fd95bab9 100644 --- a/spec/compilers/for +++ b/spec/compilers/for @@ -8,9 +8,9 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -export const A = () => { +export const B = () => { return (() => { const _0 = []; const _1 = [ @@ -20,7 +20,7 @@ export const A = () => { let _i = -1; for (let a of _1) { _i++; - _0.push(B(`div`, {}, [a])) + _0.push(A(`div`, {}, [a])) }; return _0 })() diff --git a/spec/compilers/for_with_destructuring b/spec/compilers/for_with_destructuring index a2a1c7b6..30b6a7aa 100644 --- a/spec/compilers/for_with_destructuring +++ b/spec/compilers/for_with_destructuring @@ -9,12 +9,12 @@ component Main { } -------------------------------------------------------------------------------- import { - patternVariable as C, - createElement as D, - destructure as B + patternVariable as B, + createElement as C, + destructure as A } from "./runtime.js"; -export const A = () => { +export const D = () => { return (() => { const _0 = []; const _1 = [[ @@ -27,11 +27,11 @@ export const A = () => { const [ b, c - ] = B(a, [ - C, - C + ] = A(a, [ + B, + B ]); - _0.push(D(`div`, {}, [`${b},${c}`])) + _0.push(C(`div`, {}, [`${b},${c}`])) }; return _0 })() diff --git a/spec/compilers/for_with_index b/spec/compilers/for_with_index index 1b1e470e..ae849f56 100644 --- a/spec/compilers/for_with_index +++ b/spec/compilers/for_with_index @@ -11,11 +11,11 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as C, - compare as B + createElement as B, + compare as A } from "./runtime.js"; -export const A = () => { +export const C = () => { return (() => { const _0 = []; const _1 = [ @@ -26,11 +26,11 @@ export const A = () => { for (let a of _1) { _i++; const b = _i; - const _2 = B(b, 10); + const _2 = A(b, 10); if (!_2) { continue }; - _0.push(C(`div`, {}, [a])) + _0.push(B(`div`, {}, [a])) }; return _0 })() diff --git a/spec/compilers/for_with_index_2 b/spec/compilers/for_with_index_2 index 3cb44308..aed69fff 100644 --- a/spec/compilers/for_with_index_2 +++ b/spec/compilers/for_with_index_2 @@ -8,9 +8,9 @@ component Main { } } -------------------------------------------------------------------------------- -import { createElement as B } from "./runtime.js"; +import { createElement as A } from "./runtime.js"; -export const A = () => { +export const B = () => { return (() => { const _0 = []; const _1 = [ @@ -21,7 +21,7 @@ export const A = () => { for (let a of _1) { _i++; const b = _i; - _0.push(B(`div`, {}, [a])) + _0.push(A(`div`, {}, [a])) }; return _0 })() diff --git a/spec/compilers/function_call_with_arguments b/spec/compilers/function_call_with_arguments index 9188dc23..3f42aae2 100644 --- a/spec/compilers/function_call_with_arguments +++ b/spec/compilers/function_call_with_arguments @@ -25,4 +25,3 @@ export const A = () => { d(); return `` }; - diff --git a/spec/compilers/here_doc_markdown b/spec/compilers/here_doc_markdown index 05f5b8b2..b17b2ddf 100644 --- a/spec/compilers/here_doc_markdown +++ b/spec/compilers/here_doc_markdown @@ -9,13 +9,13 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as B, - fragment as C + createElement as A, + fragment as B } from "./runtime.js"; -export const A = () => { - return B(C, {}, [ - B('h2', {}, [`Hello There`]), - B('p', {}, [`WTF`]) +export const C = () => { + return A(B, {}, [ + A('h2', {}, [`Hello There`]), + A('p', {}, [`WTF`]) ]) }; diff --git a/spec/compilers/here_doc_markdown_escape b/spec/compilers/here_doc_markdown_escape index ccec02e8..6ae37f67 100644 --- a/spec/compilers/here_doc_markdown_escape +++ b/spec/compilers/here_doc_markdown_escape @@ -14,61 +14,61 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as B, - fragment as C + createElement as A, + fragment as B } from "./runtime.js"; -export const A = () => { - return B(C, {}, [ - B('p', {}, [`#{name}`]), - B('pre', {}, [B('code', { +export const C = () => { + return A(B, {}, [ + A('p', {}, [`#{name}`]), + A('pre', {}, [A('code', { class: "language-mint" }, [ - B('span', { + A('span', { class: "line" }, [`\`Something\` `]), - B('span', { + A('span', { class: "line" }, [ ``, - B('span', { + A('span', { class: "string" }, [`"#{`]), - B('span', { + A('span', { class: "variable" }, [`name`]), - B('span', { + A('span', { class: "string" }, [`}"`]), ` ` ]), - B('span', { + A('span', { class: "line" }, [ ``, - B('span', { + A('span', { class: "string" }, [`"First line" \\`]), ` ` ]), - B('span', { + A('span', { class: "line" }, [ ``, - B('span', { + A('span', { class: "string" }, [`"Second line" \\`]), ` ` ]), - B('span', { + A('span', { class: "line" }, [ ``, - B('span', { + A('span', { class: "string" }, [`"Third line"`]) ]) diff --git a/spec/compilers/here_doc_markdown_in_markdown b/spec/compilers/here_doc_markdown_in_markdown index 0ae9c39c..81a03025 100644 --- a/spec/compilers/here_doc_markdown_in_markdown +++ b/spec/compilers/here_doc_markdown_in_markdown @@ -17,65 +17,65 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as B, - fragment as C + createElement as A, + fragment as B } from "./runtime.js"; -export const A = () => { - return B(C, {}, [B('pre', {}, [B('code', { +export const C = () => { + return A(B, {}, [A('pre', {}, [A('code', { class: "language-mint" }, [ - B('span', { + A('span', { class: "line" }, [ `<<#MD(`, - B('span', { + A('span', { class: "keyword" }, [`highlight`]), `)`, - B('span', { + A('span', { class: "string" }, [``]) ]), - B('span', { + A('span', { class: "line" - }, [B('span', { + }, [A('span', { class: "string" }, [`This is a paragraph.`])]), - B('span', { + A('span', { class: "line" - }, [B('span', { + }, [A('span', { class: "string" }, [``])]), - B('span', { + A('span', { class: "line" - }, [B('span', { + }, [A('span', { class: "string" }, [`\`\`\`mint`])]), - B('span', { + A('span', { class: "line" - }, [B('span', { + }, [A('span', { class: "string" }, [`module Mint {`])]), - B('span', { + A('span', { class: "line" - }, [B('span', { + }, [A('span', { class: "string" }, [` // This will be syntax highlighted`])]), - B('span', { + A('span', { class: "line" - }, [B('span', { + }, [A('span', { class: "string" }, [`}`])]), - B('span', { + A('span', { class: "line" - }, [B('span', { + }, [A('span', { class: "string" }, [`\`\`\``])]), - B('span', { + A('span', { class: "line" }, [ - B('span', { + A('span', { class: "string" }, [``]), `MD` diff --git a/spec/compilers/here_doc_markdown_with_code_block b/spec/compilers/here_doc_markdown_with_code_block index 3c9d7dc8..623c889d 100644 --- a/spec/compilers/here_doc_markdown_with_code_block +++ b/spec/compilers/here_doc_markdown_with_code_block @@ -13,27 +13,27 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as B, - fragment as C + createElement as A, + fragment as B } from "./runtime.js"; -export const A = () => { - return B(C, {}, [ - B('p', {}, [`Text`]), - B('pre', {}, [B('code', { +export const C = () => { + return A(B, {}, [ + A('p', {}, [`Text`]), + A('pre', {}, [A('code', { class: "language-mint" - }, [B('span', { + }, [A('span', { class: "line" }, [ - B('span', { + A('span', { class: "keyword" }, [`module`]), ` `, - B('span', { + A('span', { class: "type" }, [`Time`]), ` {}` ])])]), - B('p', {}, [`Text`]) + A('p', {}, [`Text`]) ]) }; diff --git a/spec/compilers/here_doc_markdown_with_code_block_interpolation b/spec/compilers/here_doc_markdown_with_code_block_interpolation index 3b70a1a1..bb4b94fc 100644 --- a/spec/compilers/here_doc_markdown_with_code_block_interpolation +++ b/spec/compilers/here_doc_markdown_with_code_block_interpolation @@ -11,16 +11,16 @@ component Main { } -------------------------------------------------------------------------------- import { - createElement as B, - fragment as C + createElement as A, + fragment as B } from "./runtime.js"; -export const A = () => { +export const C = () => { const a = [ 0, 0 ]; - return B(C, {}, [B('pre', {}, [B('code', { + return A(B, {}, [A('pre', {}, [A('code', { class: "language-mint" }, [ `