aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/solid-dom-fixtures/conditionalExpressions/output.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
commit729d445b6885f69dd2c6355f38707bd42851c791 (patch)
treef87a7c408929ea3f57bbb7ace380cf869da83c0e /integration/bunjs-only-snippets/solid-dom-fixtures/conditionalExpressions/output.js
parent25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff)
downloadbun-jarred/rename.tar.gz
bun-jarred/rename.tar.zst
bun-jarred/rename.zip
change the directory structurejarred/rename
Diffstat (limited to 'integration/bunjs-only-snippets/solid-dom-fixtures/conditionalExpressions/output.js')
-rw-r--r--integration/bunjs-only-snippets/solid-dom-fixtures/conditionalExpressions/output.js319
1 files changed, 0 insertions, 319 deletions
diff --git a/integration/bunjs-only-snippets/solid-dom-fixtures/conditionalExpressions/output.js b/integration/bunjs-only-snippets/solid-dom-fixtures/conditionalExpressions/output.js
deleted file mode 100644
index 1511f4222..000000000
--- a/integration/bunjs-only-snippets/solid-dom-fixtures/conditionalExpressions/output.js
+++ /dev/null
@@ -1,319 +0,0 @@
-import { template as _$template } from "r-dom";
-import { effect as _$effect } from "r-dom";
-import { createComponent as _$createComponent } from "r-dom";
-import { memo as _$memo } from "r-dom";
-import { insert as _$insert } from "r-dom";
-
-const _tmpl$ = /*#__PURE__*/ _$template(`<div></div>`, 2);
-
-const template1 = (() => {
- const _el$ = _tmpl$.cloneNode(true);
-
- _$insert(_el$, simple);
-
- return _el$;
-})();
-
-const template2 = (() => {
- const _el$2 = _tmpl$.cloneNode(true);
-
- _$insert(_el$2, () => state.dynamic);
-
- return _el$2;
-})();
-
-const template3 = (() => {
- const _el$3 = _tmpl$.cloneNode(true);
-
- _$insert(_el$3, simple ? good : bad);
-
- return _el$3;
-})();
-
-const template4 = (() => {
- const _el$4 = _tmpl$.cloneNode(true);
-
- _$insert(_el$4, () => (simple ? good() : bad));
-
- return _el$4;
-})();
-
-const template5 = (() => {
- const _el$5 = _tmpl$.cloneNode(true);
-
- _$insert(
- _el$5,
- (() => {
- const _c$ = _$memo(() => !!state.dynamic, true);
-
- return () => (_c$() ? good() : bad);
- })()
- );
-
- return _el$5;
-})();
-
-const template6 = (() => {
- const _el$6 = _tmpl$.cloneNode(true);
-
- _$insert(
- _el$6,
- (() => {
- const _c$2 = _$memo(() => !!state.dynamic, true);
-
- return () => _c$2() && good();
- })()
- );
-
- return _el$6;
-})();
-
-const template7 = (() => {
- const _el$7 = _tmpl$.cloneNode(true);
-
- _$insert(
- _el$7,
- (() => {
- const _c$3 = _$memo(() => state.count > 5, true);
-
- return () =>
- _c$3()
- ? (() => {
- const _c$4 = _$memo(() => !!state.dynamic, true);
-
- return () => (_c$4() ? best : good());
- })()
- : bad;
- })()
- );
-
- return _el$7;
-})();
-
-const template8 = (() => {
- const _el$8 = _tmpl$.cloneNode(true);
-
- _$insert(
- _el$8,
- (() => {
- const _c$5 = _$memo(() => !!(state.dynamic && state.something), true);
-
- return () => _c$5() && good();
- })()
- );
-
- return _el$8;
-})();
-
-const template9 = (() => {
- const _el$9 = _tmpl$.cloneNode(true);
-
- _$insert(
- _el$9,
- (() => {
- const _c$6 = _$memo(() => !!state.dynamic, true);
-
- return () => (_c$6() && good()) || bad;
- })()
- );
-
- return _el$9;
-})();
-
-const template10 = (() => {
- const _el$10 = _tmpl$.cloneNode(true);
-
- _$insert(_el$10, () =>
- state.a ? "a" : state.b ? "b" : state.c ? "c" : "fallback"
- );
-
- return _el$10;
-})();
-
-const template11 = (() => {
- const _el$11 = _tmpl$.cloneNode(true);
-
- _$insert(
- _el$11,
- (() => {
- const _c$7 = _$memo(() => !!state.a, true);
-
- return () =>
- _c$7()
- ? a()
- : (() => {
- const _c$8 = _$memo(() => !!state.b, true);
-
- return () => (_c$8() ? b() : state.c ? "c" : "fallback");
- })();
- })()
- );
-
- return _el$11;
-})();
-
-const template12 = _$createComponent(Comp, {
- get render() {
- return _$memo(() => !!state.dynamic, true)() ? good() : bad;
- },
-}); // no dynamic predicate
-
-const template13 = _$createComponent(Comp, {
- get render() {
- return state.dynamic ? good : bad;
- },
-});
-
-const template14 = _$createComponent(Comp, {
- get render() {
- return _$memo(() => !!state.dynamic, true)() && good();
- },
-}); // no dynamic predicate
-
-const template15 = _$createComponent(Comp, {
- get render() {
- return state.dynamic && good;
- },
-});
-
-const template16 = _$createComponent(Comp, {
- get render() {
- return state.dynamic || good();
- },
-});
-
-const template17 = _$createComponent(Comp, {
- get render() {
- return _$memo(() => !!state.dynamic, true)()
- ? _$createComponent(Comp, {})
- : _$createComponent(Comp, {});
- },
-});
-
-const template18 = _$createComponent(Comp, {
- get children() {
- return _$memo(() => !!state.dynamic, true)()
- ? _$createComponent(Comp, {})
- : _$createComponent(Comp, {});
- },
-});
-
-const template19 = (() => {
- const _el$12 = _tmpl$.cloneNode(true);
-
- _$effect(
- () =>
- (_el$12.innerHTML = state.dynamic
- ? _$createComponent(Comp, {})
- : _$createComponent(Comp, {}))
- );
-
- return _el$12;
-})();
-
-const template20 = (() => {
- const _el$13 = _tmpl$.cloneNode(true);
-
- _$insert(
- _el$13,
- (() => {
- const _c$9 = _$memo(() => !!state.dynamic, true);
-
- return () =>
- _c$9() ? _$createComponent(Comp, {}) : _$createComponent(Comp, {});
- })()
- );
-
- return _el$13;
-})();
-
-const template21 = _$createComponent(Comp, {
- get render() {
- return state?.dynamic ? "a" : "b";
- },
-});
-
-const template22 = _$createComponent(Comp, {
- get children() {
- return state?.dynamic ? "a" : "b";
- },
-});
-
-const template23 = (() => {
- const _el$14 = _tmpl$.cloneNode(true);
-
- _$effect(() => (_el$14.innerHTML = state?.dynamic ? "a" : "b"));
-
- return _el$14;
-})();
-
-const template24 = (() => {
- const _el$15 = _tmpl$.cloneNode(true);
-
- _$insert(_el$15, () => (state?.dynamic ? "a" : "b"));
-
- return _el$15;
-})();
-
-const template25 = _$createComponent(Comp, {
- get render() {
- return state.dynamic ?? _$createComponent(Comp, {});
- },
-});
-
-const template26 = _$createComponent(Comp, {
- get children() {
- return state.dynamic ?? _$createComponent(Comp, {});
- },
-});
-
-const template27 = (() => {
- const _el$16 = _tmpl$.cloneNode(true);
-
- _$effect(
- () => (_el$16.innerHTML = state.dynamic ?? _$createComponent(Comp, {}))
- );
-
- return _el$16;
-})();
-
-const template28 = (() => {
- const _el$17 = _tmpl$.cloneNode(true);
-
- _$insert(_el$17, () => state.dynamic ?? _$createComponent(Comp, {}));
-
- return _el$17;
-})();
-
-const template29 = (() => {
- const _el$18 = _tmpl$.cloneNode(true);
-
- _$insert(
- _el$18,
- (() => {
- const _c$10 = _$memo(() => !!thing(), true);
-
- return () => (_c$10() && thing1()) ?? thing2() ?? thing3();
- })()
- );
-
- return _el$18;
-})();
-
-const template30 = (() => {
- const _el$19 = _tmpl$.cloneNode(true);
-
- _$insert(_el$19, () => thing() || thing1() || thing2());
-
- return _el$19;
-})();
-
-const template31 = _$createComponent(Comp, {
- get value() {
- return _$memo(() => !!count(), true)()
- ? _$memo(() => !!count(), true)()
- ? count()
- : count()
- : count();
- },
-});