diff --git a/.mocharc.parallel.cjs b/.mocharc.parallel.cjs index e8e25b727b4..14b1e4c8e5b 100644 --- a/.mocharc.parallel.cjs +++ b/.mocharc.parallel.cjs @@ -7,5 +7,8 @@ module.exports = { ...base, bail: false, timeout: 30000, + // V8's default limit sits above `MARKO_TEST_WORKER_MEM`, so a worker hands its + // slice to a fresh process before collecting; a major GC is the cheaper trade. + "node-option": [...base["node-option"], "max-old-space-size=2048"], require: [...base.require, "./scripts/test-parallel-worker.cjs"], }; diff --git a/agent-feedback/items/2026-07-11-re-measure-test-parallel-before-chasing-further-speedups.md b/agent-feedback/items/2026-07-11-re-measure-test-parallel-before-chasing-further-speedups.md deleted file mode 100644 index 1e105929941..00000000000 --- a/agent-feedback/items/2026-07-11-re-measure-test-parallel-before-chasing-further-speedups.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -type: dx -impact: med -effort: high -site: scripts/test-parallel.js ---- - -# Re-measure `test:parallel` before chasing further speedups - -The "CPU-bound, so packing and worker count can't help" conclusion rests on a profile that no longer describes the tooling: `@babel/register` is gone (Node strips types natively) and the `c8 report` pass was replaced by zcov in a2ac845475. Nothing has re-profiled a worker since. If a fresh profile still shows significant idle, the one identified win — pipelining the next fixture's `createServerRunner()` build one fixture ahead, gated on `MARKO_TEST_SLOTS` — remains blocked by `packages/runtime-tags/src/__tests__/utils/capture-console.ts`, which patches `globalThis.console` process-wide so a concurrent build's output lands in another test's capture window; scope that capture first. - -Check: by `--cpu-prof`-ing one worker of `node scripts/test-parallel.js`. diff --git a/agent-feedback/items/2026-08-30-measure-optimize-sizes-without-bundling-the-runtime.md b/agent-feedback/items/2026-08-30-measure-optimize-sizes-without-bundling-the-runtime.md new file mode 100644 index 00000000000..a06aeb4efb1 --- /dev/null +++ b/agent-feedback/items/2026-08-30-measure-optimize-sizes-without-bundling-the-runtime.md @@ -0,0 +1,21 @@ +--- +type: perf +impact: med +effort: high +site: packages/runtime-tags/src/__tests__/utils/bundle.ts › externalRuntimePlugin +--- + +# Measure optimize sizes without bundling the runtime into every fixture + +The optimize dom build re-emits and tree-shakes the whole runtime for every +fixture, because `sizes.json` records minified chunk totals and those totals +only exist if the runtime sits in the chunk. It is the one fixture build that +cannot link the prebuilt runtime as an external, and it dominates what bundling +costs the suite. + +Measuring a chunk's shared-runtime share once per process and adding it to the +fixture's own tree-shaken bytes would let that build take the external too. + +Check: in `createBuilds`, extend `externalRuntimePlugin` to the optimize dom +build and time `pnpm run test:parallel`; the fixture `sizes.json` assertions are +what fail. diff --git a/agent-feedback/items/2026-08-30-pool-jsdom-windows-across-fixtures.md b/agent-feedback/items/2026-08-30-pool-jsdom-windows-across-fixtures.md new file mode 100644 index 00000000000..f9f3be67391 --- /dev/null +++ b/agent-feedback/items/2026-08-30-pool-jsdom-windows-across-fixtures.md @@ -0,0 +1,22 @@ +--- +type: perf +impact: low +effort: high +site: packages/runtime-tags/src/__tests__/utils/create-browser.ts › createBrowser +--- + +# Pool jsdom windows across fixtures + +`createBrowser` builds a fresh `JSDOM` for each of a fixture's ssr and csr runs +and jsdom re-installs every Web IDL class onto the new realm each time, which +is ~10% of the test worker's main-thread inclusive cost. A pool recovers under +3% of wall, though, because the reset it needs is most of the cost it saves, +and the reset is hard to get right: clearing the realm's added globals (the +resume registry is a global named for the runtime id), replacing the document, +dropping the `importWithContext` module cache and cancelling tracked timers +still leaves fixtures reading each other's counters. Worth revisiting only with +a reset that is provably complete, since a leak is a cross-fixture correctness +bug rather than a slow test. + +Check: `--cpu-prof` one worker of `node scripts/test-parallel.js` and read the +inclusive cost of `exports.createWindow`. diff --git a/agent-feedback/items/2026-08-30-schedule-test-parallel-slices-dynamically.md b/agent-feedback/items/2026-08-30-schedule-test-parallel-slices-dynamically.md new file mode 100644 index 00000000000..59c49132ead --- /dev/null +++ b/agent-feedback/items/2026-08-30-schedule-test-parallel-slices-dynamically.md @@ -0,0 +1,21 @@ +--- +type: perf +impact: med +effort: high +site: scripts/test-parallel.js › packBins +--- + +# Schedule test-parallel slices dynamically + +`packBins` assigns every slice up front and assumes each costs the same, so a +run finishes when its unluckiest worker does: on four cores the workers land +around 35s, 36s, 38s and 41s, and the last one sets the wall time. The spread +is fixture cost variance, not slicing granularity — raising `SLOT_TOTAL` from +`WORKERS * 16` to `WORKERS * 256` leaves it unchanged, since each worker +already runs ~280 fixtures. Recovering the tail needs workers to claim slices +as they free up rather than owning a fixed set, which the suites' `beforeEach` +skip hook could already express; the hard part is that mocha registers every +suite at load time, so a claim has to be cheap enough to run per suite. + +Check: `taskset -c 0-3 node scripts/test-parallel.js` and compare the per-worker +times it prints. diff --git a/agent-feedback/items/2026-08-31-capture-console-patches-a-process-global.md b/agent-feedback/items/2026-08-31-capture-console-patches-a-process-global.md new file mode 100644 index 00000000000..c4d706942c7 --- /dev/null +++ b/agent-feedback/items/2026-08-31-capture-console-patches-a-process-global.md @@ -0,0 +1,19 @@ +--- +type: cleanup +impact: low +effort: medium +site: packages/runtime-tags/src/__tests__/utils/capture-console.ts +--- + +# `captureConsole` records through a process global + +The no-argument `captureConsole()` swaps `globalThis.console`, so anything that +logs while a window is open is attributed to whichever fixture happens to be +rendering. Nothing does today — the jsdom path gets its own `virtualConsole`, +the compiler reports through diagnostics, and a fixture's bundles are awaited +before its window opens — but that is a set of separate guarantees rather than +one property, and each new concurrent logger has to rediscover it. + +The server render already runs in a `vm` context (`importWithContext`), so it +could take a per-realm `console` the way the jsdom path does, and capture would +stop depending on what else is running. diff --git a/agent-feedback/items/2026-09-01-pipeline-fixture-builds-into-worker-idle.md b/agent-feedback/items/2026-09-01-pipeline-fixture-builds-into-worker-idle.md new file mode 100644 index 00000000000..e0bb14f2c72 --- /dev/null +++ b/agent-feedback/items/2026-09-01-pipeline-fixture-builds-into-worker-idle.md @@ -0,0 +1,23 @@ +--- +type: perf +impact: med +effort: high +site: packages/runtime-tags/src/__tests__/main.test.ts › ssrRunner +--- + +# Pipeline the next fixture build into the worker's idle time + +A `--cpu-prof` of one `test:parallel` worker running `main.test.ts` alone +spends 32% of its wall time in `(idle)`: `createServerRunner` awaits rolldown, +whose work runs on native threads while the JS thread has nothing to do. With +one worker per core the other workers absorb some of that, but the run still +sits at ~80% core utilization, so the gap is the largest remaining bucket. + +Building the next mode's (or fixture's) runner one step ahead of the tests that +consume it would overlap that wait with test work. What blocks it is that +`captureConsole()` swaps `globalThis.console`, so a build's compiler output +would land in whichever fixture is rendering (see the capture-console item). + +Check: `node --cpu-prof --experimental-vm-modules node_modules/mocha/bin/_mocha +--config .mocharc.parallel.cjs packages/runtime-tags/src/__tests__/main.test.ts` +and read the `(idle)` share of self time. diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/error-serialize-promise-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/error-serialize-promise-class-to-tags/__snapshots__/html.bundle.debug.js index 8f8d9cb2faf..bc1df593e7d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/error-serialize-promise-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/error-serialize-promise-class-to-tags/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var tags_child_default = _template("__tests__/components/tags-child.marko", (inp let pending = Promise.resolve("hi"); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-child.marko_0"); - writeScope($scope0_id, { pending }, "__tests__/components/tags-child.marko", 0, { pending: "2:6" }); + _scope($scope0_id, { pending }, "__tests__/components/tags-child.marko", 0, { pending: "2:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/error-serialize-promise-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/error-serialize-promise-class-to-tags/__snapshots__/html.bundle.js index 43a791fe694..32c16bf09c3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/error-serialize-promise-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/error-serialize-promise-class-to-tags/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var tags_child_default = _template("b", (input) => { let pending = Promise.resolve("hi"); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { b: pending }); + _scope($scope0_id, { b: pending }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/error-unserializable-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/error-unserializable-class-to-tags/__snapshots__/html.bundle.debug.js index d80c354115a..418ccf29f6b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/error-unserializable-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/error-unserializable-class-to-tags/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var tags_child_default = _template("__tests__/components/tags-child.marko", (inp let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-child.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_data: input.data, count }, "__tests__/components/tags-child.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-attr-tags-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-attr-tags-tags-to-class/__snapshots__/dom.bundle.debug.js index 8cf038827f6..71c5879ba55 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-attr-tags-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-attr-tags-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-attr-tags-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-attr-tags-tags-to-class/__snapshots__/html.bundle.debug.js index af4ea8df97a..be86dfe6873 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-attr-tags-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-attr-tags-tags-to-class/__snapshots__/html.bundle.debug.js @@ -64,6 +64,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-await-class-to-tags/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-await-class-to-tags/__snapshots__/dom.bundle.debug.js index abff519cf24..c24894dd1c4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-await-class-to-tags/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-await-class-to-tags/__snapshots__/dom.bundle.debug.js @@ -1,4 +1,5 @@ // components/tags-child.marko +var import_vdom = require_vdom(); const $template = ""; const $walks = "b%c"; const $await_content__value = ($scope, value) => _text($scope["#text/0"], value); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.debug.js index fc264364b0b..cb9b79407ab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var tags_counter_default = _template("__tests__/components/tags-counter.marko", let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-counter.marko_0"); - writeScope($scope0_id, { count }, "__tests__/components/tags-counter.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/components/tags-counter.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.js index 6215d7e53df..a920e7724f1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var tags_counter_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { f: count }); + _scope($scope0_id, { f: count }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.debug.js index f3a55c03028..5597c524aed 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/html.bundle.debug.js index 4c3048fe732..dc67c82c532 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/html.bundle.debug.js @@ -30,6 +30,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); _dynamic_tag($scope0_id, "#text/2", _marko_template, { count }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/html.bundle.js index 98452a5aa54..3f928c2e9ec 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/html.bundle.js @@ -24,6 +24,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _dynamic_tag($scope0_id, "c", _marko_template, { count }); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: count }); + _scope($scope0_id, { d: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-inert-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-inert-class/__snapshots__/html.bundle.debug.js index 458841e5ed9..629ed8cbe71 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-inert-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-inert-class/__snapshots__/html.bundle.debug.js @@ -22,6 +22,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); _dynamic_tag($scope0_id, "#text/2", _marko_template, { value: "Hello World" }, 0, 0, 0); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-inert-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-inert-class/__snapshots__/html.bundle.js index 78402eb4ea1..fda6aa08ca0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-inert-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-inert-class/__snapshots__/html.bundle.js @@ -18,6 +18,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _dynamic_tag($scope0_id, "c", _marko_template, { value: "Hello World" }, 0, 0, 0); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: count }); + _scope($scope0_id, { d: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/dom.bundle.debug.js index 8b003cdbdb1..e905d20a260 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/html.bundle.debug.js index b8c83d868e8..8a95acce05b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/html.bundle.debug.js @@ -28,6 +28,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/onValueChanged", $scope0_id) }, 0, 0, 0); _html(`
${_text_resume($scope0_id, "#text/1", received)}
`); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/html.bundle.js index 8fe5137402b..cc1e789ae18 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-camel-events-tags-to-class/__snapshots__/html.bundle.js @@ -22,6 +22,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }, 0, 0, 0); _html(`
${_text_resume($scope0_id, "b", received)}
`); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/html.bundle.debug.js index e4a8383c13e..d373b8cc717 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var tags_counter_default = _template("__tests__/components/tags-counter.marko", let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-counter.marko_0"); - writeScope($scope0_id, { count }, "__tests__/components/tags-counter.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/components/tags-counter.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/html.bundle.js index d34895ffd0b..a29984e7afa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-class-to-tags-import/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var tags_counter_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { f: count }); + _scope($scope0_id, { f: count }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-content-event-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-content-event-tags-to-class/__snapshots__/html.bundle.debug.js index 56ec238bc76..2be39d76393 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-content-event-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-content-event-tags-to-class/__snapshots__/html.bundle.debug.js @@ -39,7 +39,7 @@ var tags_mid_default = _template("__tests__/components/tags-mid.marko", (input) _html("deep body"); }, $scope0_id)); _script($scope0_id, "__tests__/components/tags-mid.marko_0"); - writeScope($scope0_id, { count }, "__tests__/components/tags-mid.marko", 0, { count: "2:6" }); + _scope($scope0_id, { count }, "__tests__/components/tags-mid.marko", 0, { count: "2:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-deprecated-core-tag-migrate/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-deprecated-core-tag-migrate/__snapshots__/html.bundle.debug.js index 55d9d1e6039..d2e4deb4604 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-deprecated-core-tag-migrate/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-deprecated-core-tag-migrate/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}
`); _script($scope0_id, "__tests__/template.marko_0_greeting#3_count#4"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { greeting, count }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-deprecated-core-tag-migrate/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-deprecated-core-tag-migrate/__snapshots__/html.bundle.js index c9fc0252193..58af0b062c6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-deprecated-core-tag-migrate/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-deprecated-core-tag-migrate/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}
`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: greeting, e: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/dom.bundle.debug.js index 3dd725c0daa..fcc0756a466 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/html.bundle.debug.js index b7ccd07b3ef..afccbb6e47c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/html.bundle.debug.js @@ -31,6 +31,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _dynamic_tag($scope0_id, "#text/2", _marko_template, { count }); _dynamic_tag($scope0_id, "#text/3", _marko_template, { count }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/html.bundle.js index 29e7e1d04bd..e7382a24ee0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-duplicate-class-tag-registration/__snapshots__/html.bundle.js @@ -25,6 +25,6 @@ var template_default = _template("a", (input) => { _dynamic_tag($scope0_id, "c", _marko_template, { count }); _dynamic_tag($scope0_id, "d", _marko_template, { count }); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: count }); + _scope($scope0_id, { e: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-class-to-tags/__snapshots__/html.bundle.debug.js index 70653c8f79f..b93b7ffff36 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-class-to-tags/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var tags_child_default = _template("__tests__/components/tags-child.marko", (inp let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/components/tags-child.marko", 0, { count: "2:6" }); + _scope($scope0_id, { count }, "__tests__/components/tags-child.marko", 0, { count: "2:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-class-to-tags/__snapshots__/html.bundle.js index 69e2a70954b..543fb4c4a60 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-class-to-tags/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var tags_child_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-conditional-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-conditional-class-to-tags/__snapshots__/html.bundle.debug.js index 58b00c54192..09e75126397 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-conditional-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-conditional-class-to-tags/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var tags_child_default = _template("__tests__/components/tags-child.marko", (inp let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/components/tags-child.marko", 0, { count: "2:6" }); + _scope($scope0_id, { count }, "__tests__/components/tags-child.marko", 0, { count: "2:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-conditional-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-conditional-class-to-tags/__snapshots__/html.bundle.js index 40575ae174c..78ee648e0f7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-conditional-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-dynamic-tag-conditional-class-to-tags/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var tags_child_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/dom.bundle.debug.js index f55e84ab909..830c05259eb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/html.bundle.debug.js index a01e6d0a323..69254d2f869 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/html.bundle.debug.js @@ -29,6 +29,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("Reset"); }, $scope0_id), 0, 0); _html(`
${_text_resume($scope0_id, "#text/1", msg)}
`); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/html.bundle.js index 5b1eb8f8ab2..366fbcb5d9f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-inline-tags-to-class/__snapshots__/html.bundle.js @@ -25,6 +25,6 @@ var template_default = _template("a", (input) => { _html("Reset"); }, $scope0_id), 0, 0); _html(`
${_text_resume($scope0_id, "b", msg)}
`); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/dom.bundle.debug.js index ead1cdec183..1b716db6a12 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/html.bundle.debug.js index 0d11bc23306..5d94122d4f0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/html.bundle.debug.js @@ -29,6 +29,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("Reset"); }, $scope0_id), 0, 0); _html(`
${_text_resume($scope0_id, "#text/1", msg)}
`); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/html.bundle.js index f119e4685df..6e3e2bf86ad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-emit-split-tags-to-class/__snapshots__/html.bundle.js @@ -27,6 +27,6 @@ var template_default = _template("a", (input) => { _html("Reset"); }, $scope0_id), 0, 0); _html(`
${_text_resume($scope0_id, "b", msg)}
`); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-through-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-through-tags-to-class/__snapshots__/html.bundle.debug.js index e2c3b570ddc..c98f69ded77 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-through-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-through-tags-to-class/__snapshots__/html.bundle.debug.js @@ -23,7 +23,7 @@ var tags_child_default = _template("__tests__/components/tags-child.marko", (inp _dynamic_tag($scope0_id, "#text/0", _marko_template$1, { "on-change": _resume(function() { input.onChange?.(); }, "__tests__/components/tags-child.marko_0/onchange", $scope0_id) }, 0, 0, _serialize_guard($scope0_reason, 0)); - writeScope($scope0_id, { input_onChange: input.onChange }, "__tests__/components/tags-child.marko", 0, { input_onChange: ["input.onChange"] }); + _scope($scope0_id, { input_onChange: input.onChange }, "__tests__/components/tags-child.marko", 0, { input_onChange: ["input.onChange"] }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-through-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-through-tags-to-class/__snapshots__/html.bundle.js index c0ae6c41093..cd8aa85d438 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-through-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-through-tags-to-class/__snapshots__/html.bundle.js @@ -17,7 +17,7 @@ var tags_child_default = _template("c", (input) => { _dynamic_tag($scope0_id, "a", _marko_template$1, { "on-change": _resume(function() { input.onChange?.(); }, "c0", $scope0_id) }, 0, 0, _serialize_guard($scope0_reason, 0)); - writeScope($scope0_id, { d: input.onChange }); + _scope($scope0_id, { d: input.onChange }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-to-tags/__snapshots__/html.bundle.debug.js index ff6b858fd59..b4400abb27c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-to-tags/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var tags_pinger_default = _template("__tests__/components/tags-pinger.marko", (i let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-pinger.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_onPing: input.onPing, count }, "__tests__/components/tags-pinger.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-to-tags/__snapshots__/html.bundle.js index 356485a079c..78a41e16e04 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-class-to-tags/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var tags_pinger_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: input.onPing, f: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.debug.js index 5543db1d76a..a966ea2a888 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/html.bundle.debug.js index 86ed7077780..ccabcdbfed9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/html.bundle.debug.js @@ -30,10 +30,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(_text_resume($scope1_id, "#text/0", count)); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); _resume_branch($scope1_id); }, $scope0_id)); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/template.marko", 0, { count: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/html.bundle.js index fcf8d197a35..afb69bfc3d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/html.bundle.js @@ -29,10 +29,10 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(_text_resume($scope1_id, "a", count)); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id)); - writeScope($scope0_id, { + _scope($scope0_id, { b: count, c: $count__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-class-to-tags/__snapshots__/html.bundle.debug.js index 095c7ae26fa..13f5e9277a8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-class-to-tags/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var tags_pinger_default = _template("__tests__/components/tags-pinger.marko", (i let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-pinger.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_onPing: input.onPing, count }, "__tests__/components/tags-pinger.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-class-to-tags/__snapshots__/html.bundle.js index 3bc8892dde2..31d6de4c190 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-class-to-tags/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var tags_pinger_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: input.onPing, f: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/dom.bundle.debug.js index 0cdad098f4e..eeb1895e1a5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/dom.bundle.debug.js @@ -17,7 +17,7 @@ _marko_template._ = (0, import_renderer.default)(function(input, out, _component _marko_template.Component = (0, import_defineComponent.default)(_marko_component, _marko_template._); // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/html.bundle.debug.js index a39fb6167f3..6107049d083 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var tags_pinger_default = _template("__tests__/components/tags-pinger.marko", (i let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-pinger.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_onPing: input.onPing, count }, "__tests__/components/tags-pinger.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/html.bundle.js index 575fe22d310..55f829142b7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-inline-split-class-to-tags/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var tags_pinger_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: input.onPing, f: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/dom.bundle.debug.js index cbc53ada81d..5ff47ebc16c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/dom.bundle.debug.js @@ -38,7 +38,7 @@ _marko_template._ = (0, import_renderer.default)(function(input, out, _component _marko_template.Component = (0, import_defineComponent.default)(_marko_component, _marko_template._); // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/html.bundle.debug.js index d9b1b01e9ec..460af43e742 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var tags_pinger_default = _template("__tests__/components/tags-pinger.marko", (i let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-pinger.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_onPing: input.onPing, count }, "__tests__/components/tags-pinger.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/html.bundle.js index 9da2c233316..8a0defe0f53 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-split-class-to-tags/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var tags_pinger_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: input.onPing, f: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/dom.bundle.debug.js index 97ecf4ca82f..c51517ed7e8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/html.bundle.debug.js index 09d92699eb4..efc97b183f7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/html.bundle.debug.js @@ -34,6 +34,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { onBump }, "__tests__/template.marko", "2:2", { onBump: "2:22" }); + _scope($scope1_id, { onBump }, "__tests__/template.marko", "2:2", { onBump: "2:22" }); }, $scope0_id), 0, 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/html.bundle.js index 17470fa19c0..069b3c09c34 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-tag-params-class-to-tags/__snapshots__/html.bundle.js @@ -26,6 +26,6 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a1"); - writeScope($scope1_id, { e: onBump }); + _scope($scope1_id, { e: onBump }); }, $scope0_id), 0, 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.debug.js index a9b955c42a1..3a005d57348 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/html.bundle.debug.js index 3f8ed79ecb1..5b2307ec7c9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/html.bundle.debug.js @@ -31,6 +31,6 @@ var template_default = _template("__tests__/template.marko", (input) => { count = newCount; }, "__tests__/template.marko_0/onCount", $scope0_id) }, 0, 0, 0); _html(`
${_text_resume($scope0_id, "#text/1", count)}
`); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/html.bundle.js index 30b8a301473..bf60abed6ec 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/html.bundle.js @@ -25,6 +25,6 @@ var template_default = _template("a", (input) => { count = newCount; }, "a0", $scope0_id) }, 0, 0, 0); _html(`
${_text_resume($scope0_id, "b", count)}
`); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-nested-tags-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-nested-tags-child/__snapshots__/html.bundle.debug.js index 99cec1fcd0c..9718e7b819c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-nested-tags-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-nested-tags-child/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var tags_label_default = _template("__tests__/tags/tags-label.marko", (input) => const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.text, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/tags-label.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/tags-label.marko", 0); }); // tags/tags-counter.marko @@ -14,7 +14,7 @@ var tags_counter_default = _template("__tests__/tags/tags-counter.marko", (input let n = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/tags-counter.marko_0"); - writeScope($scope0_id, { n }, "__tests__/tags/tags-counter.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/tags/tags-counter.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-nested-tags-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-nested-tags-child/__snapshots__/html.bundle.js index 78b558fa1ea..3c7772d3e8f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-nested-tags-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-nested-tags-child/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var tags_label_default = _template("d", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.text, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/tags-counter.marko @@ -14,7 +14,7 @@ var tags_counter_default = _template("c", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "c0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-stateful-tags-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-stateful-tags-child/__snapshots__/html.bundle.debug.js index 82e3391fb51..718e98c4fc0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-stateful-tags-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-stateful-tags-child/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var tags_counter_default = _template("__tests__/components/tags-counter.marko", let n = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/components/tags-counter.marko_0"); - writeScope($scope0_id, { n }, "__tests__/components/tags-counter.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/components/tags-counter.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-stateful-tags-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-stateful-tags-child/__snapshots__/html.bundle.js index a3b6686a18e..8013077728a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-stateful-tags-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-page-with-stateful-tags-child/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var tags_counter_default = _template("b", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-with-stateful-tags-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-with-stateful-tags-child/__snapshots__/html.bundle.debug.js index 98c2bc19bc6..c96aec2e41c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-with-stateful-tags-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-with-stateful-tags-child/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var tags_counter_default = _template("__tests__/tags/tags-counter.marko", (input let n = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/tags-counter.marko_0"); - writeScope($scope0_id, { n }, "__tests__/tags/tags-counter.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/tags/tags-counter.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-with-stateful-tags-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-with-stateful-tags-child/__snapshots__/html.bundle.js index 73ac973dda8..56efaf7bf4d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-with-stateful-tags-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-inert-class-with-stateful-tags-child/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var tags_counter_default = _template("c", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "c0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/dom.bundle.debug.js index 6d67c979dce..adad9bc4ddb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/html.bundle.debug.js index ecb13481ce6..88543179d7a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/html.bundle.debug.js @@ -24,6 +24,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _dynamic_tag($scope0_id, "#text/2", _marko_template, {}, 0, 0, 0); _dynamic_tag($scope0_id, "#text/3", _marko_template, { count: n }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "2:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/html.bundle.js index df9fbd50f59..4393351282f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-boundary-split-tags-to-class/__snapshots__/html.bundle.js @@ -20,6 +20,6 @@ var template_default = _template("a", (input) => { _dynamic_tag($scope0_id, "c", _marko_template, {}, 0, 0, 0); _dynamic_tag($scope0_id, "d", _marko_template, { count: n }); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: n }); + _scope($scope0_id, { e: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/dom.bundle.debug.js index 5a222723321..37ffeed2ba6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/html.bundle.debug.js index 44f9014adfb..a0a40f9450d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/html.bundle.debug.js @@ -44,6 +44,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _dynamic_tag($scope0_id, "#text/2", _marko_template$1, { value: "Hello World" }, 0, 0, 0); _dynamic_tag($scope0_id, "#text/3", _marko_template, { count }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/html.bundle.js index c1743c0aad0..8f13ca570b2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/html.bundle.js @@ -34,6 +34,6 @@ var template_default = _template("a", (input) => { _dynamic_tag($scope0_id, "c", _marko_template$1, { value: "Hello World" }, 0, 0, 0); _dynamic_tag($scope0_id, "d", _marko_template, { count }); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: count }); + _scope($scope0_id, { e: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/html.bundle.debug.js index c63d9009abd..c1354b00dcd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var tags_layout_default = _template("__tests__/components/tags-layout.marko", (i _dynamic_tag($scope0_id, "#text/2", input.stuff.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(""); _script($scope0_id, "__tests__/components/tags-layout.marko_0"); - writeScope($scope0_id, { count }, "__tests__/components/tags-layout.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/components/tags-layout.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/html.bundle.js index 93cc08bd7ee..ff105b01820 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var tags_layout_default = _template("b", (input) => { _dynamic_tag($scope0_id, "c", input.stuff.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(""); _script($scope0_id, "b0"); - writeScope($scope0_id, { h: count }); + _scope($scope0_id, { h: count }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/html.bundle.debug.js index 94596d9703f..a605b0c73c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var tags_layout_default = _template("__tests__/components/tags-layout.marko", (i _dynamic_tag($scope0_id, "#text/2", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(""); _script($scope0_id, "__tests__/components/tags-layout.marko_0"); - writeScope($scope0_id, { count }, "__tests__/components/tags-layout.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/components/tags-layout.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/html.bundle.js index 82a39f17da0..4441da97874 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var tags_layout_default = _template("b", (input) => { _dynamic_tag($scope0_id, "c", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(""); _script($scope0_id, "b0"); - writeScope($scope0_id, { g: count }); + _scope($scope0_id, { g: count }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.debug.js index 7a02d6153e6..969b63219dd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/html.bundle.debug.js index 8a1078b4891..98b3c3e8650 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/html.bundle.debug.js @@ -36,10 +36,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); _resume_branch($scope1_id); }, $scope0_id), 0, 0); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/template.marko", 0, { count: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/html.bundle.js index f03ee9db966..e8a148a538c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-tags-to-class/__snapshots__/html.bundle.js @@ -29,10 +29,10 @@ var template_default = _template("a", (input) => { _scope_reason(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a1"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), 0, 0); - writeScope($scope0_id, { + _scope($scope0_id, { b: count, c: $count__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/dom.bundle.debug.js index 93753fdd57f..9a11f566f1b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/html.bundle.debug.js index bac17289ea7..df57702e65e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/html.bundle.debug.js @@ -23,6 +23,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); _dynamic_tag($scope0_id, "#text/1", _marko_template, { value: count }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/html.bundle.js index fdd047eb17b..1a843467753 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-reactive-split-tags-to-class/__snapshots__/html.bundle.js @@ -19,6 +19,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _dynamic_tag($scope0_id, "b", _marko_template, { value: count }); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/__snapshots__/html.bundle.debug.js index f18cb495686..7c227643fd5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/__snapshots__/html.bundle.debug.js @@ -23,6 +23,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); _dynamic_tag($scope0_id, "#text/1", _marko_template, { value: msg }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { msg }, "__tests__/template.marko", 0, { msg: "1:6" }); + _scope($scope0_id, { msg }, "__tests__/template.marko", 0, { msg: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/__snapshots__/html.bundle.js index 469fec1238c..751fb24b988 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/__snapshots__/html.bundle.js @@ -19,6 +19,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _dynamic_tag($scope0_id, "b", _marko_template, { value: msg }); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: msg }); + _scope($scope0_id, { c: msg }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/dom.bundle.debug.js index 04fa202c76a..abe33217717 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/html.bundle.debug.js index 188583084f7..525ecac7b15 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/html.bundle.debug.js @@ -28,6 +28,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/onIncrement", $scope0_id) }); _html(`
${_text_resume($scope0_id, "#text/1", count)}
`); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/html.bundle.js index d27c3d4050b..9d01d6d5153 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-roundtrip-split-tags-to-class/__snapshots__/html.bundle.js @@ -24,6 +24,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`
${_text_resume($scope0_id, "b", count)}
`); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.debug.js index d00a6b33e04..3e965d00a9b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-stateless-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/html.bundle.debug.js index 40a3e0632c1..0b5e28adb33 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var tags_layout_default = _template("__tests__/components/tags-layout.marko", (i _dynamic_tag($scope0_id, "#text/2", input.content, [count, "hello"], 0, 1); _html(""); _script($scope0_id, "__tests__/components/tags-layout.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_content: input.content, count }, "__tests__/components/tags-layout.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/html.bundle.js index c59de642a2d..6c472dc9034 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-class-to-tags/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var tags_layout_default = _template("b", (input) => { _dynamic_tag($scope0_id, "c", input.content, [count, "hello"], 0, 1); _html(""); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: input.content, g: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.debug.js index bd8439f9470..057dd984015 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/dom.bundle.debug.js @@ -1,5 +1,5 @@ // v:template.marko.hydrate-6.js -var v_template_marko_hydrate_6_default = () => init$1(); +var v_template_marko_hydrate_6_default = () => init(); // v:template.marko.hydrate-5.js var import_components = require_components(); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/html.bundle.debug.js index 8cd2fec0582..462dc7d9d9e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/html.bundle.debug.js @@ -36,13 +36,13 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); _html(`

${_text_resume($scope1_id, "#text/0", message, _serialize_guard($scope1_reason, 1))}

${_el_resume($scope1_id, "#button/1")}`); _script($scope1_id, "__tests__/template.marko_1"); - _subscribe($multiplier__closures, writeScope($scope1_id, { + _subscribe($multiplier__closures, _scope($scope1_id, { baseCount, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2", { baseCount: "2:15" })); _resume_branch($scope1_id); }, $scope0_id), 0, 0); - writeScope($scope0_id, { + _scope($scope0_id, { multiplier, "ClosureScopes:multiplier": $multiplier__closures }, "__tests__/template.marko", 0, { multiplier: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/html.bundle.js index 66d004bef0d..7ea4107a6f3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tag-params-tags-to-class/__snapshots__/html.bundle.js @@ -29,13 +29,13 @@ var template_default = _template("a", (input) => { const $scope1_reason = _scope_reason(); _html(`

${_text_resume($scope1_id, "a", message, _serialize_guard($scope1_reason, 1))}

${_el_resume($scope1_id, "b")}`); _script($scope1_id, "a1"); - _subscribe($multiplier__closures, writeScope($scope1_id, { + _subscribe($multiplier__closures, _scope($scope1_id, { g: baseCount, _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), 0, 0); - writeScope($scope0_id, { + _scope($scope0_id, { b: multiplier, c: $multiplier__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tags-to-resumed-class-rerender/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tags-to-resumed-class-rerender/__snapshots__/html.bundle.debug.js index 90e676ed94b..96c3e88bd86 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tags-to-resumed-class-rerender/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tags-to-resumed-class-rerender/__snapshots__/html.bundle.debug.js @@ -26,12 +26,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "#text/0", _marko_template, { value: count }); - writeScope($scope1_id, {}, "__tests__/template.marko", "9:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "9:2"); return 0; } }, $scope0_id, "#text/3"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, show }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tags-to-resumed-class-rerender/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tags-to-resumed-class-rerender/__snapshots__/html.bundle.js index a627cb65f58..de9ef1c736d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tags-to-resumed-class-rerender/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-tags-to-resumed-class-rerender/__snapshots__/html.bundle.js @@ -22,12 +22,12 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "a", _marko_template, { value: count }); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "d"); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: count, f: show }); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/html.bundle.debug.js index a415c80ce76..38faf2de2b0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/html.bundle.js index cdaaa581a55..e5946911731 100644 --- a/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-derived-to-undefined/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-derived-to-undefined/__snapshots__/html.bundle.debug.js index 8a4be6114c1..f1f9bfaa219 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-derived-to-undefined/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-derived-to-undefined/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const [first, second] = list; _html(`
${_text_resume($scope0_id, "#text/0", first)}|${_text_resume($scope0_id, "#text/1", second, 2)}
${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-derived-to-undefined/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-derived-to-undefined/__snapshots__/html.bundle.js index 598c0efa78f..f2948fbffad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-derived-to-undefined/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-derived-to-undefined/__snapshots__/html.bundle.js @@ -9,6 +9,6 @@ var template_default = _template("a", (input) => { ]; _html(`
${_text_resume($scope0_id, "a", first)}|${_text_resume($scope0_id, "b", second, 2)}
${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/html.bundle.debug.js index 6551f26f522..d537232fe43 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_foo#5_$fooChange#6"); - writeScope($scope0_id, { + _scope($scope0_id, { foo, $fooChange }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/html.bundle.js index 93b22775b58..6154b0e2e11 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/html.bundle.js @@ -11,7 +11,7 @@ var template_default = _template("a", (input) => { }; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { f: foo, g: $fooChange }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/html.bundle.debug.js index 50fef648910..16b18e503ee 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); const { value } = input; _script($scope0_id, "__tests__/tags/child.marko_0_input#1"); - writeScope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); + _scope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); }); // template.marko @@ -19,6 +19,6 @@ var template_default = _template("__tests__/template.marko", (input) => { count = _new_count; }, "__tests__/template.marko_0/valueChange", $scope0_id) }); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/html.bundle.js index 5f73c425236..121f079bd8b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-reduced/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); const { value } = input; _script($scope0_id, "b0"); - writeScope($scope0_id, { b: input }); + _scope($scope0_id, { b: input }); }); // template.marko @@ -19,6 +19,6 @@ var template_default = _template("a", (input) => { count = _new_count; }, "a0", $scope0_id) }); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/html.bundle.debug.js index 3e93e8f2d79..5662a325ba5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_$fooChange#6"); - writeScope($scope0_id, { + _scope($scope0_id, { bar, $fooChange }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/html.bundle.js index 64b2866b280..bffd0d65af9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-destructured/__snapshots__/html.bundle.js @@ -11,7 +11,7 @@ var template_default = _template("a", (input) => { }; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: bar, g: $fooChange }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/html.bundle.debug.js index 2ea6fe484ca..491ee73327b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_count#2"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "5:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "5:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/html.bundle.js index cdaaa581a55..e5946911731 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-in-wrapped-function/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-let-to-undefined/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-let-to-undefined/__snapshots__/html.bundle.debug.js index 289c292dd4b..23fb045f692 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-let-to-undefined/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-let-to-undefined/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const double = num && num * 2; _html(`
${_text_resume($scope0_id, "#text/0", double == null ? "none" : double)}
${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-let-to-undefined/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-let-to-undefined/__snapshots__/html.bundle.js index 5bd7cf4d1aa..c573628a303 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-let-to-undefined/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-let-to-undefined/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
${_text_resume($scope0_id, "a", 2)}
${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/html.bundle.debug.js index 3ac42fad895..f7b5df1a0b7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/html.bundle.debug.js @@ -12,7 +12,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope0_id, "__tests__/template.marko_0_count#3"); _script($scope0_id, "__tests__/template.marko_0_resetCount#4"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, resetCount }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/html.bundle.js index 9a2a81518bb..f6c6070a0ef 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-live-read/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var template_default = _template("a", (input) => { _script($scope0_id, "a1"); _script($scope0_id, "a2"); _script($scope0_id, "a3"); - writeScope($scope0_id, { + _scope($scope0_id, { d: count, e: resetCount }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-multiple-derived-chain/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-multiple-derived-chain/__snapshots__/html.bundle.debug.js index 75a788fd562..fb26f09c6a3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-multiple-derived-chain/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-multiple-derived-chain/__snapshots__/html.bundle.debug.js @@ -15,7 +15,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const selected = filtered[index]; _html(`
${_text_resume($scope0_id, "#text/0", filtered.join(" "))} selected ${_text_resume($scope0_id, "#text/1", selected, 2)}
${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { items, min, max, diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-multiple-derived-chain/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-multiple-derived-chain/__snapshots__/html.bundle.js index ff2a827d09d..fedc0619207 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-multiple-derived-chain/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-multiple-derived-chain/__snapshots__/html.bundle.js @@ -15,7 +15,7 @@ var template_default = _template("a", (input) => { const selected = filtered[index]; _html(`
${_text_resume($scope0_id, "a", filtered.join(" "))} selected ${_text_resume($scope0_id, "b", selected, 2)}
${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: items, f: min, g: max, diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-string-increment/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-string-increment/__snapshots__/html.bundle.debug.js index 7872fa1a2d6..938b997e1c9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-string-increment/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-string-increment/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let seen = ""; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}
${_text_resume($scope0_id, "#text/3", x)}:${_text_resume($scope0_id, "#text/4", seen, 2)}
`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-string-increment/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-string-increment/__snapshots__/html.bundle.js index 4204c062673..6042080f38e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-string-increment/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-string-increment/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let x = "5"; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}
${_text_resume($scope0_id, "d", x)}:${_text_resume($scope0_id, "e", "", 2)}
`); _script($scope0_id, "a0"); - writeScope($scope0_id, { f: x }); + _scope($scope0_id, { f: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/html.bundle.debug.js index c11181dfd1a..d9987a2b201 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/html.bundle.debug.js @@ -8,10 +8,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "2:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "2:2"); return 0; } }, $scope0_id, "#text/0", 1, 1, 1, 0, 1); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/html.bundle.js index 8837c94639a..d91956191d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-owner-closure/__snapshots__/html.bundle.js @@ -7,10 +7,10 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "a", 1, 1, 1, 0, 1); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/html.bundle.debug.js index ab42b958b33..56e6239c5aa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}
${_text_resume($scope0_id, "#text/1", liveCount)}
`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "TagVariableChange:count": _resume(function(v) { + _scope($scope0_id, { "TagVariableChange:count": _resume(function(v) { liveCount = v; }, "__tests__/template.marko_0/valueChange", $scope0_id) || void 0 }, "__tests__/template.marko", 0, { "TagVariableChange:count": ["countChange", "2:6"] }); _resume_branch($scope0_id); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/html.bundle.js index 3efb05f9bb4..5f5e067e7e9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let-with-change-handler/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var template_default = _template("a", (input) => { let liveCount = 0; _html(`${_el_resume($scope0_id, "a")}
${_text_resume($scope0_id, "b", liveCount)}
`); _script($scope0_id, "a1"); - writeScope($scope0_id, { e: _resume(function(v) { + _scope($scope0_id, { e: _resume(function(v) { liveCount = v; }, "a0", $scope0_id) || void 0 }); _resume_branch($scope0_id); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/html.bundle.debug.js index fe5776229bf..700542ea96a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/html.bundle.debug.js @@ -5,5 +5,5 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/html.bundle.js index 4ad79e6a74f..530f842c3ac 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/assign-to-pruned-let/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-deep-recursive/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/async-deep-recursive/__snapshots__/html.bundle.debug.js index 6aee2bb5784..758fe34d1b6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-deep-recursive/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-deep-recursive/__snapshots__/html.bundle.debug.js @@ -16,24 +16,24 @@ const $content = (input) => { _set_serialize_reason($sg__input_level); const $childScope = _peek_scope_id(); $content({ level: input.level - 1 }); - $si__input_level && writeScope($scope3_id, { + $si__input_level && _scope($scope3_id, { _: _scope_with_id($scope2_id), "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/recurse.marko", "7:7"); _resume_branch($scope3_id); }, $sg__input_level); - $si__input_level && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/recurse.marko", "5:5"); + $si__input_level && _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/recurse.marko", "5:5"); }, $scope1_id), { placeholder: attrTag({ content: _content_resume("__tests__/tags/recurse.marko_4*content", () => { _scope_reason(); const $scope4_id = _scope_id(); _html("LOADING..."); }, $scope1_id) }) }); _html(`${_el_resume($scope1_id, "#div/0", $sg__input_level)}`); - $si__input_level && writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/tags/recurse.marko", "3:1"); + $si__input_level && _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/tags/recurse.marko", "3:1"); return 0; } }, $scope0_id, "#text/0", $sg__input_level, $sg__input_level, $sg__input_level, 0, 1); - $si__input_level && writeScope($scope0_id, { + $si__input_level && _scope($scope0_id, { input_level: input.level, "ClosureScopes:input_level": $input_level__closures }, "__tests__/tags/recurse.marko", 0, { input_level: ["input.level"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-deep-recursive/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/async-deep-recursive/__snapshots__/html.bundle.js index 9e08606fa32..debdc491fee 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-deep-recursive/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-deep-recursive/__snapshots__/html.bundle.js @@ -16,24 +16,24 @@ const $content = (input) => { _set_serialize_reason($sg__input_level); const $childScope = _peek_scope_id(); $content({ level: input.level - 1 }); - $si__input_level && writeScope($scope3_id, { + $si__input_level && _scope($scope3_id, { _: _scope_with_id($scope2_id), a: _existing_scope($childScope) }); _resume_branch($scope3_id); }, $sg__input_level); - $si__input_level && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + $si__input_level && _scope($scope2_id, { _: _scope_with_id($scope1_id) }); }, $scope1_id), { placeholder: attrTag({ content: _content_resume("b1", () => { _scope_reason(); _scope_id(); _html("LOADING..."); }, $scope1_id) }) }); _html(`${_el_resume($scope1_id, "a", $sg__input_level)}`); - $si__input_level && writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + $si__input_level && _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", $sg__input_level, $sg__input_level, $sg__input_level, 0, 1); - $si__input_level && writeScope($scope0_id, { + $si__input_level && _scope($scope0_id, { d: input.level, e: $input_level__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/html.bundle.debug.js index e51297b898e..1bfb6870864 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/html.bundle.debug.js @@ -8,34 +8,34 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope0_id, "#text/2", multiply(1, n), (result) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", result)); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:16"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:16"); }); _html(`

2 * ${_text_resume($scope0_id, "#text/3", n, 2)} = `); _await($scope0_id, "#text/4", multiply(2, n), (result) => { const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "#text/0", result)); - writeScope($scope2_id, {}, "__tests__/template.marko", "7:16"); + _scope($scope2_id, {}, "__tests__/template.marko", "7:16"); }); _html(`

3 * ${_text_resume($scope0_id, "#text/5", n, 2)} = `); _await($scope0_id, "#text/6", multiply(3, n), (result) => { const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "#text/0", result)); - writeScope($scope3_id, {}, "__tests__/template.marko", "8:16"); + _scope($scope3_id, {}, "__tests__/template.marko", "8:16"); }); _html(`

4 * ${_text_resume($scope0_id, "#text/7", n, 2)} = `); _await($scope0_id, "#text/8", multiply(4, n), (result) => { const $scope4_id = _scope_id(); _html(_text_resume($scope4_id, "#text/0", result)); - writeScope($scope4_id, {}, "__tests__/template.marko", "9:16"); + _scope($scope4_id, {}, "__tests__/template.marko", "9:16"); }); _html(`

5 * ${_text_resume($scope0_id, "#text/9", n, 2)} = `); _await($scope0_id, "#text/10", multiply(5, n), (result) => { const $scope5_id = _scope_id(); _html(_text_resume($scope5_id, "#text/0", result)); - writeScope($scope5_id, {}, "__tests__/template.marko", "10:16"); + _scope($scope5_id, {}, "__tests__/template.marko", "10:16"); }); _html("

"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "4:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "4:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/html.bundle.js index 002a2fd38d3..63ce422d3ec 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-multi-resolve-in-order-and-update/__snapshots__/html.bundle.js @@ -8,34 +8,34 @@ var template_default = _template("a", (input) => { _await($scope0_id, "c", multiply(1, n), (result) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", result)); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }); _html(`

2 * ${_text_resume($scope0_id, "d", n, 2)} = `); _await($scope0_id, "e", multiply(2, n), (result) => { const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "a", result)); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); }); _html(`

3 * ${_text_resume($scope0_id, "f", n, 2)} = `); _await($scope0_id, "g", multiply(3, n), (result) => { const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "a", result)); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }); _html(`

4 * ${_text_resume($scope0_id, "h", n, 2)} = `); _await($scope0_id, "i", multiply(4, n), (result) => { const $scope4_id = _scope_id(); _html(_text_resume($scope4_id, "a", result)); - writeScope($scope4_id, {}); + _scope($scope4_id, {}); }); _html(`

5 * ${_text_resume($scope0_id, "j", n, 2)} = `); _await($scope0_id, "k", multiply(5, n), (result) => { const $scope5_id = _scope_id(); _html(_text_resume($scope5_id, "a", result)); - writeScope($scope5_id, {}); + _scope($scope5_id, {}); }); _html("

"); _script($scope0_id, "a0"); - writeScope($scope0_id, { l: n }); + _scope($scope0_id, { l: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/html.bundle.debug.js index 4959075c3df..a4e78d33a97 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/html.bundle.debug.js @@ -33,7 +33,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope9_id = _scope_id(); _html(`
Resolved C: ${_escape(v)}
${_el_resume($scope9_id, "#button/1")}`); _script($scope9_id, "__tests__/template.marko_9"); - writeScope($scope9_id, {}, "__tests__/template.marko", "24:4"); + _scope($scope9_id, {}, "__tests__/template.marko", "24:4"); }); }, $scope0_id), { catch: attrTag({ content: _content_resume("__tests__/template.marko_8*content", () => { _scope_reason(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/html.bundle.js index ebb029886c4..f658ce2f1c7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/html.bundle.js @@ -33,7 +33,7 @@ var template_default = _template("a", (input) => { const $scope9_id = _scope_id(); _html(`
Resolved C: ${_escape(v)}
${_el_resume($scope9_id, "b")}`); _script($scope9_id, "a4"); - writeScope($scope9_id, {}); + _scope($scope9_id, {}); }); }, $scope0_id), { catch: attrTag({ content: _content_resume("a5", () => { _scope_reason(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/html.bundle.debug.js index 73b45c2a071..de16888858a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/html.bundle.debug.js @@ -11,9 +11,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope1_id, "#text/0", resolveAfter(clickCount), (value) => { const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "#text/0", value)); - writeScope($scope3_id, {}, "__tests__/template.marko", "7:4"); + _scope($scope3_id, {}, "__tests__/template.marko", "7:4"); }); - _subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:2")); + _subscribe($clickCount__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:2")); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_2*content", () => { _scope_reason(); @@ -21,7 +21,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("LOADING..."); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, "ClosureScopes:clickCount": $clickCount__closures }, "__tests__/template.marko", 0, { clickCount: "2:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/html.bundle.js index d8da9b3739d..ae6adc681ea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/html.bundle.js @@ -11,9 +11,9 @@ var template_default = _template("a", (input) => { _await($scope1_id, "a", resolveAfter(clickCount), (value) => { const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "a", value)); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }); - _subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($clickCount__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a0", () => { _scope_reason(); @@ -21,7 +21,7 @@ var template_default = _template("a", (input) => { _html("LOADING..."); }, $scope0_id) }) }); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { c: clickCount, d: $clickCount__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.debug.js index a50cb8c9c2d..f6971e35b6a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag/index.marko", (inp const { thing: { x, content } } = input; _dynamic_tag($scope0_id, "#text/0", content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); _html(`
${_text_resume($scope0_id, "#text/1", x, _serialize_guard($scope0_reason, 1))}
`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/custom-tag/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/custom-tag/index.marko", 0); }); // template.marko @@ -40,5 +40,5 @@ var template_default = _template("__tests__/template.marko", (input) => { } const $childScope = _peek_scope_id(); custom_tag_default({ thing: $thing }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.js index aec270a2b01..03c8c4193f8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var custom_tag_default = _template("b", (input) => { const { thing: { x, content } } = input; _dynamic_tag($scope0_id, "a", content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); _html(`
${_text_resume($scope0_id, "b", x, _serialize_guard($scope0_reason, 1))}
`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -37,5 +37,5 @@ var template_default = _template("a", (input) => { }); const $childScope = _peek_scope_id(); custom_tag_default({ thing: $thing }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/html.bundle.debug.js index 026e2f488d1..cbf2e0f78f4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var ui_field_default = _template("__tests__/tags/ui-field.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, [{ d: input.description }], 0, 1, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { input_content: _serialize_if($scope0_reason, 2) && input.content, input_description: _serialize_if($scope0_reason, 1) && input.description }, "__tests__/tags/ui-field.marko", 0, { @@ -28,13 +28,13 @@ var ui_select_default = _template("__tests__/tags/ui-select.marko", (input) => { _dynamic_tag($scope2_id, "#text/1", o.content, {}, 0, 0, $sg__input_option); _html(`${_el_resume($scope2_id, "#span/0")}`); _script($scope2_id, "__tests__/tags/ui-select.marko_2_c#2"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/ui-select.marko", "2:4", { "EventAttributes:#span/0": ["...c", "3:14"] }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/ui-select.marko", "2:4", { "EventAttributes:#span/0": ["...c", "3:14"] }); }, 0, $scope1_id, "#text/0", _serialize_guard($scope0_reason, 0) || _serialize_guard($scope1_reason, 0), $sg__input_option, $sg__input_option, 0, 1); - _subscribe($si__input_option && $input_option__closures, writeScope($scope1_id, { _: $si__input_option && _scope_with_id($scope0_id) }, "__tests__/tags/ui-select.marko", "1:2")); + _subscribe($si__input_option && $input_option__closures, _scope($scope1_id, { _: $si__input_option && _scope_with_id($scope0_id) }, "__tests__/tags/ui-select.marko", "1:2")); _resume_branch($scope1_id); }, $scope0_id) }); - $si__input_option && writeScope($scope0_id, { "ClosureScopes:input_option": $input_option__closures }, "__tests__/tags/ui-select.marko", 0); + $si__input_option && _scope($scope0_id, { "ClosureScopes:input_option": $input_option__closures }, "__tests__/tags/ui-select.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/html.bundle.js index 4fedb84c5e5..bdcd57b837e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var ui_field_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, [{ d: input.description }], 0, 1, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && input.content, e: _serialize_if($scope0_reason, 1) && input.description }); @@ -25,13 +25,13 @@ var ui_select_default = _template("c", (input) => { _dynamic_tag($scope2_id, "b", o.content, {}, 0, 0, $sg__input_option); _html(`${_el_resume($scope2_id, "a")}`); _script($scope2_id, "c0"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); }, 0, $scope1_id, "a", _serialize_guard($scope0_reason, 0) || _serialize_guard($scope1_reason, 0), $sg__input_option, $sg__input_option, 0, 1); - _subscribe($si__input_option && $input_option__closures, writeScope($scope1_id, { _: $si__input_option && _scope_with_id($scope0_id) })); + _subscribe($si__input_option && $input_option__closures, _scope($scope1_id, { _: $si__input_option && _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - $si__input_option && writeScope($scope0_id, { e: $input_option__closures }); + $si__input_option && _scope($scope0_id, { e: $input_option__closures }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-serialized/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-serialized/__snapshots__/html.bundle.debug.js index 0ffba7f0376..dcdb97916f7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-serialized/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-serialized/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var ui_field_default = _template("__tests__/tags/ui-field.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, [{ d: input.description }], 0, 1, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { input_content: _serialize_if($scope0_reason, 2) && input.content, input_description: _serialize_if($scope0_reason, 1) && input.description }, "__tests__/tags/ui-field.marko", 0, { @@ -28,13 +28,13 @@ var ui_select_default = _template("__tests__/tags/ui-select.marko", (input) => { _dynamic_tag($scope2_id, "#text/1", o.content, {}, 0, 0, $sg__input_option); _html(`${_el_resume($scope2_id, "#span/0")}`); _script($scope2_id, "__tests__/tags/ui-select.marko_2_c#2"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/ui-select.marko", "2:4", { "EventAttributes:#span/0": ["...c", "3:14"] }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/ui-select.marko", "2:4", { "EventAttributes:#span/0": ["...c", "3:14"] }); }, 0, $scope1_id, "#text/0", _serialize_guard($scope0_reason, 0) || _serialize_guard($scope1_reason, 0), $sg__input_option, $sg__input_option, 0, 1); - _subscribe($si__input_option && $input_option__closures, writeScope($scope1_id, { _: $si__input_option && _scope_with_id($scope0_id) }, "__tests__/tags/ui-select.marko", "1:2")); + _subscribe($si__input_option && $input_option__closures, _scope($scope1_id, { _: $si__input_option && _scope_with_id($scope0_id) }, "__tests__/tags/ui-select.marko", "1:2")); _resume_branch($scope1_id); }, $scope0_id) }); - $si__input_option && writeScope($scope0_id, { "ClosureScopes:input_option": $input_option__closures }, "__tests__/tags/ui-select.marko", 0); + $si__input_option && _scope($scope0_id, { "ClosureScopes:input_option": $input_option__closures }, "__tests__/tags/ui-select.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-serialized/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-serialized/__snapshots__/html.bundle.js index 87934d30a5d..cd0ae71ced5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-serialized/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-serialized/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var ui_field_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, [{ d: input.description }], 0, 1, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && input.content, e: _serialize_if($scope0_reason, 1) && input.description }); @@ -25,13 +25,13 @@ var ui_select_default = _template("c", (input) => { _dynamic_tag($scope2_id, "b", o.content, {}, 0, 0, $sg__input_option); _html(`${_el_resume($scope2_id, "a")}`); _script($scope2_id, "c0"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); }, 0, $scope1_id, "a", _serialize_guard($scope0_reason, 0) || _serialize_guard($scope1_reason, 0), $sg__input_option, $sg__input_option, 0, 1); - _subscribe($si__input_option && $input_option__closures, writeScope($scope1_id, { _: $si__input_option && _scope_with_id($scope0_id) })); + _subscribe($si__input_option && $input_option__closures, _scope($scope1_id, { _: $si__input_option && _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - $si__input_option && writeScope($scope0_id, { e: $input_option__closures }); + $si__input_option && _scope($scope0_id, { e: $input_option__closures }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.bundle.debug.js index cbbe03b8eef..19c63d32719 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.bundle.debug.js @@ -5,10 +5,10 @@ var hello_default = _template("__tests__/tags/hello/index.marko", (input) => { _for_of(input.item, (item) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "#text/0", item.content, {}, 0, 0, $sg__input_item); - _serialize_if($scope0_reason, 1) && writeScope($scope1_id, {}, "__tests__/tags/hello/index.marko", "1:1"); + _serialize_if($scope0_reason, 1) && _scope($scope1_id, {}, "__tests__/tags/hello/index.marko", "1:1"); }, 0, $scope0_id, "#text/0", $sg__input_item, $sg__input_item, $sg__input_item); _dynamic_tag($scope0_id, "#text/1", input.other, {}, 0, 0, _serialize_guard($scope0_reason, 2)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/hello/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/hello/index.marko", 0); }); // template.marko @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", a)}:${_text_resume($scope1_id, "#text/1", v, 2)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:8"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:8"); }, $scope0_id) }); }); hello_default({ diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.bundle.js index d0c4fde76be..0bc2b9307a0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.bundle.js @@ -5,10 +5,10 @@ var hello_default = _template("b", (input) => { _for_of(input.item, (item) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "a", item.content, {}, 0, 0, $sg__input_item); - _serialize_if($scope0_reason, 1) && writeScope($scope1_id, {}); + _serialize_if($scope0_reason, 1) && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_item, $sg__input_item, $sg__input_item); _dynamic_tag($scope0_id, "b", input.other, {}, 0, 0, _serialize_guard($scope0_reason, 2)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -24,7 +24,7 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "a", a)}:${_text_resume($scope1_id, "b", v, 2)}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, $scope0_id) }); }); hello_default({ diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.bundle.debug.js index c4509408c30..8ac2349cdfc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var hello_default = _template("__tests__/tags/hello/index.marko", (input) => { _html(``); _dynamic_tag($scope0_id, "#text/4", input.footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 5)); _html(`${_el_resume($scope0_id, "#footer/3", _serialize_guard($scope0_reason, 4))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/hello/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/hello/index.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.bundle.js index 89b4a179ec7..3850339dd32 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var hello_default = _template("b", (input) => { _html(``); _dynamic_tag($scope0_id, "e", input.footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 5)); _html(`${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.debug.js index 201fc24baf7..8482b443adc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var hello_default = _template("__tests__/tags/hello/index.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.item, [1], 0, 1, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/hello/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/hello/index.marko", 0); }); // template.marko @@ -18,7 +18,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(`y: ${_text_resume($scope1_id, "#text/0", y, _serialize_guard($scope1_reason, 0) * 2)}`); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "4:10"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "4:10"); }, $scope0_id) }); } const $childScope = _peek_scope_id(); @@ -26,7 +26,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/template.marko_0_menuEl#4/var"); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { x: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.js index eb7cf068629..75c78c816cf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var hello_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.item, [1], 0, 1, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -17,14 +17,14 @@ var template_default = _template("a", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(`y: ${_text_resume($scope1_id, "a", y, _serialize_guard($scope1_reason, 0) * 2)}`); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }); const $childScope = _peek_scope_id(); hello_default({ item: $item }); _var($scope0_id, "b", $childScope, "a1"); _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { d: x, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.bundle.debug.js index 669da094e05..3f84ad41fe5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var hello_default = _template("__tests__/tags/hello/index.marko", (input) => { _dynamic_tag($scope1_id, "#text/1", content, {}, 0, 0, $sg__input_list_item); _html(`${_el_resume($scope1_id, "#div/0")}`); _script($scope1_id, "__tests__/tags/hello/index.marko_1_attrs#5"); - writeScope($scope1_id, {}, "__tests__/tags/hello/index.marko", "1:1", { "EventAttributes:#div/0": ["...attrs", "2:15"] }); + _scope($scope1_id, {}, "__tests__/tags/hello/index.marko", "1:1", { "EventAttributes:#div/0": ["...attrs", "2:15"] }); }, 0, $scope0_id, "#text/0", $sg__input_list_item, $sg__input_list_item, $sg__input_list_item__OR__input_col, 0, 1); _for_of(input.col, ({ content, row, ...attrs }) => { const $scope2_id = _scope_id(); @@ -21,12 +21,12 @@ var hello_default = _template("__tests__/tags/hello/index.marko", (input) => { _dynamic_tag($scope3_id, "#text/1", content, {}, 0, 0, $sg__input_col); _html(`${_el_resume($scope3_id, "#div/0")}`); _script($scope3_id, "__tests__/tags/hello/index.marko_3_attrs#5"); - writeScope($scope3_id, {}, "__tests__/tags/hello/index.marko", "7:3", { "EventAttributes:#div/0": ["...attrs", "8:16"] }); + _scope($scope3_id, {}, "__tests__/tags/hello/index.marko", "7:3", { "EventAttributes:#div/0": ["...attrs", "8:16"] }); }, 0, $scope2_id, "#text/1", $sg__input_col, $sg__input_col, $sg__input_col, 0, 1); _script($scope2_id, "__tests__/tags/hello/index.marko_2_attrs#5"); - writeScope($scope2_id, {}, "__tests__/tags/hello/index.marko", "5:1", { "EventAttributes:#div/0": ["...attrs", "6:14"] }); + _scope($scope2_id, {}, "__tests__/tags/hello/index.marko", "5:1", { "EventAttributes:#div/0": ["...attrs", "6:14"] }); }, 0, $scope0_id, "#text/1", $sg__input_col, $sg__input_col, $sg__input_list_item__OR__input_col); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/hello/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/hello/index.marko", 0); }); // template.marko @@ -69,7 +69,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "#text/0", row)); - writeScope($scope3_id, {}, "__tests__/template.marko", "16:18"); + _scope($scope3_id, {}, "__tests__/template.marko", "16:18"); }, $scope0_id) }); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.bundle.js index e1acc65071a..ec703b83977 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var hello_default = _template("b", (input) => { _dynamic_tag($scope1_id, "b", content, {}, 0, 0, $sg__input_list_item); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "b0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_list_item, $sg__input_list_item, $sg__input_list_item__OR__input_col, 0, 1); _for_of(input.col, ({ content, row, ...attrs }) => { const $scope2_id = _scope_id(); @@ -21,12 +21,12 @@ var hello_default = _template("b", (input) => { _dynamic_tag($scope3_id, "b", content, {}, 0, 0, $sg__input_col); _html(`${_el_resume($scope3_id, "a")}`); _script($scope3_id, "b1"); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }, 0, $scope2_id, "b", $sg__input_col, $sg__input_col, $sg__input_col, 0, 1); _script($scope2_id, "b2"); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); }, 0, $scope0_id, "b", $sg__input_col, $sg__input_col, $sg__input_list_item__OR__input_col); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -66,7 +66,7 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "a", row)); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }, $scope0_id) }); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/html.bundle.debug.js index 5c62d268afa..854fecf13c9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/html.bundle.debug.js @@ -5,9 +5,9 @@ var list_default = _template("__tests__/tags/list/index.marko", (input) => { _for_of(input.item, (item) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "#text/0", item.content, {}, 0, 0, $sg__input_item); - $si__input_item && writeScope($scope1_id, {}, "__tests__/tags/list/index.marko", "1:1"); + $si__input_item && _scope($scope1_id, {}, "__tests__/tags/list/index.marko", "1:1"); }, 0, $scope0_id, "#text/0", $sg__input_item, $sg__input_item, $sg__input_item); - $si__input_item && writeScope($scope0_id, {}, "__tests__/tags/list/index.marko", 0); + $si__input_item && _scope($scope0_id, {}, "__tests__/tags/list/index.marko", 0); }); // template.marko @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", zzz)); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:5"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:5"); }, $scope0_id) }); }); list_default({ item: $item }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/html.bundle.js index 2516dbb233b..2d1beab0c43 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/html.bundle.js @@ -5,9 +5,9 @@ var list_default = _template("b", (input) => { _for_of(input.item, (item) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "a", item.content, {}, 0, 0, $sg__input_item); - $si__input_item && writeScope($scope1_id, {}); + $si__input_item && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_item, $sg__input_item, $sg__input_item); - $si__input_item && writeScope($scope0_id, {}); + $si__input_item && _scope($scope0_id, {}); }); // template.marko @@ -24,7 +24,7 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", zzz)); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, $scope0_id) }); }); list_default({ item: $item }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/html.bundle.debug.js index 9e505c95456..744be236626 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/html.bundle.debug.js @@ -8,9 +8,9 @@ var my_menu_default = _template("__tests__/tags/my-menu/index.marko", (input) => _attrs_content(item, "#button/0", $scope1_id, "button"); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/tags/my-menu/index.marko_1_item#2"); - writeScope($scope1_id, {}, "__tests__/tags/my-menu/index.marko", "1:2", { "EventAttributes:#button/0": ["...item", "2:14"] }); + _scope($scope1_id, {}, "__tests__/tags/my-menu/index.marko", "1:2", { "EventAttributes:#button/0": ["...item", "2:14"] }); }, 0, $scope0_id, "#text/0", $sg__input_item, $sg__input_item, $sg__input_item, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/my-menu/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/my-menu/index.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/html.bundle.js index 6d1e799a41c..1ed4c6ece4c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/html.bundle.js @@ -8,9 +8,9 @@ var my_menu_default = _template("b", (input) => { _attrs_content(item, "a", $scope1_id, "button"); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "b0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_item, $sg__input_item, $sg__input_item, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-shadowed/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-shadowed/__snapshots__/html.bundle.debug.js index 4a43f88f163..7546b5a5062 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-shadowed/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-shadowed/__snapshots__/html.bundle.debug.js @@ -8,9 +8,9 @@ var my_menu_default = _template("__tests__/tags/my-menu/index.marko", (input) => _attrs_content(item, "#button/0", $scope1_id, "button"); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/tags/my-menu/index.marko_1_item#2"); - writeScope($scope1_id, {}, "__tests__/tags/my-menu/index.marko", "1:2", { "EventAttributes:#button/0": ["...item", "2:14"] }); + _scope($scope1_id, {}, "__tests__/tags/my-menu/index.marko", "1:2", { "EventAttributes:#button/0": ["...item", "2:14"] }); }, 0, $scope0_id, "#text/0", $sg__input_item, $sg__input_item, $sg__input_item, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/my-menu/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/my-menu/index.marko", 0); }); // template.marko @@ -28,7 +28,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", $foo)); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:6"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:6"); }, $scope0_id) }); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-shadowed/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-shadowed/__snapshots__/html.bundle.js index a726a897c78..183f63c142e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-shadowed/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-shadowed/__snapshots__/html.bundle.js @@ -8,9 +8,9 @@ var my_menu_default = _template("b", (input) => { _attrs_content(item, "a", $scope1_id, "button"); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "b0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_item, $sg__input_item, $sg__input_item, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -28,7 +28,7 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", $foo)); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, $scope0_id) }); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler/__snapshots__/html.bundle.debug.js index 197f61f9ab9..d4fdf39e7e4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler/__snapshots__/html.bundle.debug.js @@ -8,9 +8,9 @@ var my_menu_default = _template("__tests__/tags/my-menu/index.marko", (input) => _attrs_content(item, "#button/0", $scope1_id, "button"); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/tags/my-menu/index.marko_1_item#2"); - writeScope($scope1_id, {}, "__tests__/tags/my-menu/index.marko", "1:2", { "EventAttributes:#button/0": ["...item", "2:14"] }); + _scope($scope1_id, {}, "__tests__/tags/my-menu/index.marko", "1:2", { "EventAttributes:#button/0": ["...item", "2:14"] }); }, 0, $scope0_id, "#text/0", $sg__input_item, $sg__input_item, $sg__input_item, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/my-menu/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/my-menu/index.marko", 0); }); // template.marko @@ -29,14 +29,14 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`Click ${_text_resume($scope1_id, "#text/0", foo, 2)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:6"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:6"); }, $scope0_id) }); }); const $childScope = _peek_scope_id(); my_menu_default({ item: $item }); _html(`
${_text_resume($scope0_id, "#text/1", clicked)}
`); - writeScope($scope0_id, { + _scope($scope0_id, { clicked, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { clicked: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler/__snapshots__/html.bundle.js index e91b55fe7bd..e871984a094 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler/__snapshots__/html.bundle.js @@ -8,9 +8,9 @@ var my_menu_default = _template("b", (input) => { _attrs_content(item, "a", $scope1_id, "button"); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "b0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_item, $sg__input_item, $sg__input_item, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -29,14 +29,14 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`Click ${_text_resume($scope1_id, "a", foo, 2)}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, $scope0_id) }); }); const $childScope = _peek_scope_id(); my_menu_default({ item: $item }); _html(`
${_text_resume($scope0_id, "b", clicked)}
`); - writeScope($scope0_id, { + _scope($scope0_id, { c: clicked, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/html.bundle.debug.js index 21994700d6e..a059e99662c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/html.bundle.debug.js @@ -5,9 +5,9 @@ var list_default = _template("__tests__/tags/list/index.marko", (input) => { _for_of(input.item, (item) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "#text/0", item.content, {}, 0, 0, $sg__input_item); - $si__input_item && writeScope($scope1_id, {}, "__tests__/tags/list/index.marko", "1:1"); + $si__input_item && _scope($scope1_id, {}, "__tests__/tags/list/index.marko", "1:1"); }, 0, $scope0_id, "#text/0", $sg__input_item, $sg__input_item, $sg__input_item); - $si__input_item && writeScope($scope0_id, {}, "__tests__/tags/list/index.marko", 0); + $si__input_item && _scope($scope0_id, {}, "__tests__/tags/list/index.marko", 0); }); // template.marko @@ -26,7 +26,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", item * mult)); - _subscribe($mult__closures, writeScope($scope1_id, { + _subscribe($mult__closures, _scope($scope1_id, { item, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:5", { item: "3:7" })); @@ -36,7 +36,7 @@ var template_default = _template("__tests__/template.marko", (input) => { list_default({ item: $item }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { mult, "ClosureScopes:mult": $mult__closures }, "__tests__/template.marko", 0, { mult: "1:5" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/html.bundle.js index 8797e2a8f92..71b47b7e70e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-intersection-closure/__snapshots__/html.bundle.js @@ -5,9 +5,9 @@ var list_default = _template("b", (input) => { _for_of(input.item, (item) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "a", item.content, {}, 0, 0, $sg__input_item); - $si__input_item && writeScope($scope1_id, {}); + $si__input_item && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_item, $sg__input_item, $sg__input_item); - $si__input_item && writeScope($scope0_id, {}); + $si__input_item && _scope($scope0_id, {}); }); // template.marko @@ -26,7 +26,7 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", item * mult)); - _subscribe($mult__closures, writeScope($scope1_id, { + _subscribe($mult__closures, _scope($scope1_id, { f: item, _: _scope_with_id($scope0_id) })); @@ -36,7 +36,7 @@ var template_default = _template("a", (input) => { list_default({ item: $item }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: mult, g: $mult__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-leading-comment/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-leading-comment/__snapshots__/html.bundle.debug.js index 879a4a16c3f..38d400a2207 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-leading-comment/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-leading-comment/__snapshots__/html.bundle.debug.js @@ -7,9 +7,9 @@ var box_default = _template("__tests__/tags/box/index.marko", (input) => { _html("
"); _dynamic_tag($scope1_id, "#text/0", content, {}, 0, 0, $sg__input_item); _html("
"); - $si__input_item && writeScope($scope1_id, {}, "__tests__/tags/box/index.marko", "1:2"); + $si__input_item && _scope($scope1_id, {}, "__tests__/tags/box/index.marko", "1:2"); }, 0, $scope0_id, "#text/0", $sg__input_item, $sg__input_item, $sg__input_item, 0, 1); - $si__input_item && writeScope($scope0_id, {}, "__tests__/tags/box/index.marko", 0); + $si__input_item && _scope($scope0_id, {}, "__tests__/tags/box/index.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-leading-comment/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-leading-comment/__snapshots__/html.bundle.js index 7544c9a27a0..67242de2cfc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-leading-comment/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-leading-comment/__snapshots__/html.bundle.js @@ -7,9 +7,9 @@ var box_default = _template("b", (input) => { _html("
"); _dynamic_tag($scope1_id, "a", content, {}, 0, 0, $sg__input_item); _html("
"); - $si__input_item && writeScope($scope1_id, {}); + $si__input_item && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_item, $sg__input_item, $sg__input_item, 0, 1); - $si__input_item && writeScope($scope0_id, {}); + $si__input_item && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-multiple-dynamic-in-if/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-multiple-dynamic-in-if/__snapshots__/html.bundle.debug.js index 9208a5ccc0a..2323739df53 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-multiple-dynamic-in-if/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-multiple-dynamic-in-if/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag/index.marko", (inp const $scope0_id = _scope_id(); const { x, y } = input; _html(`
x: ${_text_resume($scope0_id, "#text/0", x?.value, _serialize_guard($scope0_reason, 1) * 2)} y: ${_text_resume($scope0_id, "#text/1", y?.value, _serialize_guard($scope0_reason, 2) * 2)}
`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/custom-tag/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/custom-tag/index.marko", 0); }); // template.marko @@ -28,5 +28,5 @@ var template_default = _template("__tests__/template.marko", (input) => { x: $x, y: $y }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-multiple-dynamic-in-if/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-multiple-dynamic-in-if/__snapshots__/html.bundle.js index f319d0fe337..4fb675fb68a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-multiple-dynamic-in-if/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-multiple-dynamic-in-if/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var custom_tag_default = _template("b", (input) => { const $scope0_id = _scope_id(); const { x, y } = input; _html(`
x: ${_text_resume($scope0_id, "a", x?.value, _serialize_guard($scope0_reason, 1) * 2)} y: ${_text_resume($scope0_id, "b", y?.value, _serialize_guard($scope0_reason, 2) * 2)}
`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -28,5 +28,5 @@ var template_default = _template("a", (input) => { x: $x, y: $y }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-name-shadows-generated-uid/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-name-shadows-generated-uid/__snapshots__/html.bundle.debug.js index 9c89b830a0d..6c5c9ee03f9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-name-shadows-generated-uid/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-name-shadows-generated-uid/__snapshots__/html.bundle.debug.js @@ -5,9 +5,9 @@ var child_default = _template("__tests__/tags/child/index.marko", (input) => { _for_of(input.scope, (s) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", s.a, $sg__input_scope)); - $si__input_scope && writeScope($scope1_id, {}, "__tests__/tags/child/index.marko", "1:2"); + $si__input_scope && _scope($scope1_id, {}, "__tests__/tags/child/index.marko", "1:2"); }, 0, $scope0_id, "#text/0", $sg__input_scope, $sg__input_scope, $sg__input_scope, 0, 1); - $si__input_scope && writeScope($scope0_id, {}, "__tests__/tags/child/index.marko", 0); + $si__input_scope && _scope($scope0_id, {}, "__tests__/tags/child/index.marko", 0); }); // template.marko @@ -26,7 +26,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); child_default({ scope: $scope }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { cond, "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0, { cond: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-name-shadows-generated-uid/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-name-shadows-generated-uid/__snapshots__/html.bundle.js index bd98a8abdd0..b6c2318ad58 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-name-shadows-generated-uid/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-name-shadows-generated-uid/__snapshots__/html.bundle.js @@ -5,9 +5,9 @@ var child_default = _template("b", (input) => { _for_of(input.scope, (s) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", s.a, $sg__input_scope)); - $si__input_scope && writeScope($scope1_id, {}); + $si__input_scope && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_scope, $sg__input_scope, $sg__input_scope, 0, 1); - $si__input_scope && writeScope($scope0_id, {}); + $si__input_scope && _scope($scope0_id, {}); }); // template.marko @@ -22,7 +22,7 @@ var template_default = _template("a", (input) => { const $childScope = _peek_scope_id(); child_default({ scope: $scope }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: cond, b: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-serialized-iteration/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-serialized-iteration/__snapshots__/html.bundle.debug.js index ddc10606cd3..ee57f1d6857 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-serialized-iteration/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-serialized-iteration/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var list_default = _template("__tests__/tags/list.marko", (input) => { const $scope0_id = _scope_id(); _html(`
${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/tags/list.marko_0_input_item#3"); - writeScope($scope0_id, { input_item: input.item }, "__tests__/tags/list.marko", 0, { input_item: ["input.item"] }); + _scope($scope0_id, { input_item: input.item }, "__tests__/tags/list.marko", 0, { input_item: ["input.item"] }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-serialized-iteration/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-serialized-iteration/__snapshots__/html.bundle.js index e3da04d2f82..d3548527994 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-serialized-iteration/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-serialized-iteration/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var list_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { d: input.item }); + _scope($scope0_id, { d: input.item }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-static-repeated/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-static-repeated/__snapshots__/html.bundle.debug.js index 7ab4ef9f76f..da70595819f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-static-repeated/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-static-repeated/__snapshots__/html.bundle.debug.js @@ -5,9 +5,9 @@ var list_default = _template("__tests__/tags/list/index.marko", (input) => { _for_of(input.item, (item) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "#text/0", item.content, {}, 0, 0, $sg__input_item); - $si__input_item && writeScope($scope1_id, {}, "__tests__/tags/list/index.marko", "1:1"); + $si__input_item && _scope($scope1_id, {}, "__tests__/tags/list/index.marko", "1:1"); }, 0, $scope0_id, "#text/0", $sg__input_item, $sg__input_item, $sg__input_item); - $si__input_item && writeScope($scope0_id, {}, "__tests__/tags/list/index.marko", 0); + $si__input_item && _scope($scope0_id, {}, "__tests__/tags/list/index.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-static-repeated/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-static-repeated/__snapshots__/html.bundle.js index 81a93b8b393..a33e4fbe9c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-static-repeated/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-static-repeated/__snapshots__/html.bundle.js @@ -5,9 +5,9 @@ var list_default = _template("b", (input) => { _for_of(input.item, (item) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "a", item.content, {}, 0, 0, $sg__input_item); - $si__input_item && writeScope($scope1_id, {}); + $si__input_item && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_item, $sg__input_item, $sg__input_item); - $si__input_item && writeScope($scope0_id, {}); + $si__input_item && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.bundle.debug.js index 3703b12d1d3..88269b54317 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var hello_default = _template("__tests__/tags/hello/index.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.foo, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/hello/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/hello/index.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.bundle.js index 1491a01da7e..f8371729dc1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var hello_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.foo, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.bundle.debug.js index a688c27c3cf..bb1a4155ca7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let disabled = true; _html(`${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { disabled }, "__tests__/template.marko", 0, { disabled: "1:6" }); + _scope($scope0_id, { disabled }, "__tests__/template.marko", 0, { disabled: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.bundle.js index 012019dc5a0..2f9229572e9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let disabled = true; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: disabled }); + _scope($scope0_id, { d: disabled }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-class-delimited-shapes/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-class-delimited-shapes/__snapshots__/html.bundle.debug.js index 576aacec6a9..af71e79b215 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-class-delimited-shapes/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-class-delimited-shapes/__snapshots__/html.bundle.debug.js @@ -23,7 +23,7 @@ var template_default = _template("__tests__/template.marko", (input) => { ...moreStyles ])}>${_el_resume($scope0_id, "#div/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { d, more, moreStyles, diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-class-delimited-shapes/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-class-delimited-shapes/__snapshots__/html.bundle.js index c8b85171e2c..05d0d58662e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-class-delimited-shapes/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-class-delimited-shapes/__snapshots__/html.bundle.js @@ -23,7 +23,7 @@ var template_default = _template("a", (input) => { ...moreStyles ])}>${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d, e: more, f: moreStyles, diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-class-svg/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-class-svg/__snapshots__/html.bundle.debug.js index a91aa627b7d..c99dcf57de6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-class-svg/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-class-svg/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); const { active } = input; _html(`${_el_resume($scope0_id, "#circle/1", $sg__input_active)}${_el_resume($scope0_id, "#svg/0", $sg__input_active)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-class-svg/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-class-svg/__snapshots__/html.bundle.js index 61ef09e79b4..3b1e18cad71 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-class-svg/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-class-svg/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); const { active } = input; _html(`${_el_resume($scope0_id, "b", $sg__input_active)}${_el_resume($scope0_id, "a", $sg__input_active)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.bundle.debug.js index 224a55f7468..4259ca3acc6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.bundle.debug.js @@ -9,11 +9,11 @@ var custom_tag_default = _template("__tests__/tags/custom-tag.marko", (input) => _html(``); _dynamic_tag($scope1_id, "#text/1", input.test.content, {}, 0, 0, _serialize_guard($scope0_reason, 5)); _html(`${_el_resume($scope1_id, "#div/0", _serialize_guard($scope0_reason, 4))}`); - $si__input_test && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) }, "__tests__/tags/custom-tag.marko", "3:2"); + $si__input_test && _scope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) }, "__tests__/tags/custom-tag.marko", "3:2"); return 0; } }, $scope0_id, "#text/1", $sg__input_test, $sg__input_test, $sg__input_test, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { input_test_class: $si__input_test && input.test?.class, input_test_content: $si__input_test && input.test?.content }, "__tests__/tags/custom-tag.marko", 0, { @@ -66,7 +66,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id) }) }, 0, 0, $sg__input_c__OR__input_d); - _serialize_if($scope0_reason, 7) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 7) && _scope($scope0_id, { c: _serialize_if($scope0_reason, 6) && c, d: _serialize_if($scope0_reason, 5) && d, e: _serialize_if($scope0_reason, 4) && e, diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.bundle.js index dd96653a6d5..3a5b2431b53 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.bundle.js @@ -9,11 +9,11 @@ var custom_tag_default = _template("b", (input) => { _html(``); _dynamic_tag($scope1_id, "b", input.test.content, {}, 0, 0, _serialize_guard($scope0_reason, 5)); _html(`${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 4))}`); - $si__input_test && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) }); + $si__input_test && _scope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "b", $sg__input_test, $sg__input_test, $sg__input_test, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { g: $si__input_test && input.test?.class, h: $si__input_test && input.test?.content }); @@ -63,7 +63,7 @@ var template_default = _template("a", (input) => { }, $scope0_id) }) }, 0, 0, $sg__input_c__OR__input_d); - _serialize_if($scope0_reason, 7) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 7) && _scope($scope0_id, { i: _serialize_if($scope0_reason, 6) && c, j: _serialize_if($scope0_reason, 5) && d, l: _serialize_if($scope0_reason, 4) && e, diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-empty-string/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-empty-string/__snapshots__/html.bundle.debug.js index fe779b7be5b..7d145308926 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-empty-string/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-empty-string/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = ""; _html(`${_el_resume($scope0_id, "#div/0")}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { value }, "__tests__/template.marko", 0, { value: "1:6" }); + _scope($scope0_id, { value }, "__tests__/template.marko", 0, { value: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-empty-string/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-empty-string/__snapshots__/html.bundle.js index d76323ef30b..e6f57a2c5f5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-empty-string/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-empty-string/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let value = ""; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: value }); + _scope($scope0_id, { c: value }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.bundle.debug.js index a02cf4a9897..5912af41988 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { input_foo: _serialize_if($scope0_reason, 2) && input.foo, input_bar: _serialize_if($scope0_reason, 1) && input.bar }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.bundle.js index fbb3f8d481b..e33156a423b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && input.foo, e: _serialize_if($scope0_reason, 1) && input.bar }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-method-shorthand-async/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-method-shorthand-async/__snapshots__/html.bundle.debug.js index ca800c59742..3b8ac8c3148 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-method-shorthand-async/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-method-shorthand-async/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let loaded = "no"; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-method-shorthand-async/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-method-shorthand-async/__snapshots__/html.bundle.js index 51259cc9ef9..5e598499192 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-method-shorthand-async/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-method-shorthand-async/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-spread-lone-nullish-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-spread-lone-nullish-input/__snapshots__/html.bundle.debug.js index fcb9e404f08..3bc5467a532 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-spread-lone-nullish-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-spread-lone-nullish-input/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const { attrs } = input; _html(`${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0_attrs#3"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["...attrs", "2:11"], "EventAttributes:#input/0": ["...attrs", "2:11"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-spread-lone-nullish-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-spread-lone-nullish-input/__snapshots__/html.bundle.js index 4bbd7649c85..e3ac23c14d5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-spread-lone-nullish-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-spread-lone-nullish-input/__snapshots__/html.bundle.js @@ -5,5 +5,5 @@ var template_default = _template("a", (input) => { const { attrs } = input; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.bundle.debug.js index e0542dff886..c6f40cbe70a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.bundle.debug.js @@ -9,11 +9,11 @@ var custom_tag_default = _template("__tests__/tags/custom-tag.marko", (input) => _html(``); _dynamic_tag($scope1_id, "#text/1", input.test.content, {}, 0, 0, _serialize_guard($scope0_reason, 5)); _html(`${_el_resume($scope1_id, "#div/0", _serialize_guard($scope0_reason, 4))}`); - $si__input_test && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) }, "__tests__/tags/custom-tag.marko", "3:2"); + $si__input_test && _scope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) }, "__tests__/tags/custom-tag.marko", "3:2"); return 0; } }, $scope0_id, "#text/1", $sg__input_test, $sg__input_test, $sg__input_test, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { input_test_style: $si__input_test && input.test?.style, input_test_content: $si__input_test && input.test?.content }, "__tests__/tags/custom-tag.marko", 0, { @@ -47,5 +47,5 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id) }) }, 0, 0, 0); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.bundle.js index 7be5f3e9d04..ff849e0bb3a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.bundle.js @@ -9,11 +9,11 @@ var custom_tag_default = _template("b", (input) => { _html(``); _dynamic_tag($scope1_id, "b", input.test.content, {}, 0, 0, _serialize_guard($scope0_reason, 5)); _html(`${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 4))}`); - $si__input_test && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) }); + $si__input_test && _scope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "b", $sg__input_test, $sg__input_test, $sg__input_test, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { g: $si__input_test && input.test?.style, h: $si__input_test && input.test?.content }); @@ -44,5 +44,5 @@ var template_default = _template("a", (input) => { }, $scope0_id) }) }, 0, 0, 0); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { c: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { c: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/html.bundle.debug.js index 9f2fcce7cef..caa4cbb84bb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/html.bundle.debug.js @@ -8,9 +8,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(items, (item) => { const $scope3_id = _scope_id(); _dynamic_tag($scope3_id, "#text/0", item, {}, 0, 0, $sg__items); - $si__items && writeScope($scope3_id, {}, "__tests__/template.marko", "2:4"); + $si__items && _scope($scope3_id, {}, "__tests__/template.marko", "2:4"); }, 0, $scope1_id, "#text/0", $sg__items, $sg__items, $sg__items); - $si__items && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + $si__items && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }; forOf([[{ text: "hello" }, { text: "world" }]], (texts) => { const $scope2_id = _scope_id(); @@ -20,7 +20,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope4_id = _scope_id(); _html(_text_resume($scope4_id, "#text/0", item.text)); - writeScope($scope4_id, {}, "__tests__/template.marko", "11:14"); + _scope($scope4_id, {}, "__tests__/template.marko", "11:14"); }, $scope2_id) }); }); Child.content({ item: $item }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/html.bundle.js index ee05f245844..65fa68713c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/html.bundle.js @@ -7,9 +7,9 @@ var template_default = _template("a", (input) => { _for_of(items, (item) => { const $scope3_id = _scope_id(); _dynamic_tag($scope3_id, "a", item, {}, 0, 0, $sg__items); - $si__items && writeScope($scope3_id, {}); + $si__items && _scope($scope3_id, {}); }, 0, $scope1_id, "a", $sg__items, $sg__items, $sg__items); - $si__items && writeScope($scope1_id, {}); + $si__items && _scope($scope1_id, {}); }, _scope_id()) }; forOf([[{ text: "hello" }, { text: "world" }]], (texts) => { const $scope2_id = _scope_id(); @@ -19,7 +19,7 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope4_id = _scope_id(); _html(_text_resume($scope4_id, "a", item.text)); - writeScope($scope4_id, {}); + _scope($scope4_id, {}); }, $scope2_id) }); }); Child.content({ item: $item }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.debug.js index 46d7d3d643c..dbece188834 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.debug.js @@ -6,11 +6,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
${_text_resume($scope1_id, "#text/0", input.cell.label, _serialize_guard($scope1_reason, 0))}
`); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }; _set_serialize_reason(_serialize_guard($scope0_reason, 1)); const $childScope = _peek_scope_id(); Row.content({ cell: attrTag({ ...input.obj }) }); _html(`
added=${_text_resume($scope0_id, "#text/1", Object.getOwnPropertySymbols(input.obj).length, _serialize_guard($scope0_reason, 0) * 2)}
`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _serialize_if($scope0_reason, 1) && _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _serialize_if($scope0_reason, 1) && _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.js index eb1ea650d5b..4c784cdd23e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.js @@ -6,11 +6,11 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
${_text_resume($scope1_id, "a", input.cell.label, _serialize_guard($scope1_reason, 0))}
`); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; _set_serialize_reason(_serialize_guard($scope0_reason, 1)); const $childScope = _peek_scope_id(); Row.content({ cell: attrTag({ ...input.obj }) }); _html(`
added=${_text_resume($scope0_id, "b", Object.getOwnPropertySymbols(input.obj).length, _serialize_guard($scope0_reason, 0) * 2)}
`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _serialize_if($scope0_reason, 1) && _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _serialize_if($scope0_reason, 1) && _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.debug.js index f0e8b34a773..0439e23b275 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(_text_resume($scope0_id, "#text/0", JSON.stringify(input), _serialize_guard($scope0_reason, 0) * 2)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -20,5 +20,5 @@ var template_default = _template("__tests__/template.marko", (input) => { ...input, item: $item }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.js index ab0c2c87b00..e12e4fb1aae 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(_text_resume($scope0_id, "a", JSON.stringify(input), _serialize_guard($scope0_reason, 0) * 2)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -20,5 +20,5 @@ var template_default = _template("a", (input) => { ...input, item: $item }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-template-literal-escape/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-template-literal-escape/__snapshots__/html.bundle.debug.js index 5507c0e072f..522b6ed9e1b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-template-literal-escape/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-template-literal-escape/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-template-literal-escape/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-template-literal-escape/__snapshots__/html.bundle.js index 2d2cbb85793..b3a6b04e134 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-template-literal-escape/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-template-literal-escape/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.debug.js index f31d410d921..266dfc64ac3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.js index 69b27bc6043..361cc40849a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/html.bundle.debug.js index 02bdcb80bb6..3c4dc3a0e62 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/html.bundle.debug.js @@ -16,7 +16,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope3_id, "__tests__/template.marko_3_show#2/pending"); _html(_text_resume($scope3_id, "#text/0", show)); _script($scope3_id, "__tests__/template.marko_3"); - writeScope($scope3_id, { _: _scope_with_id($scope2_id) }, "__tests__/template.marko", "9:5"); + _scope($scope3_id, { _: _scope_with_id($scope2_id) }, "__tests__/template.marko", "9:5"); _resume_branch($scope3_id); }); _await($scope2_id, "#text/1", resolveAfter(0, 1), () => { @@ -24,18 +24,18 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope5_id, "__tests__/template.marko_5"); _resume_branch($scope5_id); }, 0); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:3"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:3"); }, $scope1_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_4*content", () => { _scope_reason(); const $scope4_id = _scope_id(); _html("loading..."); }, $scope1_id) }) }); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:1"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:1"); return 0; } }, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, "ClosureScopes:show": $show__closures }, "__tests__/template.marko", 0, { show: "2:5" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/html.bundle.js index ede7a9019bc..a29ad041319 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-cleanup/__snapshots__/html.bundle.js @@ -16,7 +16,7 @@ var template_default = _template("a", (input) => { _script($scope3_id, "a0"); _html(_text_resume($scope3_id, "a", show)); _script($scope3_id, "a1"); - writeScope($scope3_id, { _: _scope_with_id($scope2_id) }); + _scope($scope3_id, { _: _scope_with_id($scope2_id) }); _resume_branch($scope3_id); }); _await($scope2_id, "b", resolveAfter(0, 1), () => { @@ -24,18 +24,18 @@ var template_default = _template("a", (input) => { _script($scope5_id, "a2"); _resume_branch($scope5_id); }, 0); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); }, $scope1_id), { placeholder: attrTag({ content: _content_resume("a3", () => { _scope_reason(); _scope_id(); _html("loading..."); }, $scope1_id) }) }); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b"); _script($scope0_id, "a5"); - writeScope($scope0_id, { + _scope($scope0_id, { c: show, d: $show__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/html.bundle.debug.js index 2ff0a3b924a..f9656b97a1c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/html.bundle.debug.js @@ -12,16 +12,16 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope2_id, "__tests__/template.marko_2_value#1/pending"); _html(_text_resume($scope2_id, "#text/0", value)); _script($scope2_id, "__tests__/template.marko_2_value#1"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:3"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:3"); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:1"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:1"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_3*content", () => { _scope_reason(); const $scope3_id = _scope_id(); _html("loading..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { value, "ClosureScopes:value": $value__closures }, "__tests__/template.marko", 0, { value: "2:5" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/html.bundle.js index 7340f80b904..e4f5079e9d5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/html.bundle.js @@ -12,16 +12,16 @@ var template_default = _template("a", (input) => { _script($scope2_id, "a0"); _html(_text_resume($scope2_id, "a", value)); _script($scope2_id, "a1"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a2", () => { _scope_reason(); _scope_id(); _html("loading..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: value, c: $value__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/html.bundle.debug.js index ce5fcf8533c..e4797b38ff1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/html.bundle.debug.js @@ -12,11 +12,11 @@ var template_default = _template("__tests__/template.marko", (input) => { if (value) { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", value)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:1"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:1"); return 0; } }, $scope0_id, "#text/3", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { value }, "__tests__/template.marko", 0, { value: "2:5" }); + _scope($scope0_id, { value }, "__tests__/template.marko", 0, { value: "2:5" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/html.bundle.js index 54692430670..72279a5e5fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/html.bundle.js @@ -12,11 +12,11 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "a", value)}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "d", 1, 1, 1, 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: value }); + _scope($scope0_id, { e: value }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/html.bundle.debug.js index c02720be547..f3d4ac010a4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/html.bundle.debug.js @@ -13,12 +13,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (value > 0) { const $scope4_id = _scope_id(); _html(`${_text_resume($scope4_id, "#text/0", value)}`); - writeScope($scope4_id, {}, "__tests__/template.marko", "7:5"); + _scope($scope4_id, {}, "__tests__/template.marko", "7:5"); return 0; } }, $scope3_id, "#text/2", 1, 1, 1, 0, 1); _script($scope3_id, "__tests__/template.marko_3"); - writeScope($scope3_id, { value }, "__tests__/template.marko", "4:3", { value: "5:9" }); + _scope($scope3_id, { value }, "__tests__/template.marko", "4:3", { value: "5:9" }); _resume_branch($scope3_id); }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_2*content", () => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/html.bundle.js index 797300c7e4b..ff4b7f8ccb2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure-within/__snapshots__/html.bundle.js @@ -13,12 +13,12 @@ var template_default = _template("a", (input) => { { const $scope4_id = _scope_id(); _html(`${_text_resume($scope4_id, "a", value)}`); - writeScope($scope4_id, {}); + _scope($scope4_id, {}); return 0; } }, $scope3_id, "c", 1, 1, 1, 0, 1); _script($scope3_id, "a0"); - writeScope($scope3_id, { d: value }); + _scope($scope3_id, { d: value }); _resume_branch($scope3_id); }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a1", () => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/html.bundle.debug.js index 9b0c425e469..26351294ffc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/html.bundle.debug.js @@ -12,17 +12,17 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); _script($scope2_id, "__tests__/template.marko_2_value#3/pending"); _html(`${_text_resume($scope2_id, "#text/0", value)}`); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:3"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:3"); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:1"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:1"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_3*content", () => { _scope_reason(); const $scope3_id = _scope_id(); _html("loading..."); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "ClosureScopes:value": $value__closures }, "__tests__/template.marko", 0, { value: "2:5" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/html.bundle.js index 4f687fb855e..ad6cc8fd949 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-closure/__snapshots__/html.bundle.js @@ -12,17 +12,17 @@ var template_default = _template("a", (input) => { const $scope2_id = _scope_id(); _script($scope2_id, "a0"); _html(`${_text_resume($scope2_id, "a", value)}`); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a1", () => { _scope_reason(); _scope_id(); _html("loading..."); }, $scope0_id) }) }); _script($scope0_id, "a3"); - writeScope($scope0_id, { + _scope($scope0_id, { d: value, e: $value__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-in-for/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-in-for/__snapshots__/html.bundle.debug.js index 907c639c7a6..88fc13fd08a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-in-for/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-in-for/__snapshots__/html.bundle.debug.js @@ -9,10 +9,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope1_id, "#text/0", resolveAfter(item.label, 1), (v) => { const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "#text/0", v, $sg__input_items)); - $si__input_items && writeScope($scope2_id, {}, "__tests__/template.marko", "6:8"); + $si__input_items && _scope($scope2_id, {}, "__tests__/template.marko", "6:8"); }, $sg__input_items); _html(""); - $si__input_items && writeScope($scope1_id, {}, "__tests__/template.marko", "4:4"); + $si__input_items && _scope($scope1_id, {}, "__tests__/template.marko", "4:4"); }, 0, $scope0_id, "#ul/0", $sg__input_items, $sg__input_items, $sg__input_items, "", 1); - $si__input_items && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_items && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-in-for/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-in-for/__snapshots__/html.bundle.js index b79f07508bc..e6d3a3d1205 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-in-for/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-in-for/__snapshots__/html.bundle.js @@ -9,10 +9,10 @@ var template_default = _template("a", (input) => { _await($scope1_id, "a", resolveAfter(item.label, 1), (v) => { const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "a", v, $sg__input_items)); - $si__input_items && writeScope($scope2_id, {}); + $si__input_items && _scope($scope2_id, {}); }, $sg__input_items); _html(""); - $si__input_items && writeScope($scope1_id, {}); + $si__input_items && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_items, $sg__input_items, $sg__input_items, "", 1); - $si__input_items && writeScope($scope0_id, {}); + $si__input_items && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-nested-component/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-nested-component/__snapshots__/html.bundle.debug.js index 861b2177dc5..796add21cea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-nested-component/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-nested-component/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-nested-component/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-nested-component/__snapshots__/html.bundle.js index fd55017fbf5..7c17b685389 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-nested-component/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-nested-component/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-nested-event-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-nested-event-handler/__snapshots__/html.bundle.debug.js index 602b9c52f61..e78c29fbb01 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-nested-event-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-nested-event-handler/__snapshots__/html.bundle.debug.js @@ -17,24 +17,24 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope4_id, "__tests__/template.marko_4_changes#1/pending"); _html(`
changes: ${_text_resume($scope4_id, "#text/1", changes, 2)}
${_el_resume($scope4_id, "#div/0")}`); _script($scope4_id, "__tests__/template.marko_4"); - writeScope($scope4_id, { _: _scope_with_id($scope3_id) }, "__tests__/template.marko", "9:8"); + _scope($scope4_id, { _: _scope_with_id($scope3_id) }, "__tests__/template.marko", "9:8"); _resume_branch($scope4_id); }); - writeScope($scope3_id, { _: _scope_with_id($scope2_id) }, "__tests__/template.marko", "7:6"); + _scope($scope3_id, { _: _scope_with_id($scope2_id) }, "__tests__/template.marko", "7:6"); }, $scope2_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_6*content", () => { _scope_reason(); const $scope6_id = _scope_id(); _html("loading inner..."); }, $scope2_id) }) }); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:4"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:4"); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_5*content", () => { _scope_reason(); const $scope5_id = _scope_id(); _html("loading outer..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { changes, "ClosureScopes:changes": $changes__closures }, "__tests__/template.marko", 0, { changes: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-nested-event-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-nested-event-handler/__snapshots__/html.bundle.js index a8c4a356a09..9550f96c820 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-nested-event-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-nested-event-handler/__snapshots__/html.bundle.js @@ -17,24 +17,24 @@ var template_default = _template("a", (input) => { _script($scope4_id, "a0"); _html(`
changes: ${_text_resume($scope4_id, "b", changes, 2)}
${_el_resume($scope4_id, "a")}`); _script($scope4_id, "a1"); - writeScope($scope4_id, { _: _scope_with_id($scope3_id) }); + _scope($scope4_id, { _: _scope_with_id($scope3_id) }); _resume_branch($scope4_id); }); - writeScope($scope3_id, { _: _scope_with_id($scope2_id) }); + _scope($scope3_id, { _: _scope_with_id($scope2_id) }); }, $scope2_id), { placeholder: attrTag({ content: _content_resume("a2", () => { _scope_reason(); _scope_id(); _html("loading inner..."); }, $scope2_id) }) }); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a4", () => { _scope_reason(); _scope_id(); _html("loading outer..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: changes, c: $changes__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-no-try-resume-rerender/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-no-try-resume-rerender/__snapshots__/html.bundle.debug.js index 993147ca688..aee3ca44fc5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-no-try-resume-rerender/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-no-try-resume-rerender/__snapshots__/html.bundle.debug.js @@ -8,11 +8,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope0_id, "#text/1", resolveAfter(n, 0), (v) => { const $scope1_id = _scope_id(); _html(`
done ${_text_resume($scope1_id, "#text/0", n, 2)}
`); - _subscribe($n__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2")); + _subscribe($n__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2")); _resume_branch($scope1_id); }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, "ClosureScopes:n": $n__closures }, "__tests__/template.marko", 0, { n: "2:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-no-try-resume-rerender/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-no-try-resume-rerender/__snapshots__/html.bundle.js index 74a427cc34c..5b0e9666aaf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-no-try-resume-rerender/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-no-try-resume-rerender/__snapshots__/html.bundle.js @@ -8,11 +8,11 @@ var template_default = _template("a", (input) => { _await($scope0_id, "b", resolveAfter(n, 0), (v) => { const $scope1_id = _scope_id(); _html(`
done ${_text_resume($scope1_id, "a", n, 2)}
`); - _subscribe($n__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($n__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: n, d: $n__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/html.bundle.debug.js index 5b8b40e62a4..ab3f5c6a5b6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/html.bundle.debug.js @@ -6,10 +6,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope0_id, "#text/0", showAsync ? resolveAfter("ASYNC") : "SYNC", (value) => { const $scope1_id = _scope_id(); _html(`Got: ${_text_resume($scope1_id, "#text/0", value, 2)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { showAsync }, "__tests__/template.marko", 0, { showAsync: "2:6" }); + _scope($scope0_id, { showAsync }, "__tests__/template.marko", 0, { showAsync: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/html.bundle.js index 4df96eb4da6..c5ac20f1e87 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/html.bundle.js @@ -6,10 +6,10 @@ var template_default = _template("a", (input) => { _await($scope0_id, "a", resolveAfter("ASYNC"), (value) => { const $scope1_id = _scope_id(); _html(`Got: ${_text_resume($scope1_id, "a", value, 2)}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: showAsync }); + _scope($scope0_id, { c: showAsync }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/html.bundle.debug.js index dd7ed30ae8f..d712657e804 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/html.bundle.debug.js @@ -19,11 +19,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope3_id = _scope_id(); _html("loading..."); }, $scope1_id) }) }); - writeScope($scope1_id, {}, "__tests__/template.marko", "5:1"); + _scope($scope1_id, {}, "__tests__/template.marko", "5:1"); return 0; } }, $scope0_id, "#text/0"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/html.bundle.js index 691cd6a36ea..a7e2b9741b2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-remove-parent/__snapshots__/html.bundle.js @@ -17,11 +17,11 @@ var template_default = _template("a", (input) => { _scope_id(); _html("loading..."); }, $scope1_id) }) }); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "a"); _script($scope0_id, "a3"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-sync-and-async/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-sync-and-async/__snapshots__/html.bundle.debug.js index 30c18db5e3c..dd881e81093 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-sync-and-async/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-sync-and-async/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope0_id, "#text/0", input.sync, (a) => { const $scope1_id = _scope_id(); _html(`Sync: ${_text_resume($scope1_id, "#text/0", a, $sg__input_sync * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _serialize_if($scope0_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); }, $sg__input_sync); _await($scope0_id, "#text/1", resolveAfter("async", 1), (b) => { const $scope2_id = _scope_id(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-sync-and-async/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-sync-and-async/__snapshots__/html.bundle.js index 73ddbd81c12..8ab1f0951c8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-sync-and-async/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-sync-and-async/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var template_default = _template("a", (input) => { _await($scope0_id, "a", input.sync, (a) => { const $scope1_id = _scope_id(); _html(`Sync: ${_text_resume($scope1_id, "a", a, $sg__input_sync * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope1_id, {}); }, $sg__input_sync); _await($scope0_id, "b", resolveAfter("async", 1), (b) => { _scope_id(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-sync-in-try/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-sync-in-try/__snapshots__/html.bundle.debug.js index 2398f6b3124..a410ebcc3b0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-sync-in-try/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-sync-in-try/__snapshots__/html.bundle.debug.js @@ -9,16 +9,16 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope1_id, "#text/0", input.value, (value) => { const $scope4_id = _scope_id(); _html(`Got: ${_text_resume($scope4_id, "#text/0", value, $sg__input_value * 2)}`); - $si__input_value && writeScope($scope4_id, {}, "__tests__/template.marko", "2:4"); + $si__input_value && _scope($scope4_id, {}, "__tests__/template.marko", "2:4"); }, $sg__input_value); - $si__input_value && _subscribe($input_value__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2")); + $si__input_value && _subscribe($input_value__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2")); _resume_branch($scope1_id); }, $scope0_id), { catch: attrTag({ content: _content_resume("__tests__/template.marko_2*content", (err) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(`Error: ${_text_resume($scope2_id, "#text/0", err.message, _serialize_guard($scope2_reason, 0) * 2)}`); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "5:4"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}, "__tests__/template.marko", "5:4"); }, $scope0_id) }), placeholder: attrTag({ content: _content_resume("__tests__/template.marko_3*content", () => { _scope_reason(); @@ -26,5 +26,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("Loading..."); }, $scope0_id) }) }); - $si__input_value && writeScope($scope0_id, { "ClosureScopes:input_value": $input_value__closures }, "__tests__/template.marko", 0); + $si__input_value && _scope($scope0_id, { "ClosureScopes:input_value": $input_value__closures }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-sync-in-try/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-sync-in-try/__snapshots__/html.bundle.js index 04010962d52..be7831a0b39 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-sync-in-try/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-sync-in-try/__snapshots__/html.bundle.js @@ -9,16 +9,16 @@ var template_default = _template("a", (input) => { _await($scope1_id, "a", input.value, (value) => { const $scope4_id = _scope_id(); _html(`Got: ${_text_resume($scope4_id, "a", value, $sg__input_value * 2)}`); - $si__input_value && writeScope($scope4_id, {}); + $si__input_value && _scope($scope4_id, {}); }, $sg__input_value); - $si__input_value && _subscribe($input_value__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + $si__input_value && _subscribe($input_value__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), { catch: attrTag({ content: _content_resume("a0", (err) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(`Error: ${_text_resume($scope2_id, "a", err.message, _serialize_guard($scope2_reason, 0) * 2)}`); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}); }, $scope0_id) }), placeholder: attrTag({ content: _content_resume("a1", () => { _scope_reason(); @@ -26,5 +26,5 @@ var template_default = _template("a", (input) => { _html("Loading..."); }, $scope0_id) }) }); - $si__input_value && writeScope($scope0_id, { e: $input_value__closures }); + $si__input_value && _scope($scope0_id, { e: $input_value__closures }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-sync-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-sync-update/__snapshots__/html.bundle.debug.js index f1e5cfae161..bc1002f9e0f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-sync-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-sync-update/__snapshots__/html.bundle.debug.js @@ -6,10 +6,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope0_id, "#text/0", `v${n}`, (value) => { const $scope1_id = _scope_id(); _html(`Got: ${_text_resume($scope1_id, "#text/0", value, 2)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "2:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "2:2"); }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-sync-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-sync-update/__snapshots__/html.bundle.js index 66870594022..25c642c5ba3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-sync-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-sync-update/__snapshots__/html.bundle.js @@ -6,10 +6,10 @@ var template_default = _template("a", (input) => { _await($scope0_id, "a", `v${n}`, (value) => { const $scope1_id = _scope_id(); _html(`Got: ${_text_resume($scope1_id, "a", value, 2)}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-sync-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-sync-value/__snapshots__/html.bundle.debug.js index 519642f60f4..d85f6acc6ad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-sync-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-sync-value/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope0_id, "#text/0", input.value, (value) => { const $scope1_id = _scope_id(); _html(`Got: ${_text_resume($scope1_id, "#text/0", value, $sg__input_value * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope0_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $sg__input_value); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-sync-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-sync-value/__snapshots__/html.bundle.js index 52426a7fdc8..b35b8212cd0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-sync-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-sync-value/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { _await(_scope_id(), "a", input.value, (value) => { const $scope1_id = _scope_id(); _html(`Got: ${_text_resume($scope1_id, "a", value, $sg__input_value * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope1_id, {}); }, $sg__input_value); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.bundle.debug.js index 13c648ab4b3..1cebb01e571 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.bundle.debug.js @@ -8,13 +8,13 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope0_id, "#text/0", Promise.resolve("a"), (value) => { const $scope1_id = _scope_id(); _html(`Got: ${_escape(value)} ${_text_resume($scope1_id, "#text/1", count, 2)}`); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); _resume_branch($scope1_id); }); _await($scope0_id, "#text/1", resolveAfter("b", 2), (value) => { const $scope2_id = _scope_id(); _html(`Got: ${_escape(value)} ${_text_resume($scope2_id, "#text/1", count, 2)}`); - _subscribe($count__closures, writeScope($scope2_id, { + _subscribe($count__closures, _scope($scope2_id, { _: _scope_with_id($scope0_id), "ClosureSignalIndex:count": 1 }, "__tests__/template.marko", "9:4")); @@ -23,7 +23,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope0_id, "#text/2", resolveAfter("c", 1), (value) => { const $scope3_id = _scope_id(); _html(`Got: ${_escape(value)} ${_text_resume($scope3_id, "#text/1", count, 2)}`); - _subscribe($count__closures, writeScope($scope3_id, { + _subscribe($count__closures, _scope($scope3_id, { _: _scope_with_id($scope0_id), "ClosureSignalIndex:count": 2 }, "__tests__/template.marko", "13:4")); @@ -31,7 +31,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/template.marko", 0, { count: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.bundle.js index 9119f50b352..19aa026afca 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.bundle.js @@ -8,13 +8,13 @@ var template_default = _template("a", (input) => { _await($scope0_id, "a", Promise.resolve("a"), (value) => { const $scope1_id = _scope_id(); _html(`Got: ${_escape(value)} ${_text_resume($scope1_id, "b", count, 2)}`); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }); _await($scope0_id, "b", resolveAfter("b", 2), (value) => { const $scope2_id = _scope_id(); _html(`Got: ${_escape(value)} ${_text_resume($scope2_id, "b", count, 2)}`); - _subscribe($count__closures, writeScope($scope2_id, { + _subscribe($count__closures, _scope($scope2_id, { _: _scope_with_id($scope0_id), Cf: 1 })); @@ -23,7 +23,7 @@ var template_default = _template("a", (input) => { _await($scope0_id, "c", resolveAfter("c", 1), (value) => { const $scope3_id = _scope_id(); _html(`Got: ${_escape(value)} ${_text_resume($scope3_id, "b", count, 2)}`); - _subscribe($count__closures, writeScope($scope3_id, { + _subscribe($count__closures, _scope($scope3_id, { _: _scope_with_id($scope0_id), Cf: 2 })); @@ -31,7 +31,7 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: count, f: $count__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-toggle-sync-async/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-toggle-sync-async/__snapshots__/html.bundle.debug.js index 0ea52605e11..54d987feb8c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-toggle-sync-async/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-toggle-sync-async/__snapshots__/html.bundle.debug.js @@ -6,10 +6,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope0_id, "#text/0", showAsync ? resolveAfter("ASYNC") : "SYNC", (value) => { const $scope1_id = _scope_id(); _html(`Got: ${_text_resume($scope1_id, "#text/0", value, 2)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { showAsync }, "__tests__/template.marko", 0, { showAsync: "2:6" }); + _scope($scope0_id, { showAsync }, "__tests__/template.marko", 0, { showAsync: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-toggle-sync-async/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-toggle-sync-async/__snapshots__/html.bundle.js index 6610db5d5d1..9bdfb78c579 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-toggle-sync-async/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-toggle-sync-async/__snapshots__/html.bundle.js @@ -6,10 +6,10 @@ var template_default = _template("a", (input) => { _await($scope0_id, "a", "SYNC", (value) => { const $scope1_id = _scope_id(); _html(`Got: ${_text_resume($scope1_id, "a", value, 2)}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: showAsync }); + _scope($scope0_id, { c: showAsync }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/html.bundle.debug.js index 29af6622d84..14347f3fda4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/html.bundle.debug.js @@ -13,9 +13,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`
${_text_resume($scope3_id, "#text/0", value)}
`); _script($scope3_id, "__tests__/template.marko_3_value#2"); _script($scope3_id, "__tests__/template.marko_3"); - writeScope($scope3_id, { value }, "__tests__/template.marko", "7:3", { value: "7:9" }); + _scope($scope3_id, { value }, "__tests__/template.marko", "7:3", { value: "7:9" }); }); - _subscribe($value__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:1")); + _subscribe($value__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:1")); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_2*content", () => { _scope_reason(); @@ -23,6 +23,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("loading..."); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "ClosureScopes:value": $value__closures }, "__tests__/template.marko", 0); + _scope($scope0_id, { "ClosureScopes:value": $value__closures }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/html.bundle.js index 4684d871996..baeddc851d7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/html.bundle.js @@ -13,9 +13,9 @@ var template_default = _template("a", (input) => { _html(`
${_text_resume($scope3_id, "a", value)}
`); _script($scope3_id, "a0"); _script($scope3_id, "a1"); - writeScope($scope3_id, { c: value }); + _scope($scope3_id, { c: value }); }); - _subscribe($value__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($value__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a2", () => { _scope_reason(); @@ -23,6 +23,6 @@ var template_default = _template("a", (input) => { _html("loading..."); }, $scope0_id) }) }); _script($scope0_id, "a4"); - writeScope($scope0_id, { d: $value__closures }); + _scope($scope0_id, { d: $value__closures }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/html.bundle.debug.js index bbfd23d8664..8ebf7b6f1d0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/html.bundle.debug.js @@ -13,9 +13,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`
${_text_resume($scope3_id, "#text/0", value)}
`); _script($scope3_id, "__tests__/template.marko_3_value#2"); _script($scope3_id, "__tests__/template.marko_3"); - writeScope($scope3_id, { value }, "__tests__/template.marko", "7:3", { value: "7:9" }); + _scope($scope3_id, { value }, "__tests__/template.marko", "7:3", { value: "7:9" }); }); - _subscribe($value__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:1")); + _subscribe($value__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:1")); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_2*content", () => { _scope_reason(); @@ -23,6 +23,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("loading..."); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "ClosureScopes:value": $value__closures }, "__tests__/template.marko", 0); + _scope($scope0_id, { "ClosureScopes:value": $value__closures }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/html.bundle.js index 86aaf03f7c4..9951d30f772 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/await-update-before-resume/__snapshots__/html.bundle.js @@ -13,9 +13,9 @@ var template_default = _template("a", (input) => { _html(`
${_text_resume($scope3_id, "a", value)}
`); _script($scope3_id, "a0"); _script($scope3_id, "a1"); - writeScope($scope3_id, { c: value }); + _scope($scope3_id, { c: value }); }); - _subscribe($value__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($value__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a2", () => { _scope_reason(); @@ -23,6 +23,6 @@ var template_default = _template("a", (input) => { _html("loading..."); }, $scope0_id) }) }); _script($scope0_id, "a4"); - writeScope($scope0_id, { d: $value__closures }); + _scope($scope0_id, { d: $value__closures }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.bundle.debug.js index 018c71d1db1..78b969ac0b4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var my_button_default = _template("__tests__/tags/my-button.marko", (input) => { const { onClick, text } = input; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/my-button.marko_0_onClick#4"); - writeScope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "1:10" }); + _scope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "1:10" }); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("__tests__/template.marko", (input) => { clickCount++; }, "__tests__/template.marko_0/onClick", $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { clickCount: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.bundle.js index 0ac6be37a78..cff2f0222c6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var my_button_default = _template("b", (input) => { const { onClick, text } = input; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { e: onClick }); + _scope($scope0_id, { e: onClick }); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("a", (input) => { clickCount++; }, "a0", $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: clickCount, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.bundle.debug.js index 596975fd9ec..9fed8777495 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var my_button_default = _template("__tests__/tags/my-button.marko", (input) => { const { onClick } = attrs; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/my-button.marko_0_onClick#5"); - writeScope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "3:10" }); + _scope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "3:10" }); }); // template.marko @@ -23,7 +23,7 @@ var template_default = _template("__tests__/template.marko", (input) => { clickCount++; }, "__tests__/template.marko_0/onClick", $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { clickCount: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.bundle.js index 1f958334938..1ce9ce13e2b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var my_button_default = _template("b", (input) => { const { onClick } = attrs; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { f: onClick }); + _scope($scope0_id, { f: onClick }); }); // template.marko @@ -23,7 +23,7 @@ var template_default = _template("a", (input) => { clickCount++; }, "a0", $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: clickCount, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.bundle.debug.js index 18a4cf3916f..7b8fe170b4b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var my_button_default = _template("__tests__/tags/my-button.marko", (input) => { const { value: { text: textAlias } } = input; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/my-button.marko_0_onClick#5"); - writeScope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "1:10" }); + _scope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "1:10" }); }); // template.marko @@ -30,7 +30,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/onClick2", $scope0_id), value: attrTag({ text: clickCount }) }); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, "#childScope/0": _existing_scope($childScope), "#childScope/1": _existing_scope($childScope2) diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.bundle.js index f67e2ece736..13776e4b73e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var my_button_default = _template("b", (input) => { const { value: { text: textAlias } } = input; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { f: onClick }); + _scope($scope0_id, { f: onClick }); }); // template.marko @@ -30,7 +30,7 @@ var template_default = _template("a", (input) => { }, "a1", $scope0_id), value: attrTag({ text: clickCount }) }); - writeScope($scope0_id, { + _scope($scope0_id, { c: clickCount, a: _existing_scope($childScope), b: _existing_scope($childScope2) diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.bundle.debug.js index bdd03625243..697f3deec40 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var my_button_default = _template("__tests__/tags/my-button.marko", (input) => { const { text: textAlias } = input; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/my-button.marko_0_onClick#5"); - writeScope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "1:10" }); + _scope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "1:10" }); }); // template.marko @@ -22,7 +22,7 @@ var template_default = _template("__tests__/template.marko", (input) => { clickCount++; }, "__tests__/template.marko_0/onClick", $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { clickCount: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.bundle.js index cd1ba847e9d..ad63408d860 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var my_button_default = _template("b", (input) => { const { text: textAlias } = input; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { f: onClick }); + _scope($scope0_id, { f: onClick }); }); // template.marko @@ -22,7 +22,7 @@ var template_default = _template("a", (input) => { clickCount++; }, "a0", $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: clickCount, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.bundle.debug.js index 018c71d1db1..78b969ac0b4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var my_button_default = _template("__tests__/tags/my-button.marko", (input) => { const { onClick, text } = input; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/my-button.marko_0_onClick#4"); - writeScope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "1:10" }); + _scope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "1:10" }); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("__tests__/template.marko", (input) => { clickCount++; }, "__tests__/template.marko_0/onClick", $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { clickCount: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.bundle.js index 0ac6be37a78..cff2f0222c6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var my_button_default = _template("b", (input) => { const { onClick, text } = input; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { e: onClick }); + _scope($scope0_id, { e: onClick }); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("a", (input) => { clickCount++; }, "a0", $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: clickCount, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.bundle.debug.js index 05fe8e5a0df..510daf07144 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var my_button_default = _template("__tests__/tags/my-button.marko", (input) => { _dynamic_tag($scope0_id, "#text/1", content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/my-button.marko_0_onClick#4"); - writeScope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "1:10" }); + _scope($scope0_id, { onClick }, "__tests__/tags/my-button.marko", 0, { onClick: "1:10" }); }); // template.marko @@ -24,11 +24,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", clickCount)); - _subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); + _subscribe($clickCount__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, "ClosureScopes:clickCount": $clickCount__closures }, "__tests__/template.marko", 0, { clickCount: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.bundle.js index e022c72d7d6..a6d0ecc3b87 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var my_button_default = _template("b", (input) => { _dynamic_tag($scope0_id, "b", content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { e: onClick }); + _scope($scope0_id, { e: onClick }); }); // template.marko @@ -24,11 +24,11 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", clickCount)); - _subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($clickCount__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: clickCount, c: $clickCount__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.bundle.debug.js index 557ad08f930..ff95c79a525 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var counter_default = _template("__tests__/tags/counter.marko", (input) => { let clickCount = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/counter.marko_0"); - writeScope($scope0_id, { clickCount }, "__tests__/tags/counter.marko", 0, { clickCount: "1:6" }); + _scope($scope0_id, { clickCount }, "__tests__/tags/counter.marko", 0, { clickCount: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.bundle.js index 4d17ad418a5..3292561a82d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var counter_default = _template("b", (input) => { let clickCount = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { c: clickCount }); + _scope($scope0_id, { c: clickCount }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.bundle.debug.js index a820f827e4b..e4d207def0c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.bundle.debug.js @@ -9,12 +9,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _html(`The count is ${_text_resume($scope1_id, "#text/0", count, 2)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "5:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "5:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, count }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.bundle.js index 2e4eae88b99..889dfb0eeda 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.bundle.js @@ -9,12 +9,12 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html(`The count is ${_text_resume($scope1_id, "a", count, 2)}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: show, e: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.bundle.debug.js index e205dc8cc46..f8633253733 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.bundle.debug.js @@ -9,12 +9,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", count)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "5:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "5:2"); return 0; } }, $scope0_id, "#text/2", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, count }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.bundle.js index 172c5516b65..fca9afa8537 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.bundle.js @@ -9,12 +9,12 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "a", count)}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c", 1, 1, 1, 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: show, e: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.bundle.debug.js index e75576aad32..e56d2bcc23c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/increment", $scope0_id); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_increment#3"); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, increment }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.bundle.js index 4154bbb1121..7a11cdcb577 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: clickCount, d: increment }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.bundle.debug.js index 59970fe32e5..2e142fdbc18 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const multipliedCount = count * multiplier; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/2")}
${_text_resume($scope0_id, "#text/3", multipliedCount)}
`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, multiplier }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.bundle.js index 1136dde6a66..67bafcf3637 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var template_default = _template("a", (input) => { const multipliedCount = count * multiplier; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "c")}
${_text_resume($scope0_id, "d", multipliedCount)}
`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: count, f: multiplier }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.bundle.debug.js index a4dbcd65883..4aa0ddc53e4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let clickCount = 0; _html(`
${_el_resume($scope0_id, "#button/0")}
`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); + _scope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.bundle.js index 5815fdf7762..13bf97709a0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let clickCount = 0; _html(`
${_el_resume($scope0_id, "a")}
`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: clickCount }); + _scope($scope0_id, { c: clickCount }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.bundle.debug.js index 0b4485b258c..b71e1e9a767 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.bundle.debug.js @@ -8,5 +8,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); _html("Hello World"); }, $scope0_id), 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.bundle.js index 0d4c4a2e7ad..402872b4832 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.bundle.js @@ -8,5 +8,5 @@ var template_default = _template("a", (input) => { _scope_reason(); _html("Hello World"); }, $scope0_id), 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.bundle.debug.js index aa094a72431..21888b69e68 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.bundle.debug.js @@ -9,11 +9,11 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", message.text)); - writeScope($scope1_id, {}, "__tests__/template.marko", "8:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "8:2"); return 0; } }, $scope0_id, "#text/1", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { message_text: message?.text }, "__tests__/template.marko", 0, { message_text: ["message.text", "1:6"] }); + _scope($scope0_id, { message_text: message?.text }, "__tests__/template.marko", 0, { message_text: ["message.text", "1:6"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.bundle.js index cbb46846f34..7739128307c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.bundle.js @@ -8,11 +8,11 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", message.text)); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b", 1, 1, 1, 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: message?.text }); + _scope($scope0_id, { d: message?.text }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.bundle.debug.js index a415c80ce76..38faf2de2b0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.bundle.js index cdaaa581a55..e5946911731 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.bundle.debug.js index cee41c69bdd..bd10a4af0c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let b = 1; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { a, b }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.bundle.js index a15aecd72b0..796631ed8a0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { let b = 1; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: a, d: b }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/html.bundle.debug.js index cd7308b41b5..6f9775cafd4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let data = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/html.bundle.js index 487f7200085..499f485c95e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-refless/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.bundle.debug.js index c2c17f7f314..6fcd8f9d536 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.bundle.debug.js @@ -21,7 +21,7 @@ const $content = (input) => { comments: comment.comments, path: id }); - $si__input_comments__OR__input_path && writeScope($scope2_id, { + $si__input_comments__OR__input_path && _scope($scope2_id, { _: _scope_with_id($scope1_id), "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/comments.marko", "10:8"); @@ -30,7 +30,7 @@ const $content = (input) => { }, $scope1_id, "#text/4", $sg__input_comments__OR__input_path, $sg__input_comments, $sg__input_comments, 0, 1); _html(`${_el_resume($scope1_id, "#li/0")}`); _script($scope1_id, "__tests__/tags/comments.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { comment_comments: $si__input_comments && comment?.comments, "#LoopKey": _serialize_if($scope0_reason, 2) && i, id: $si__input_comments && id, @@ -43,7 +43,7 @@ const $content = (input) => { open: "4:10" }); }, 0, $scope0_id, "#ul/0", $sg__input_comments__OR__input_path, $sg__input_comments, $sg__input_comments, "", 1); - $si__input_comments && writeScope($scope0_id, { input_path: input.path }, "__tests__/tags/comments.marko", 0, { input_path: ["input.path"] }); + $si__input_comments && _scope($scope0_id, { input_path: input.path }, "__tests__/tags/comments.marko", 0, { input_path: ["input.path"] }); }; var comments_default = _template("__tests__/tags/comments.marko", $content); @@ -58,5 +58,5 @@ var template_default = _template("__tests__/template.marko", (input) => { }); const $childScope = _peek_scope_id(); comments_default(input); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.bundle.js index 1f4b1062da8..aa4b05d950e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.bundle.js @@ -21,7 +21,7 @@ const $content = (input) => { comments: comment.comments, path: id }); - $si__input_comments__OR__input_path && writeScope($scope2_id, { + $si__input_comments__OR__input_path && _scope($scope2_id, { _: _scope_with_id($scope1_id), a: _existing_scope($childScope) }); @@ -30,7 +30,7 @@ const $content = (input) => { }, $scope1_id, "e", $sg__input_comments__OR__input_path, $sg__input_comments, $sg__input_comments, 0, 1); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "b0"); - writeScope($scope1_id, { + _scope($scope1_id, { i: $si__input_comments && comment?.comments, M: _serialize_if($scope0_reason, 2) && i, l: $si__input_comments && id, @@ -38,7 +38,7 @@ const $content = (input) => { _: $si__input_comments__OR__input_path && _scope_with_id($scope0_id) }); }, 0, $scope0_id, "a", $sg__input_comments__OR__input_path, $sg__input_comments, $sg__input_comments, "", 1); - $si__input_comments && writeScope($scope0_id, { e: input.path }); + $si__input_comments && _scope($scope0_id, { e: input.path }); }; var comments_default = _template("b", $content); @@ -53,5 +53,5 @@ var template_default = _template("a", (input) => { }); const $childScope = _peek_scope_id(); comments_default(input); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.bundle.debug.js index b3bc0484f9f..7d3a7c49eb5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var layout_default = _template("__tests__/tags/layout.marko", (input) => { _html(""); _dynamic_tag($scope0_id, "#text/0", content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _trailers(""); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/layout.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/layout.marko", 0); }, 1); // template.marko @@ -19,8 +19,8 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(`

Hello ${_text_resume($scope1_id, "#text/0", name, _serialize_guard($scope0_reason, 0) * 2)}

`); - $si__input_name && _subscribe($name__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); + $si__input_name && _subscribe($name__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); _resume_branch($scope1_id); }, $scope0_id) }); - $si__input_name && writeScope($scope0_id, { "ClosureScopes:name": $name__closures }, "__tests__/template.marko", 0); + $si__input_name && _scope($scope0_id, { "ClosureScopes:name": $name__closures }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.bundle.js index d11cb649048..4a2f9db822a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var layout_default = _template("b", (input) => { _html(""); _dynamic_tag($scope0_id, "a", content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _trailers(""); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); // template.marko @@ -19,8 +19,8 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`

Hello ${_text_resume($scope1_id, "a", name, _serialize_guard($scope0_reason, 0) * 2)}

`); - $si__input_name && _subscribe($name__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + $si__input_name && _subscribe($name__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - $si__input_name && writeScope($scope0_id, { e: $name__closures }); + $si__input_name && _scope($scope0_id, { e: $name__closures }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.bundle.debug.js index bdb83ed0d16..d821cf85bc2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let index = 0; _html(`
${_text_resume($scope0_id, "#text/0", items[0])}
${_text_resume($scope0_id, "#text/1", items[index])}
${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { items, index }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.bundle.js index 777f3faed1d..3847652c368 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var template_default = _template("a", (input) => { let index = 0; _html(`
${_text_resume($scope0_id, "a", items[0])}
${_text_resume($scope0_id, "b", items[index])}
${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: items, f: index }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/html.bundle.debug.js index e1441fc2f17..8e1eece1f72 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/html.bundle.debug.js @@ -12,6 +12,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let user = undefined; _html(`
${_text_resume($scope0_id, "#text/0", user?.id)}
${_text_resume($scope0_id, "#text/1", user?.name)}
${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { index }, "__tests__/template.marko", 0, { index: "9:5" }); + _scope($scope0_id, { index }, "__tests__/template.marko", 0, { index: "9:5" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/html.bundle.js index 9dfa4e0a8c1..6f0008ea73f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-optional/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let index = -1; _html(`
${_text_resume($scope0_id, "a", void 0)}
${_text_resume($scope0_id, "b", void 0)}
${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: index }); + _scope($scope0_id, { d: index }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/html.bundle.debug.js index 5c11d431d34..a3aea5c2908 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const { class: fooClass } = foo; _html(`${_el_resume($scope0_id, "#div/0")}${_el_resume($scope0_id, "#div/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/html.bundle.js index 2a1bc847ba3..e7ba35c6582 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-merge-member-expression/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { const { class: fooClass } = foo; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.bundle.debug.js index b248663908b..b7d20c3bb99 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); const { name } = input; _html(`
${_text_resume($scope0_id, "#text/0", name, _serialize_guard($scope0_reason, 0))}
`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -20,11 +20,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); child_default({ name: `${outer}.${inner}` }); - writeScope($scope2_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "5:4"); + _scope($scope2_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "5:4"); }, 0, $scope1_id, "#text/0", 1, 1, 1, 0, 1); - writeScope($scope1_id, { outer }, "__tests__/template.marko", "4:2", { outer: "4:6" }); + _scope($scope1_id, { outer }, "__tests__/template.marko", "4:2", { outer: "4:6" }); }, 0, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.bundle.js index 9b7d903e7da..ceb294be0fa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); const { name } = input; _html(`
${_text_resume($scope0_id, "a", name, _serialize_guard($scope0_reason, 0))}
`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -20,11 +20,11 @@ var template_default = _template("a", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); child_default({ name: `${outer}.${inner}` }); - writeScope($scope2_id, { a: _existing_scope($childScope) }); + _scope($scope2_id, { a: _existing_scope($childScope) }); }, 0, $scope1_id, "a", 1, 1, 1, 0, 1); - writeScope($scope1_id, { c: outer }); + _scope($scope1_id, { c: outer }); }, 0, $scope0_id, "b"); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: items }); + _scope($scope0_id, { c: items }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.bundle.debug.js index 71cd2b77610..a330e0014bc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _html("
"); _dynamic_tag($scope0_id, "#text/0", content, [value], 0, 1, _serialize_guard($scope0_reason, 0)); _html("
"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { content: _serialize_if($scope0_reason, 2) && content, value: _serialize_if($scope0_reason, 1) && value }, "__tests__/tags/child.marko", 0, { @@ -36,11 +36,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(`
${_text_resume($scope2_id, "#text/0", outer, _serialize_guard($scope1_reason, 0))}.${_text_resume($scope2_id, "#text/1", inner, _serialize_guard($scope2_reason, 0) * 2)}
`); - (_serialize_if($scope1_reason, 0) || _serialize_if($scope2_reason, 0)) && _subscribe($si__outer && $child_content__outer__closures, writeScope($scope2_id, { _: $si__outer && _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:6")); + (_serialize_if($scope1_reason, 0) || _serialize_if($scope2_reason, 0)) && _subscribe($si__outer && $child_content__outer__closures, _scope($scope2_id, { _: $si__outer && _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:6")); _resume_branch($scope2_id); }, $scope1_id) }); - writeScope($scope1_id, { + _scope($scope1_id, { _: _scope_with_id($scope0_id), "ClosureScopes:outer": $si__outer && $child_content__outer__closures }, "__tests__/template.marko", "6:2"); @@ -48,7 +48,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, y, "#childScope/1": _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.bundle.js index 0bd4de5774d..da93c8d6c50 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var child_default = _template("b", (input) => { _html("
"); _dynamic_tag($scope0_id, "a", content, [value], 0, 1, _serialize_guard($scope0_reason, 0)); _html("
"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && content, e: _serialize_if($scope0_reason, 1) && value }); @@ -33,11 +33,11 @@ var template_default = _template("a", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(`
${_text_resume($scope2_id, "a", outer, _serialize_guard($scope1_reason, 0))}.${_text_resume($scope2_id, "b", inner, _serialize_guard($scope2_reason, 0) * 2)}
`); - (_serialize_if($scope1_reason, 0) || _serialize_if($scope2_reason, 0)) && _subscribe($si__outer && $child_content__outer__closures, writeScope($scope2_id, { _: $si__outer && _scope_with_id($scope1_id) })); + (_serialize_if($scope1_reason, 0) || _serialize_if($scope2_reason, 0)) && _subscribe($si__outer && $child_content__outer__closures, _scope($scope2_id, { _: $si__outer && _scope_with_id($scope1_id) })); _resume_branch($scope2_id); }, $scope1_id) }); - writeScope($scope1_id, { + _scope($scope1_id, { _: _scope_with_id($scope0_id), d: $si__outer && $child_content__outer__closures }); @@ -45,7 +45,7 @@ var template_default = _template("a", (input) => { }, $scope0_id) }); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { c: x, d: y, b: _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.bundle.debug.js index efc8308fb65..86b8adcdce6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -17,10 +17,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/template.marko", 0, { count: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.bundle.js index 20cf62268c5..01df00d6481 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -17,10 +17,10 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: count, c: $count__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.bundle.debug.js index b2a2886650f..ce3743687c9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -17,10 +17,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:4")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:4")); _resume_branch($scope1_id); }, $scope0_id), 0, 0); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/template.marko", 0, { count: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.bundle.js index 43a03ea8c55..c0db2f4b86e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -17,10 +17,10 @@ var template_default = _template("a", (input) => { _scope_reason(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a1"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), 0, 0); - writeScope($scope0_id, { + _scope($scope0_id, { b: count, c: $count__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.bundle.debug.js index f1d0b6273ed..85efdf52758 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.bundle.debug.js @@ -20,7 +20,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_escape(num)}${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { num, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2", { num: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.bundle.js index 708fdd71a4c..b82c443f0e4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.bundle.js @@ -20,7 +20,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_escape(num)}${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { d: num, _: _scope_with_id($scope0_id) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.bundle.debug.js index 2f4ea5ef2e6..83a315c2871 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.bundle.debug.js @@ -9,16 +9,16 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:4"); return 0; } else { const $scope2_id = _scope_id(); _html(`The button was clicked ${_text_resume($scope2_id, "#text/0", clickCount, 2)} times.`); - writeScope($scope2_id, {}, "__tests__/template.marko", "8:4"); + _scope($scope2_id, {}, "__tests__/template.marko", "8:4"); return 1; } }, $scope0_id, "#text/0", 1, 1, 1, 0, 1); _html(""); - writeScope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); + _scope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.bundle.js index 047b9c6496c..4f16aee4c32 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.bundle.js @@ -9,11 +9,11 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "a", 1, 1, 1, 0, 1); _html(""); - writeScope($scope0_id, { b: clickCount }); + _scope($scope0_id, { b: clickCount }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.bundle.debug.js index 317461601a2..db1d1c1b8d6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.bundle.debug.js @@ -8,11 +8,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(items, (item) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", item)); - writeScope($scope1_id, {}, "__tests__/template.marko", "5:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "5:4"); }, 0, $scope0_id, "#text/0", 1, 1, 1, 0, 1); _html(`${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { id, items }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.bundle.js index 099f79bd70a..cfa5be8a691 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.bundle.js @@ -8,11 +8,11 @@ var template_default = _template("a", (input) => { _for_of(items, (item) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", item)); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", 1, 1, 1, 0, 1); _html(`${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: id, e: items }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.bundle.debug.js index 5311a64ecd3..55d16eb78c6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.bundle.debug.js @@ -12,13 +12,13 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(list, (x) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "#text/0", x)}
  • `); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:4"); }, function(x) { return x; }, $scope0_id, "#ul/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { open, list }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.bundle.js index ca3d7e394bc..9dce0c821b2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.bundle.js @@ -12,13 +12,13 @@ var template_default = _template("a", (input) => { _for_of(list, (x) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "a", x)}
  • `); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, function(x) { return x; }, $scope0_id, "a", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: open, e: list }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.bundle.debug.js index 3d5f7325094..12de63db660 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let show = true; _html(`
    ${_text_resume($scope0_id, "#text/0", show ? "Hello!" : "")}${_el_resume($scope0_id, "#button/1")}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "2:8" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.bundle.js index 4c404ade9d9..b91f8edf816 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let show = true; _html(`
    ${_text_resume($scope0_id, "a", "Hello!")}${_el_resume($scope0_id, "b")}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: show }); + _scope($scope0_id, { c: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.bundle.debug.js index 8aa6cbe47f9..8e64d2c0fa8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let clickCount = 0; _html(`
    ${_el_resume($scope0_id, "#button/0")}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "4:8" }); + _scope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "4:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.bundle.js index 5815fdf7762..13bf97709a0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let clickCount = 0; _html(`
    ${_el_resume($scope0_id, "a")}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: clickCount }); + _scope($scope0_id, { c: clickCount }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.bundle.debug.js index 986b152b138..92ff4c62344 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.bundle.debug.js @@ -9,12 +9,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", message)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:2"); return 0; } }, $scope0_id, "#text/1", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, message }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.bundle.js index b9770836c9f..c7b458df8ea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.bundle.js @@ -9,12 +9,12 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "a", message)}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b", 1, 1, 1, 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: show, d: message }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.bundle.debug.js index 6f1adb71915..f70d1a93445 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let b = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { a, b }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.bundle.js index e95f14994bc..c6fa0639248 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { let b = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: a, d: b }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/html.bundle.debug.js index efdd76b1c5d..034cf3c4c39 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var counter_default = _template("__tests__/tags/counter.marko", (input) => { _dynamic_tag($scope0_id, "#text/1", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/counter.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { $countChange: _serialize_if($scope0_reason, 2) && $countChange, count: _serialize_if($scope0_reason, 1) && count, x, @@ -40,7 +40,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", x)); - _subscribe($x__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2")); + _subscribe($x__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2")); _resume_branch($scope1_id); }, $scope0_id) }); @@ -53,14 +53,14 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "#text/0", x)); - _subscribe($x__closures, writeScope($scope2_id, { + _subscribe($x__closures, _scope($scope2_id, { _: _scope_with_id($scope0_id), "ClosureSignalIndex:x": 1 }, "__tests__/template.marko", "4:2")); _resume_branch($scope2_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { "ClosureScopes:x": $x__closures, "#childScope/0": _existing_scope($childScope), "#childScope/1": _existing_scope($childScope2) diff --git a/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/html.bundle.js index 7d048a4f992..85fe1721880 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bind-to-input/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var counter_default = _template("b", (input) => { _dynamic_tag($scope0_id, "b", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { g: _serialize_if($scope0_reason, 2) && $countChange, h: _serialize_if($scope0_reason, 1) && count, j: x, @@ -35,7 +35,7 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", x)); - _subscribe($x__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($x__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); @@ -48,14 +48,14 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "a", x)); - _subscribe($x__closures, writeScope($scope2_id, { + _subscribe($x__closures, _scope($scope2_id, { _: _scope_with_id($scope0_id), Cd: 1 })); _resume_branch($scope2_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { d: $x__closures, a: _existing_scope($childScope), b: _existing_scope($childScope2) diff --git a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.bundle.debug.js index efdbbaaa4fe..57a02350cf8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var FancyButton_default = _template("__tests__/tags/FancyButton.marko", (input) _dynamic_tag($scope0_id, "#text/1", content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/FancyButton.marko_0_attrs#5"); - writeScope($scope0_id, {}, "__tests__/tags/FancyButton.marko", 0, { "EventAttributes:#button/0": ["...attrs", "2:12"] }); + _scope($scope0_id, {}, "__tests__/tags/FancyButton.marko", 0, { "EventAttributes:#button/0": ["...attrs", "2:12"] }); }); // template.marko @@ -25,11 +25,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", clickCount)); - _subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); + _subscribe($clickCount__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, "ClosureScopes:clickCount": $clickCount__closures, "#childScope/0": _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.bundle.js index 2e2e2e0d429..eea81c7c941 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var FancyButton_default = _template("b", (input) => { _dynamic_tag($scope0_id, "b", content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -25,11 +25,11 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", clickCount)); - _subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($clickCount__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: clickCount, c: $clickCount__closures, a: _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-computed-key/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-computed-key/__snapshots__/html.bundle.debug.js index 635760ccdaa..761335a0a02 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-computed-key/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-computed-key/__snapshots__/html.bundle.debug.js @@ -16,7 +16,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }; _html(`
    v=${_text_resume($scope0_id, "#text/0", v, 2)}|wrong=${_text_resume($scope0_id, "#text/1", wrong, 2)}
    ${_el_resume($scope0_id, "#input/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { key, state }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-computed-key/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-computed-key/__snapshots__/html.bundle.js index 4bc780e5248..163aa3a12ff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-computed-key/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-computed-key/__snapshots__/html.bundle.js @@ -16,7 +16,7 @@ var template_default = _template("a", (input) => { }; _html(`
    v=${_text_resume($scope0_id, "a", v, 2)}|wrong=${_text_resume($scope0_id, "b", wrong, 2)}
    ${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { f: key, g: state }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-dynamic-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-dynamic-tag/__snapshots__/html.bundle.debug.js index 0863c85e345..086d9f782f4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-dynamic-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-dynamic-tag/__snapshots__/html.bundle.debug.js @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { valueChange: state?.bChange }); _html(`
    ${_text_resume($scope0_id, "#text/2", a)}|${_text_resume($scope0_id, "#text/3", b, 2)}
    `); - writeScope($scope0_id, { + _scope($scope0_id, { a, b, state_aChange: state.aChange, diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-dynamic-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-dynamic-tag/__snapshots__/html.bundle.js index e6b2110a241..6679d4a05af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-dynamic-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-dynamic-tag/__snapshots__/html.bundle.js @@ -24,7 +24,7 @@ var template_default = _template("a", (input) => { valueChange: state?.bChange }); _html(`
    ${_text_resume($scope0_id, "c", a)}|${_text_resume($scope0_id, "d", b, 2)}
    `); - writeScope($scope0_id, { + _scope($scope0_id, { e: a, f: b, j: state.aChange, diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-missing-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-missing-handler/__snapshots__/html.bundle.debug.js index 2221d887d29..2a78b6a4fd3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-missing-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-missing-handler/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const state = { x: "v" }; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#input/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6", "ControlledHandler:#input/2": ["valueChange"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-missing-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-missing-handler/__snapshots__/html.bundle.js index 4fa4860024a..61d47fb8465 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-missing-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-missing-handler/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { const state = { x: "v" }; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: n }); + _scope($scope0_id, { d: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-computed-string-key/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-computed-string-key/__snapshots__/html.bundle.debug.js index 2134523ce7a..d55db030e70 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-computed-string-key/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-computed-string-key/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var reveal_default = _template("__tests__/tags/reveal/index.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/reveal/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/reveal/index.marko", 0); }); // template.marko @@ -23,6 +23,6 @@ var template_default = _template("__tests__/template.marko", (input) => { reveal_default({ value: a }); reveal_default({ value: b }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "5:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "5:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-computed-string-key/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-computed-string-key/__snapshots__/html.bundle.js index 1da152c4d55..b91aece1451 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-computed-string-key/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-computed-string-key/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var reveal_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -23,6 +23,6 @@ var template_default = _template("a", (input) => { reveal_default({ value: a }); reveal_default({ value: b }); _script($scope0_id, "a0"); - writeScope($scope0_id, { i: n }); + _scope($scope0_id, { i: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-existing-change/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-existing-change/__snapshots__/html.bundle.debug.js index bb0f7307d8e..c61a99a4e94 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-existing-change/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-existing-change/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var reveal_default = _template("__tests__/tags/reveal/index.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/reveal/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/reveal/index.marko", 0); }); // template.marko @@ -23,6 +23,6 @@ var template_default = _template("__tests__/template.marko", (input) => { reveal_default({ value: a }); reveal_default({ value: b }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "3:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "3:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-existing-change/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-existing-change/__snapshots__/html.bundle.js index ba06ddf8861..86c60ab30e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-existing-change/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-existing-change/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var reveal_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -23,6 +23,6 @@ var template_default = _template("a", (input) => { reveal_default({ value: a }); reveal_default({ value: b }); _script($scope0_id, "a0"); - writeScope($scope0_id, { i: n }); + _scope($scope0_id, { i: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-repeated/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-repeated/__snapshots__/html.bundle.debug.js index 17e7c7de765..e7d8d4d1db9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-repeated/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-repeated/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $valueChange = $aChange; _html(`${_el_resume($scope1_id, "#input/0")}${_el_resume($scope1_id, "#input/1")}${_el_resume($scope1_id, "#input/2")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { $aChange: _serialize_if($scope1_reason, 0) && $aChange, a: _serialize_if($scope1_reason, 1) && a }, "__tests__/template.marko", "1:2", { @@ -25,7 +25,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); Wrap.content({ a: "z" + n }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { n: "6:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-repeated/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-repeated/__snapshots__/html.bundle.js index 3a43271c0ae..e989361f078 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-repeated/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-repeated/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { const $valueChange = $aChange; _html(`${_el_resume($scope1_id, "a")}${_el_resume($scope1_id, "b")}${_el_resume($scope1_id, "c")}`); _script($scope1_id, "a1"); - writeScope($scope1_id, { + _scope($scope1_id, { f: _serialize_if($scope1_reason, 0) && $aChange, g: _serialize_if($scope1_reason, 1) && a }); @@ -19,7 +19,7 @@ var template_default = _template("a", (input) => { const $childScope = _peek_scope_id(); Wrap.content({ a: "z1" }); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { d: n, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-repeated-let/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-repeated-let/__snapshots__/html.bundle.debug.js index 7e399bdc5e4..c4fb58daada 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-repeated-let/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-repeated-let/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/valueChange2", $scope0_id); _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#input/2")}${_el_resume($scope0_id, "#input/3")}${_el_resume($scope0_id, "#input/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, $valueChange }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-repeated-let/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-repeated-let/__snapshots__/html.bundle.js index c53e0fb3e2f..f638d3e1fc2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-repeated-let/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-repeated-let/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id); _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { f: x, g: $valueChange }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-shapes/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-shapes/__snapshots__/html.bundle.debug.js index dbaeed01831..3634926a53f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-shapes/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-shapes/__snapshots__/html.bundle.debug.js @@ -16,7 +16,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }; _html(`
    ${_text_resume($scope0_id, "#text/0", a)}|${_text_resume($scope0_id, "#text/1", b, 2)}
    ${_el_resume($scope0_id, "#input/2")}${_el_resume($scope0_id, "#input/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { a, b, state_aChange: state.aChange, diff --git a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-shapes/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-shapes/__snapshots__/html.bundle.js index 0731868ce76..340e61ee251 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/bound-attr-shapes/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/bound-attr-shapes/__snapshots__/html.bundle.js @@ -16,7 +16,7 @@ var template_default = _template("a", (input) => { }; _html(`
    ${_text_resume($scope0_id, "a", a)}|${_text_resume($scope0_id, "b", b, 2)}
    ${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { e: a, f: b, j: state.aChange, diff --git a/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/html.bundle.debug.js index b0b70ecf603..303a9744784 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/3", true ? count : "")}
    ${_el_resume($scope0_id, "#div/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/html.bundle.js index fdf7e1f0e0e..ae93cb0385c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/branch-closure-if-only-child/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "d", count)}
    ${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: count }); + _scope($scope0_id, { e: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-catch-pending-await/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-catch-pending-await/__snapshots__/html.bundle.debug.js index f5891f1cc51..bfd7522f52b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-catch-pending-await/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-catch-pending-await/__snapshots__/html.bundle.debug.js @@ -34,20 +34,20 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope5_reason = _scope_reason(); const $scope5_id = _scope_id(); _html(`caught: ${_text_resume($scope5_id, "#text/0", err.message, _serialize_guard($scope5_reason, 0) * 2)}`); - _serialize_if($scope5_reason, 0) && writeScope($scope5_id, {}, "__tests__/template.marko", "21:8"); + _serialize_if($scope5_reason, 0) && _scope($scope5_id, {}, "__tests__/template.marko", "21:8"); }, $scope2_id) }) }); _html(`
    changes: ${_text_resume($scope2_id, "#text/2", changes, 2)}
    ${_el_resume($scope2_id, "#div/1")}`); _script($scope2_id, "__tests__/template.marko_2"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "10:4"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "10:4"); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "8:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "8:2"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_3*content", () => { _scope_reason(); const $scope3_id = _scope_id(); _html("loading outer..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { changes, "ClosureScopes:changes": $changes__closures }, "__tests__/template.marko", 0, { changes: "7:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-catch-pending-await/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-catch-pending-await/__snapshots__/html.bundle.js index 5f9458e01c6..4bf7d4c0d8a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-catch-pending-await/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-catch-pending-await/__snapshots__/html.bundle.js @@ -34,20 +34,20 @@ var template_default = _template("a", (input) => { const $scope5_reason = _scope_reason(); const $scope5_id = _scope_id(); _html(`caught: ${_text_resume($scope5_id, "a", err.message, _serialize_guard($scope5_reason, 0) * 2)}`); - _serialize_if($scope5_reason, 0) && writeScope($scope5_id, {}); + _serialize_if($scope5_reason, 0) && _scope($scope5_id, {}); }, $scope2_id) }) }); _html(`
    changes: ${_text_resume($scope2_id, "c", changes, 2)}
    ${_el_resume($scope2_id, "b")}`); _script($scope2_id, "a5"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a6", () => { _scope_reason(); _scope_id(); _html("loading outer..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: changes, c: $changes__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await-same-tick/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await-same-tick/__snapshots__/html.bundle.debug.js index 15c691f68ae..968a47d678a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await-same-tick/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await-same-tick/__snapshots__/html.bundle.debug.js @@ -21,20 +21,20 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope5_reason = _scope_reason(); const $scope5_id = _scope_id(); _html(`caught: ${_text_resume($scope5_id, "#text/0", err.message, _serialize_guard($scope5_reason, 0) * 2)}`); - _serialize_if($scope5_reason, 0) && writeScope($scope5_id, {}, "__tests__/template.marko", "11:8"); + _serialize_if($scope5_reason, 0) && _scope($scope5_id, {}, "__tests__/template.marko", "11:8"); }, $scope2_id) }) }); _html(`
    changes: ${_text_resume($scope2_id, "#text/2", changes, 2)}
    ${_el_resume($scope2_id, "#div/1")}`); _script($scope2_id, "__tests__/template.marko_2"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:4"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:4"); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_3*content", () => { _scope_reason(); const $scope3_id = _scope_id(); _html("loading outer..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { changes, "ClosureScopes:changes": $changes__closures }, "__tests__/template.marko", 0, { changes: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await-same-tick/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await-same-tick/__snapshots__/html.bundle.js index 653fbf871ab..28d6f3dcc9a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await-same-tick/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await-same-tick/__snapshots__/html.bundle.js @@ -21,20 +21,20 @@ var template_default = _template("a", (input) => { const $scope5_reason = _scope_reason(); const $scope5_id = _scope_id(); _html(`caught: ${_text_resume($scope5_id, "a", err.message, _serialize_guard($scope5_reason, 0) * 2)}`); - _serialize_if($scope5_reason, 0) && writeScope($scope5_id, {}); + _serialize_if($scope5_reason, 0) && _scope($scope5_id, {}); }, $scope2_id) }) }); _html(`
    changes: ${_text_resume($scope2_id, "c", changes, 2)}
    ${_el_resume($scope2_id, "b")}`); _script($scope2_id, "a3"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a4", () => { _scope_reason(); _scope_id(); _html("loading outer..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: changes, c: $changes__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await/__snapshots__/html.bundle.debug.js index 3dec6c38701..9bc4d30199e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await/__snapshots__/html.bundle.debug.js @@ -21,20 +21,20 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope5_reason = _scope_reason(); const $scope5_id = _scope_id(); _html(`caught: ${_text_resume($scope5_id, "#text/0", err.message, _serialize_guard($scope5_reason, 0) * 2)}`); - _serialize_if($scope5_reason, 0) && writeScope($scope5_id, {}, "__tests__/template.marko", "11:8"); + _serialize_if($scope5_reason, 0) && _scope($scope5_id, {}, "__tests__/template.marko", "11:8"); }, $scope2_id) }) }); _html(`
    changes: ${_text_resume($scope2_id, "#text/2", changes, 2)}
    ${_el_resume($scope2_id, "#div/1")}`); _script($scope2_id, "__tests__/template.marko_2"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:4"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:4"); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_3*content", () => { _scope_reason(); const $scope3_id = _scope_id(); _html("loading outer..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { changes, "ClosureScopes:changes": $changes__closures }, "__tests__/template.marko", 0, { changes: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await/__snapshots__/html.bundle.js index f514b0b85d7..a63c690b530 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-nested-in-await/__snapshots__/html.bundle.js @@ -21,20 +21,20 @@ var template_default = _template("a", (input) => { const $scope5_reason = _scope_reason(); const $scope5_id = _scope_id(); _html(`caught: ${_text_resume($scope5_id, "a", err.message, _serialize_guard($scope5_reason, 0) * 2)}`); - _serialize_if($scope5_reason, 0) && writeScope($scope5_id, {}); + _serialize_if($scope5_reason, 0) && _scope($scope5_id, {}); }, $scope2_id) }) }); _html(`
    changes: ${_text_resume($scope2_id, "c", changes, 2)}
    ${_el_resume($scope2_id, "b")}`); _script($scope2_id, "a3"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a4", () => { _scope_reason(); _scope_id(); _html("loading outer..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: changes, c: $changes__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-sibling-pending-await/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-sibling-pending-await/__snapshots__/html.bundle.debug.js index b6eb20032d3..f2579ca4efe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-sibling-pending-await/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-sibling-pending-await/__snapshots__/html.bundle.debug.js @@ -26,20 +26,20 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope5_reason = _scope_reason(); const $scope5_id = _scope_id(); _html(`caught: ${_text_resume($scope5_id, "#text/0", err.message, _serialize_guard($scope5_reason, 0) * 2)}`); - _serialize_if($scope5_reason, 0) && writeScope($scope5_id, {}, "__tests__/template.marko", "18:8"); + _serialize_if($scope5_reason, 0) && _scope($scope5_id, {}, "__tests__/template.marko", "18:8"); }, $scope2_id) }) }); _html(`
    changes: ${_text_resume($scope2_id, "#text/2", changes, 2)}
    ${_el_resume($scope2_id, "#div/1")}`); _script($scope2_id, "__tests__/template.marko_2"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "10:4"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "10:4"); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "8:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "8:2"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_3*content", () => { _scope_reason(); const $scope3_id = _scope_id(); _html("loading outer..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { changes, "ClosureScopes:changes": $changes__closures }, "__tests__/template.marko", 0, { changes: "7:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-sibling-pending-await/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-sibling-pending-await/__snapshots__/html.bundle.js index 9a428c1d12a..d5fa41a3ff0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-reject-sibling-pending-await/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-reject-sibling-pending-await/__snapshots__/html.bundle.js @@ -26,20 +26,20 @@ var template_default = _template("a", (input) => { const $scope5_reason = _scope_reason(); const $scope5_id = _scope_id(); _html(`caught: ${_text_resume($scope5_id, "a", err.message, _serialize_guard($scope5_reason, 0) * 2)}`); - _serialize_if($scope5_reason, 0) && writeScope($scope5_id, {}); + _serialize_if($scope5_reason, 0) && _scope($scope5_id, {}); }, $scope2_id) }) }); _html(`
    changes: ${_text_resume($scope2_id, "c", changes, 2)}
    ${_el_resume($scope2_id, "b")}`); _script($scope2_id, "a3"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a4", () => { _scope_reason(); _scope_id(); _html("loading outer..."); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: changes, c: $changes__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-serialized-globals/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/catch-serialized-globals/__snapshots__/html.bundle.debug.js index 2119d4ea3e2..15b3007340f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-serialized-globals/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-serialized-globals/__snapshots__/html.bundle.debug.js @@ -17,7 +17,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let clicked = false; _html(`${_el_resume($scope2_id, "#button/0")}`); _script($scope2_id, "__tests__/template.marko_2"); - writeScope($scope2_id, { + _scope($scope2_id, { error_message: error?.message, message, clicked: _serialize_if($scope2_reason, 0) && clicked diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-serialized-globals/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/catch-serialized-globals/__snapshots__/html.bundle.js index 1776cf3cabb..6ba9ef14204 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-serialized-globals/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-serialized-globals/__snapshots__/html.bundle.js @@ -17,7 +17,7 @@ var template_default = _template("a", (input) => { let clicked = false; _html(`${_el_resume($scope2_id, "a")}`); _script($scope2_id, "a0"); - writeScope($scope2_id, { + _scope($scope2_id, { e: error?.message, f: message, g: _serialize_if($scope2_reason, 0) && clicked diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-single-reject-async/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/catch-single-reject-async/__snapshots__/html.bundle.debug.js index a006db70c0a..85d50c28fbe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-single-reject-async/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-single-reject-async/__snapshots__/html.bundle.debug.js @@ -16,7 +16,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "#text/0", error.message, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "8:4"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}, "__tests__/template.marko", "8:4"); }, $scope0_id) }) }); _html("d"); _await($scope0_id, "#text/1", resolveAfter("e", 1), (data) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-single-reject-async/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/catch-single-reject-async/__snapshots__/html.bundle.js index a14acca6abb..29b0d0d6328 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-single-reject-async/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-single-reject-async/__snapshots__/html.bundle.js @@ -16,7 +16,7 @@ var template_default = _template("a", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "a", error.message, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}); }, $scope0_id) }) }); _html("d"); _await($scope0_id, "b", resolveAfter("e", 1), (data) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-single-throw-sync/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/catch-single-throw-sync/__snapshots__/html.bundle.debug.js index 155aa64cad4..be16cd171c5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-single-throw-sync/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-single-throw-sync/__snapshots__/html.bundle.debug.js @@ -13,7 +13,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "#text/0", error.message, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "4:4"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}, "__tests__/template.marko", "4:4"); }, $scope0_id) }) }); _html("d"); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/catch-single-throw-sync/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/catch-single-throw-sync/__snapshots__/html.bundle.js index b77593c55d4..04c084f2feb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/catch-single-throw-sync/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/catch-single-throw-sync/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var template_default = _template("a", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "a", error.message, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}); }, $scope0_id) }) }); _html("d"); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/html.bundle.debug.js index e8dd1970eff..a4bc8bd3faa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/html.bundle.debug.js @@ -10,5 +10,5 @@ var template_default = _template("__tests__/template.marko", (input) => { }; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_$fooChange#2"); - writeScope($scope0_id, { $fooChange }, "__tests__/template.marko", 0, { $fooChange: "9:3" }); + _scope($scope0_id, { $fooChange }, "__tests__/template.marko", 0, { $fooChange: "9:3" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/html.bundle.js index f786e455b2a..ada133f3526 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/change-handler-alias-assignment/__snapshots__/html.bundle.js @@ -10,5 +10,5 @@ var template_default = _template("a", (input) => { }; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { c: $fooChange }); + _scope($scope0_id, { c: $fooChange }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/checkbox-spread-checked-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/checkbox-spread-checked-value/__snapshots__/html.bundle.debug.js index 13e7addeb1f..b8ec2c55267 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/checkbox-spread-checked-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/checkbox-spread-checked-value/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, { type: 1 }, "#input/0", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#button/1")}
    ${_text_resume($scope0_id, "#text/2", sel.join(","))}
    `); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_sel#3"); - writeScope($scope0_id, { sel }, "__tests__/template.marko", 0, { + _scope($scope0_id, { sel }, "__tests__/template.marko", 0, { sel: "1:6", "ControlledHandler:#input/0": ["...{ checkedValue: sel, value: \"a\" }", "2:11"], "EventAttributes:#input/0": ["...{ checkedValue: sel, value: \"a\" }", "2:11"] diff --git a/packages/runtime-tags/src/__tests__/fixtures/checkbox-spread-checked-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/checkbox-spread-checked-value/__snapshots__/html.bundle.js index 34a0aa4d8e0..ddbd47e0988 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/checkbox-spread-checked-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/checkbox-spread-checked-value/__snapshots__/html.bundle.js @@ -9,6 +9,6 @@ var template_default = _template("a", (input) => { }, { type: 1 }, "a", $scope0_id, "input")}>${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}
    ${_text_resume($scope0_id, "c", sel.join(","))}
    `); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: sel }); + _scope($scope0_id, { d: sel }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/child-leading-text-between-parent-text/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/child-leading-text-between-parent-text/__snapshots__/html.bundle.debug.js index 43e3a43785b..6b26ec36381 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/child-leading-text-between-parent-text/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/child-leading-text-between-parent-text/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child/index.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`X${_el_resume($scope0_id, "#span/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child/index.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/child-leading-text-between-parent-text/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/child-leading-text-between-parent-text/__snapshots__/html.bundle.js index f4d97ead9cd..492da89edd0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/child-leading-text-between-parent-text/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/child-leading-text-between-parent-text/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`X${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/html.bundle.debug.js index 4bd04867809..bcac29a63e4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "__tests__/tags/child.marko_0_input_valueChange#2"); - writeScope($scope0_id, { input_valueChange: input.valueChange }, "__tests__/tags/child.marko", 0, { input_valueChange: ["input.valueChange"] }); + _scope($scope0_id, { input_valueChange: input.valueChange }, "__tests__/tags/child.marko", 0, { input_valueChange: ["input.valueChange"] }); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("__tests__/template.marko", (input) => { child_default({ valueChange: _resume(function() { setter(); }, "__tests__/template.marko_1/valueChange", $scope1_id) }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2"); } - writeScope($scope0_id, { setter }, "__tests__/template.marko", 0, { setter: "2:8" }); + _scope($scope0_id, { setter }, "__tests__/template.marko", 0, { setter: "2:8" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/html.bundle.js index 5592a28681f..71038f295b7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/circular-tag-var-function-serialize/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "b0"); - writeScope($scope0_id, { c: input.valueChange }); + _scope($scope0_id, { c: input.valueChange }); }); // template.marko @@ -16,7 +16,7 @@ var template_default = _template("a", (input) => { child_default({ valueChange: _resume(function() { setter(); }, "a1", $scope1_id) }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); } - writeScope($scope0_id, { b: setter }); + _scope($scope0_id, { b: setter }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/class-object-empty-key/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/class-object-empty-key/__snapshots__/html.bundle.debug.js index 2ba26c739fe..8843eeb1e1c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/class-object-empty-key/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/class-object-empty-key/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { odd: count % 2 })}>x${_el_resume($scope0_id, "#div/0")}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/class-object-empty-key/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/class-object-empty-key/__snapshots__/html.bundle.js index e66aa2f0379..f3bf4a3e750 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/class-object-empty-key/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/class-object-empty-key/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { odd: count % 2 })}>x${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.bundle.debug.js index 57768aeecd0..bbecfa9fbc0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const { name, write } = input; _html(`
    ${_text_resume($scope0_id, "#text/0", name, $sg__input_name)}
    ${_text_resume($scope0_id, "#text/1", name, $sg__input_name)}

    ${_text_resume($scope0_id, "#text/2", name, $sg__input_name)}

    `); _script($scope0_id, "__tests__/tags/child.marko_0_name#5_write#6"); - writeScope($scope0_id, { + _scope($scope0_id, { name, write }, "__tests__/tags/child.marko", 0, { @@ -36,10 +36,10 @@ var template_default = _template("__tests__/template.marko", (input) => { write, name: item }); - writeScope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "7:2"); + _scope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "7:2"); }, 0, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { items, write }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.bundle.js index 1a8564cc6a5..346f0246aab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { const { name, write } = input; _html(`
    ${_text_resume($scope0_id, "a", name, $sg__input_name)}
    ${_text_resume($scope0_id, "b", name, $sg__input_name)}

    ${_text_resume($scope0_id, "c", name, $sg__input_name)}

    `); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: name, g: write }); @@ -33,10 +33,10 @@ var template_default = _template("a", (input) => { write, name: item }); - writeScope($scope1_id, { a: _existing_scope($childScope) }); + _scope($scope1_id, { a: _existing_scope($childScope) }); }, 0, $scope0_id, "c"); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: items, e: write }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.bundle.debug.js index f670ac3cb20..9edeabe43e5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const { name, write } = input; _html(`
    ${_text_resume($scope0_id, "#text/0", name, $sg__input_name)} a
    ${_text_resume($scope0_id, "#text/1", name, $sg__input_name)} a

    ${_text_resume($scope0_id, "#text/2", name, $sg__input_name)} a

    `); _script($scope0_id, "__tests__/tags/child.marko_0_name#5_write#6"); - writeScope($scope0_id, { + _scope($scope0_id, { name, write }, "__tests__/tags/child.marko", 0, { @@ -50,22 +50,22 @@ var template_default = _template("__tests__/template.marko", (input) => { write, name: "Inner" }); - writeScope($scope3_id, {}, "__tests__/template.marko", "17:10"); + _scope($scope3_id, {}, "__tests__/template.marko", "17:10"); return 0; } }, $scope2_id, "#text/1"); _html(""); - _subscribe($showInner__closures, writeScope($scope2_id, {}, "__tests__/template.marko", "14:6")); + _subscribe($showInner__closures, _scope($scope2_id, {}, "__tests__/template.marko", "14:6")); return 0; } }, $scope1_id, "#text/1", 1, 1, 1, 0, 1); _html(""); - writeScope($scope1_id, {}, "__tests__/template.marko", "11:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "11:2"); return 0; } }, $scope0_id, "#text/4", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { showOuter, showMiddle, showInner, diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.bundle.js index 38cfcc2fed1..b987157b9da 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { const { name, write } = input; _html(`
    ${_text_resume($scope0_id, "a", name, $sg__input_name)} a
    ${_text_resume($scope0_id, "b", name, $sg__input_name)} a

    ${_text_resume($scope0_id, "c", name, $sg__input_name)} a

    `); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: name, g: write }); @@ -47,22 +47,22 @@ var template_default = _template("a", (input) => { write, name: "Inner" }); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); return 0; } }, $scope2_id, "b"); _html(""); - _subscribe($showInner__closures, writeScope($scope2_id, {})); + _subscribe($showInner__closures, _scope($scope2_id, {})); return 0; } }, $scope1_id, "b", 1, 1, 1, 0, 1); _html(""); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "e", 1, 1, 1, 0, 1); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { f: showOuter, g: showMiddle, h: showInner, diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.bundle.debug.js index ff56684e583..a1e3b3d52f6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.bundle.debug.js @@ -9,11 +9,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html("
    a
    b

    c

    "); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.bundle.js index fd7b06f2c00..95748f393ff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.bundle.js @@ -9,11 +9,11 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html("
    a
    b

    c

    "); _script($scope1_id, "a0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: show }); + _scope($scope0_id, { d: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.bundle.debug.js index 5340cc62d5d..e78b4d2e59e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html("
    a
    b

    c

    "); _script($scope0_id, "__tests__/tags/child.marko_0_input#1"); - writeScope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); + _scope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); _resume_branch($scope0_id); }); @@ -20,11 +20,11 @@ var template_default = _template("__tests__/template.marko", (input) => { child_default({ write: _resume(function(state) { ((el) => el())(_el_read_error).innerHTML = state; }, "__tests__/template.marko_1/write", $scope1_id) }); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.bundle.js index 718a6f9ab43..d6c5ca084af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html("
    a
    b

    c

    "); _script($scope0_id, "b0"); - writeScope($scope0_id, { b: input }); + _scope($scope0_id, { b: input }); _resume_branch($scope0_id); }); @@ -20,11 +20,11 @@ var template_default = _template("a", (input) => { child_default({ write: _resume(function(state) { ((el) => el())(_el_read_error).innerHTML = state; }, "a0", $scope1_id) }); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: show }); + _scope($scope0_id, { d: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.bundle.debug.js index 23f41ffc960..de84a356c9d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const { name, write } = input; _html(`
    ${_text_resume($scope0_id, "#text/0", name, _serialize_guard($scope0_reason, 0))}
    `); _script($scope0_id, "__tests__/tags/child.marko_0_name#3_write#4"); - writeScope($scope0_id, { + _scope($scope0_id, { name, write }, "__tests__/tags/child.marko", 0, { @@ -47,16 +47,16 @@ var template_default = _template("__tests__/template.marko", (input) => { name: `${outerItem}.${middleItem}` }); _html(""); - writeScope($scope2_id, { "#childScope/0": _existing_scope($childScope2) }, "__tests__/template.marko", "10:6"); + _scope($scope2_id, { "#childScope/0": _existing_scope($childScope2) }, "__tests__/template.marko", "10:6"); }, 0, $scope1_id, "#text/1", 1, 1, 1, 0, 1); _html(""); - writeScope($scope1_id, { + _scope($scope1_id, { outerItem, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "7:2", { outerItem: "7:6" }); }, 0, $scope0_id, "#text/2", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { items, write }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.bundle.js index 57f0666fe46..43d8e0a1b11 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { const { name, write } = input; _html(`
    ${_text_resume($scope0_id, "a", name, _serialize_guard($scope0_reason, 0))}
    `); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: name, e: write }); @@ -44,16 +44,16 @@ var template_default = _template("a", (input) => { name: `${outerItem}.${middleItem}` }); _html(""); - writeScope($scope2_id, { a: _existing_scope($childScope2) }); + _scope($scope2_id, { a: _existing_scope($childScope2) }); }, 0, $scope1_id, "b", 1, 1, 1, 0, 1); _html(""); - writeScope($scope1_id, { + _scope($scope1_id, { d: outerItem, a: _existing_scope($childScope) }); }, 0, $scope0_id, "c", 1, 1, 1, 0, 1); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: items, e: write }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.bundle.debug.js index f0a2b8b2b92..e2bbeffdf44 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const { name, write } = input; _html(`
    ${_text_resume($scope0_id, "#text/0", name, _serialize_guard($scope0_reason, 0))}
    `); _script($scope0_id, "__tests__/tags/child.marko_0_name#3_write#4"); - writeScope($scope0_id, { + _scope($scope0_id, { name, write }, "__tests__/tags/child.marko", 0, { @@ -36,10 +36,10 @@ var template_default = _template("__tests__/template.marko", (input) => { write, name: item }); - writeScope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "7:2"); + _scope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "7:2"); }, 0, $scope0_id, "#text/2", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { items, write }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.bundle.js index bdecae18374..f1f1cb61750 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { const { name, write } = input; _html(`
    ${_text_resume($scope0_id, "a", name, _serialize_guard($scope0_reason, 0))}
    `); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: name, e: write }); @@ -33,10 +33,10 @@ var template_default = _template("a", (input) => { write, name: item }); - writeScope($scope1_id, { a: _existing_scope($childScope) }); + _scope($scope1_id, { a: _existing_scope($childScope) }); }, 0, $scope0_id, "c", 1, 1, 1, 0, 1); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: items, e: write }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.bundle.debug.js index 6658604a199..5a5e9543309 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const { name, write } = input; _html(`

    ${_text_resume($scope0_id, "#text/0", name, _serialize_guard($scope0_reason, 0))}

    `); _script($scope0_id, "__tests__/tags/child.marko_0_name#3_write#4"); - writeScope($scope0_id, { + _scope($scope0_id, { name, write }, "__tests__/tags/child.marko", 0, { @@ -50,22 +50,22 @@ var template_default = _template("__tests__/template.marko", (input) => { write, name: "Inner" }); - writeScope($scope3_id, {}, "__tests__/template.marko", "17:10"); + _scope($scope3_id, {}, "__tests__/template.marko", "17:10"); return 0; } }, $scope2_id, "#text/1", 1, 1, 1, 0, 1); _html(""); - _subscribe($showInner__closures, writeScope($scope2_id, {}, "__tests__/template.marko", "14:6")); + _subscribe($showInner__closures, _scope($scope2_id, {}, "__tests__/template.marko", "14:6")); return 0; } }, $scope1_id, "#text/1", 1, 1, 1, 0, 1); _html(""); - writeScope($scope1_id, {}, "__tests__/template.marko", "11:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "11:2"); return 0; } }, $scope0_id, "#text/4", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { showOuter, showMiddle, showInner, diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.bundle.js index 764a15cf50b..d2aa96524ef 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { const { name, write } = input; _html(`

    ${_text_resume($scope0_id, "a", name, _serialize_guard($scope0_reason, 0))}

    `); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: name, e: write }); @@ -47,22 +47,22 @@ var template_default = _template("a", (input) => { write, name: "Inner" }); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); return 0; } }, $scope2_id, "b", 1, 1, 1, 0, 1); _html(""); - _subscribe($showInner__closures, writeScope($scope2_id, {})); + _subscribe($showInner__closures, _scope($scope2_id, {})); return 0; } }, $scope1_id, "b", 1, 1, 1, 0, 1); _html(""); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "e", 1, 1, 1, 0, 1); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { f: showOuter, g: showMiddle, h: showInner, diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.bundle.debug.js index c22134ab27b..d444bc9eb1d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.bundle.debug.js @@ -9,11 +9,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html("
    child
    "); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/2", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.bundle.js index 96f15d90159..1585304f7e5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.bundle.js @@ -9,11 +9,11 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html("
    child
    "); _script($scope1_id, "a0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c", 1, 1, 1, 0, 1); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: show }); + _scope($scope0_id, { d: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.bundle.debug.js index bfa7308d481..94f4addc386 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html("
    child
    "); _script($scope0_id, "__tests__/tags/child.marko_0_input#1"); - writeScope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); + _scope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); _resume_branch($scope0_id); }); @@ -20,11 +20,11 @@ var template_default = _template("__tests__/template.marko", (input) => { child_default({ write: _resume(function(state) { ((el) => el())(_el_read_error).innerHTML = state; }, "__tests__/template.marko_1/write", $scope1_id) }); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/2", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.bundle.js index f20bb97f85a..26363f826ce 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html("
    child
    "); _script($scope0_id, "b0"); - writeScope($scope0_id, { b: input }); + _scope($scope0_id, { b: input }); _resume_branch($scope0_id); }); @@ -20,11 +20,11 @@ var template_default = _template("a", (input) => { child_default({ write: _resume(function(state) { ((el) => el())(_el_read_error).innerHTML = state; }, "a0", $scope1_id) }); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c", 1, 1, 1, 0, 1); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: show }); + _scope($scope0_id, { d: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/html.bundle.debug.js index 18aee4ccc1a..bb62113b34b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/html.bundle.debug.js @@ -12,10 +12,10 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_1/run", $scope1_id); _html(`
    ${_el_resume($scope1_id, "#div/0")}`); _script($scope1_id, "__tests__/template.marko_1_run#1"); - writeScope($scope1_id, { + _scope($scope1_id, { run, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2", { run: "4:10" }); } - writeScope($scope0_id, { text }, "__tests__/template.marko", 0, { text: "1:8" }); + _scope($scope0_id, { text }, "__tests__/template.marko", 0, { text: "1:8" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/html.bundle.js index b483d6c53e8..6c2aed13af3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/closure-owner-scope-serialize-in-serialized-function/__snapshots__/html.bundle.js @@ -12,10 +12,10 @@ var template_default = _template("a", (input) => { }, "a1", $scope1_id); _html(`
    ${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a2"); - writeScope($scope1_id, { + _scope($scope1_id, { b: run, _: _scope_with_id($scope0_id) }); } - writeScope($scope0_id, { b: text }); + _scope($scope0_id, { b: text }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/html.bundle.debug.js index dbc1e8a9c63..8616e8f1415 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/html.bundle.debug.js @@ -9,13 +9,13 @@ var template_default = _template("__tests__/template.marko", (input) => { if (x) { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", getMessage(), _serialize_guard($scope0_reason, 0))}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:4"); return 0; } }, $scope0_id, "#div/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_message: input.message, x, getMessage diff --git a/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/html.bundle.js index 11e88a29ba4..793ff1b6a0f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/closure-serialize-reason/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { _if(() => {}, $scope0_id, "a", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { f: input.message, g: x, h: getMessage diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.bundle.debug.js index a0528a1e860..45c52a5cdf2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var counter_default = _template("__tests__/tags/counter.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/counter.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input, count }, "__tests__/tags/counter.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.bundle.js index 52be84e27dc..e35ed9dd949 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var counter_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: input, e: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/html.bundle.debug.js index 51a2fecd936..6428450891b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var display_intersection_default = _template("__tests__/tags/display-intersectio const { value } = input; let dummy = {}; _html(`
    ${_text_resume($scope0_id, "#text/0", (dummy, value), _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { dummy }, "__tests__/tags/display-intersection.marko", 0, { dummy: "2:6" }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { dummy }, "__tests__/tags/display-intersection.marko", 0, { dummy: "2:6" }); _resume_branch($scope0_id); }); @@ -19,7 +19,7 @@ var template_default = _template("__tests__/template.marko", (input) => { display_intersection_default({ value: count }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { count: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/html.bundle.js index 7486e337cc8..4aa1dac2f32 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-intersection/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var display_intersection_default = _template("b", (input) => { const { value } = input; let dummy = {}; _html(`
    ${_text_resume($scope0_id, "a", value, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { e: dummy }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { e: dummy }); _resume_branch($scope0_id); }); @@ -19,7 +19,7 @@ var template_default = _template("a", (input) => { display_intersection_default({ value: count }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: count, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/html.bundle.debug.js index 1ec63e78970..0beeded777d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var counter_default = _template("__tests__/tags/counter.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/counter.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input, count }, "__tests__/tags/counter.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/html.bundle.js index 3293c288ce6..8d3f08b9d1b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-code/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var counter_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: input, e: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-non-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-non-registered-function/__snapshots__/html.bundle.debug.js index 1a1f74861d3..e0532fcaa50 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-non-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-non-registered-function/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var price_default = _template("__tests__/tags/price.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.format(input.value), _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/price.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/price.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-non-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-non-registered-function/__snapshots__/html.bundle.js index 8eaeb83f883..81378117c57 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-non-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-static-non-registered-function/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var price_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.format(input.value), _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-attr-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-attr-value/__snapshots__/html.bundle.debug.js index de982420cb8..d838a854cf2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-attr-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-attr-value/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(), $si__input_fallback = _serialize_if($scope0_reason, 3); const $scope0_id = _scope_id(); _html(`
    content
    ${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 1))}`); - _serialize_if($scope0_reason, 1) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 1) && _scope($scope0_id, { input_x: $si__input_fallback && input.x, input_y: _serialize_if($scope0_reason, 4) && input.y, input_z: $si__input_fallback && input.z, diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-attr-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-attr-value/__snapshots__/html.bundle.js index ebc998dfdd9..02a903be3f4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-attr-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-attr-value/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(), $si__input_fallback = _serialize_if($scope0_reason, 3); const $scope0_id = _scope_id(); _html(`
    content
    ${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 1))}`); - _serialize_if($scope0_reason, 1) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 1) && _scope($scope0_id, { d: $si__input_fallback && input.x, e: _serialize_if($scope0_reason, 4) && input.y, f: $si__input_fallback && input.z, diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/html.bundle.debug.js index 90aa47ac4c5..6fe5c20bc00 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/html.bundle.debug.js @@ -8,13 +8,13 @@ var sections_default = _template("__tests__/tags/sections.marko", (input) => { if (content) { const $scope2_id = _scope_id(); _dynamic_tag($scope2_id, "#text/0", content, {}, 0, 0, $sg__input_section); - $si__input_section && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/sections.marko", "2:4"); + $si__input_section && _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/sections.marko", "2:4"); return 0; } }, $scope1_id, "#text/0", $sg__input_section, $sg__input_section, $sg__input_section); - $si__input_section && writeScope($scope1_id, { content }, "__tests__/tags/sections.marko", "1:2", { content: "1:8" }); + $si__input_section && _scope($scope1_id, { content }, "__tests__/tags/sections.marko", "1:2", { content: "1:8" }); }, 0, $scope0_id, "#text/0", $sg__input_section, $sg__input_section, $sg__input_section); - $si__input_section && writeScope($scope0_id, {}, "__tests__/tags/sections.marko", 0); + $si__input_section && _scope($scope0_id, {}, "__tests__/tags/sections.marko", 0); }); // template.marko @@ -33,11 +33,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", count)); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:4")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:4")); _resume_branch($scope1_id); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures, "#childScope/0": _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/html.bundle.js index 43a7deb3929..fbc08ba2439 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop-closure/__snapshots__/html.bundle.js @@ -8,13 +8,13 @@ var sections_default = _template("b", (input) => { if (content) { const $scope2_id = _scope_id(); _dynamic_tag($scope2_id, "a", content, {}, 0, 0, $sg__input_section); - $si__input_section && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + $si__input_section && _scope($scope2_id, { _: _scope_with_id($scope1_id) }); return 0; } }, $scope1_id, "a", $sg__input_section, $sg__input_section, $sg__input_section); - $si__input_section && writeScope($scope1_id, { d: content }); + $si__input_section && _scope($scope1_id, { d: content }); }, 0, $scope0_id, "a", $sg__input_section, $sg__input_section, $sg__input_section); - $si__input_section && writeScope($scope0_id, {}); + $si__input_section && _scope($scope0_id, {}); }); // template.marko @@ -33,11 +33,11 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", count)); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: count, c: $count__closures, a: _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop/__snapshots__/html.bundle.debug.js index 4f87829d966..07918ae5e0e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop/__snapshots__/html.bundle.debug.js @@ -8,13 +8,13 @@ var sections_default = _template("__tests__/tags/sections.marko", (input) => { if (content) { const $scope2_id = _scope_id(); _dynamic_tag($scope2_id, "#text/0", content, {}, 0, 0, $sg__input_section); - $si__input_section && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/sections.marko", "2:4"); + $si__input_section && _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/sections.marko", "2:4"); return 0; } }, $scope1_id, "#text/0", $sg__input_section, $sg__input_section, $sg__input_section); - $si__input_section && writeScope($scope1_id, { content }, "__tests__/tags/sections.marko", "1:2", { content: "1:8" }); + $si__input_section && _scope($scope1_id, { content }, "__tests__/tags/sections.marko", "1:2", { content: "1:8" }); }, 0, $scope0_id, "#text/0", $sg__input_section, $sg__input_section, $sg__input_section); - $si__input_section && writeScope($scope0_id, {}, "__tests__/tags/sections.marko", 0); + $si__input_section && _scope($scope0_id, {}, "__tests__/tags/sections.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop/__snapshots__/html.bundle.js index 8022f83e8b1..f01abb0662e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-dynamic-tag-in-loop/__snapshots__/html.bundle.js @@ -8,13 +8,13 @@ var sections_default = _template("b", (input) => { if (content) { const $scope2_id = _scope_id(); _dynamic_tag($scope2_id, "a", content, {}, 0, 0, $sg__input_section); - $si__input_section && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + $si__input_section && _scope($scope2_id, { _: _scope_with_id($scope1_id) }); return 0; } }, $scope1_id, "a", $sg__input_section, $sg__input_section, $sg__input_section); - $si__input_section && writeScope($scope1_id, { d: content }); + $si__input_section && _scope($scope1_id, { d: content }); }, 0, $scope0_id, "a", $sg__input_section, $sg__input_section, $sg__input_section); - $si__input_section && writeScope($scope0_id, {}); + $si__input_section && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-event-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-event-handler/__snapshots__/html.bundle.debug.js index 40c540c7d82..746073143df 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-event-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-event-handler/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let clicks = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_clicks#2"); - writeScope($scope0_id, { clicks }, "__tests__/template.marko", 0, { clicks: "1:6" }); + _scope($scope0_id, { clicks }, "__tests__/template.marko", 0, { clicks: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-event-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-event-handler/__snapshots__/html.bundle.js index fc3670ca1ce..fbebe29efb7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-event-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-event-handler/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let clicks = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: clicks }); + _scope($scope0_id, { c: clicks }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/html.bundle.debug.js index 2ca2189be0b..49489ac9383 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/html.bundle.debug.js @@ -8,12 +8,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _html("Hi"); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:6"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:6"); return 0; } }, $scope0_id, "#tbody/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/html.bundle.js index 65e4f4c6491..c491c050605 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/html.bundle.js @@ -7,6 +7,6 @@ var template_default = _template("a", (input) => { _if(() => {}, $scope0_id, "a", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: show }); + _scope($scope0_id, { c: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-array-pattern/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/const-array-pattern/__snapshots__/html.bundle.debug.js index b0130312f47..6e655bc74d5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-array-pattern/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-array-pattern/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/2", first, $sg__input_list)}|${_text_resume($scope0_id, "#text/3", second, $sg__input_list * 2)}|${_text_resume($scope0_id, "#text/4", others.join(","), $sg__input_list * 2)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "2:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-array-pattern/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/const-array-pattern/__snapshots__/html.bundle.js index cae742abfad..57d680647a5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-array-pattern/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-array-pattern/__snapshots__/html.bundle.js @@ -7,6 +7,6 @@ var template_default = _template("a", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "c", first, $sg__input_list)}|${_text_resume($scope0_id, "d", second, $sg__input_list * 2)}|${_text_resume($scope0_id, "e", others.join(","), $sg__input_list * 2)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { n }); + _scope($scope0_id, { n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-async-method-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/const-async-method-handler/__snapshots__/html.bundle.debug.js index b1794bb059e..34c240ca5fc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-async-method-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-async-method-handler/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/handlers", $scope0_id) }; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_handlers_load#4"); - writeScope($scope0_id, { handlers_load: handlers.load }, "__tests__/template.marko", 0, { handlers_load: ["handlers.load", "4:8"] }); + _scope($scope0_id, { handlers_load: handlers.load }, "__tests__/template.marko", 0, { handlers_load: ["handlers.load", "4:8"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-async-method-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/const-async-method-handler/__snapshots__/html.bundle.js index 361b3512ba7..2f075ff60be 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-async-method-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-async-method-handler/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { e: handlers.load }); + _scope($scope0_id, { e: handlers.load }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-defaulted-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/const-defaulted-input/__snapshots__/html.bundle.debug.js index 1725c6255e0..95eff618e2f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-defaulted-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-defaulted-input/__snapshots__/html.bundle.debug.js @@ -15,5 +15,5 @@ var template_default = _template("__tests__/template.marko", (input) => { size: 3 }; _html(`
    ${_text_resume($scope0_id, "#text/0", nullish.label, $sg__input_opts)}/${_text_resume($scope0_id, "#text/1", nullish.size, $sg__input_opts * 2)} ${_text_resume($scope0_id, "#text/2", falsy.label, $sg__input_opts * 2)}/${_text_resume($scope0_id, "#text/3", falsy.size, $sg__input_opts * 2)} ${_text_resume($scope0_id, "#text/4", guarded?.label, $sg__input_opts * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-defaulted-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/const-defaulted-input/__snapshots__/html.bundle.js index f4a17025d39..53f522a432d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-defaulted-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-defaulted-input/__snapshots__/html.bundle.js @@ -15,5 +15,5 @@ var template_default = _template("a", (input) => { size: 3 }; _html(`
    ${_text_resume($scope0_id, "a", nullish.label, $sg__input_opts)}/${_text_resume($scope0_id, "b", nullish.size, $sg__input_opts * 2)} ${_text_resume($scope0_id, "c", falsy.label, $sg__input_opts * 2)}/${_text_resume($scope0_id, "d", falsy.size, $sg__input_opts * 2)} ${_text_resume($scope0_id, "e", guarded?.label, $sg__input_opts * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-logical-nullable-member/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/const-logical-nullable-member/__snapshots__/html.bundle.debug.js index 2bea9d7b737..8acb7da4bf3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-logical-nullable-member/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-logical-nullable-member/__snapshots__/html.bundle.debug.js @@ -9,6 +9,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const viaAndAssign = box.inner &&= { label: "andassign" }; _html(`
    • ${_text_resume($scope0_id, "#text/0", viaAnd.label ?? "none")}
    • ${_text_resume($scope0_id, "#text/1", viaTernary.label ?? "none")}
    • ${_text_resume($scope0_id, "#text/2", viaAndAssign.label ?? "none")}
    ${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { on }, "__tests__/template.marko", 0, { on: "3:6" }); + _scope($scope0_id, { on }, "__tests__/template.marko", 0, { on: "3:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-logical-nullable-member/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/const-logical-nullable-member/__snapshots__/html.bundle.js index bd9354b2aee..4d88855be7a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-logical-nullable-member/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-logical-nullable-member/__snapshots__/html.bundle.js @@ -9,6 +9,6 @@ var template_default = _template("a", (input) => { const viaAndAssign = box.inner &&= { label: "andassign" }; _html(`
    • ${_text_resume($scope0_id, "a", viaAnd.label ?? "none")}
    • ${_text_resume($scope0_id, "b", viaTernary.label ?? "none")}
    • ${_text_resume($scope0_id, "c", viaAndAssign.label ?? "none")}
    ${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: on }); + _scope($scope0_id, { e: on }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-tag-forward-call/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/const-tag-forward-call/__snapshots__/html.bundle.debug.js index 16a17d6522a..5a2a2223c5f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-tag-forward-call/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-tag-forward-call/__snapshots__/html.bundle.debug.js @@ -23,7 +23,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const defaulted = _resume((a, b = "def") => a + ":" + b, "__tests__/template.marko_0/defaulted"); _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}
    ${_text_resume($scope0_id, "#text/4", result)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { first, second, viaAlias, diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-tag-forward-call/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/const-tag-forward-call/__snapshots__/html.bundle.js index 25e12070df3..8a54e5e3786 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-tag-forward-call/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-tag-forward-call/__snapshots__/html.bundle.js @@ -22,7 +22,7 @@ var template_default = _template("a", (input) => { const defaulted = _resume((a, b = "def") => a + ":" + b, "a7"); _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}
    ${_text_resume($scope0_id, "e", result)}
    `); _script($scope0_id, "a9"); - writeScope($scope0_id, { + _scope($scope0_id, { g: first, h: second, i: viaAlias, diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-tag-hoist-error/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/const-tag-hoist-error/__snapshots__/html.bundle.debug.js index 743275a7f1f..e5cbe3ce540 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-tag-hoist-error/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-tag-hoist-error/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const x = 1; const y = 1; _html(`
    ${_escape(x)}
    ${_escape($y_getter)}`); - writeScope($scope0_id, { y }, "__tests__/template.marko", 0, { y: "3:10" }); + _scope($scope0_id, { y }, "__tests__/template.marko", 0, { y: "3:10" }); _assert_hoist(y); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/html.bundle.debug.js index c50a1258694..42ea149a1ca 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const x = 1; const y = _resume(() => 1, "__tests__/template.marko_0/y"); _html(`
    ${_escape(x)}${_escape(y())}
    ${_escape(typeof $y_getter)}`); - writeScope($scope0_id, { y }, "__tests__/template.marko", 0, { y: "3:10" }); + _scope($scope0_id, { y }, "__tests__/template.marko", 0, { y: "3:10" }); _assert_hoist(y); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/html.bundle.js index 0e8b802fc03..fc22381d9d4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/const-tag/__snapshots__/html.bundle.js @@ -6,5 +6,5 @@ var template_default = _template("a", (input) => { const x = 1; const y = _resume(() => 1, "a0"); _html(`
    ${_escape(x)}${_escape(y())}
    ${_escape(typeof $y_getter)}`); - writeScope($scope0_id, { e: y }); + _scope($scope0_id, { e: y }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/content-attr-meta/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/content-attr-meta/__snapshots__/html.bundle.debug.js index 483588d61f8..6168c665b9c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/content-attr-meta/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/content-attr-meta/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let height = 630; _html(`${_el_resume($scope0_id, "#meta/0")}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/content-attr-meta/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/content-attr-meta/__snapshots__/html.bundle.js index aeaf1d021ac..9427f1fd457 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/content-attr-meta/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/content-attr-meta/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/content-params-array-defaults/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/content-params-array-defaults/__snapshots__/html.bundle.debug.js index c6a6779a993..f481f191f0a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/content-params-array-defaults/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/content-params-array-defaults/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); const a = void 0 !== $a ? $a : 1; _html(`
    ${_text_resume($scope1_id, "#text/0", a, _serialize_guard($scope1_reason, 1))}|${_text_resume($scope1_id, "#text/1", b, _serialize_guard($scope1_reason, 2) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }; let n = 2; _html(`${_el_resume($scope0_id, "#button/0")}`); @@ -18,7 +18,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope2 = _peek_scope_id(); Wrap.content([n, 10]); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, "#childScope/1": _existing_scope($childScope), "#childScope/2": _existing_scope($childScope2) diff --git a/packages/runtime-tags/src/__tests__/fixtures/content-params-array-defaults/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/content-params-array-defaults/__snapshots__/html.bundle.js index 6205cc4d5e8..2cabf537040 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/content-params-array-defaults/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/content-params-array-defaults/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "a", void 0 !== $a ? $a : 1, _serialize_guard($scope1_reason, 1))}|${_text_resume($scope1_id, "b", b, _serialize_guard($scope1_reason, 2) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; let n = 2; _html(`${_el_resume($scope0_id, "a")}`); @@ -17,7 +17,7 @@ var template_default = _template("a", (input) => { const $childScope2 = _peek_scope_id(); Wrap.content([n, 10]); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: n, b: _existing_scope($childScope), c: _existing_scope($childScope2) diff --git a/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/html.bundle.debug.js index 6721e439a27..9190eebb5da 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var inner_default = _template("__tests__/tags/inner.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/inner.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/inner.marko", 0); }); // tags/outer.marko @@ -17,10 +17,10 @@ var outer_default = _template("__tests__/tags/outer.marko", (input) => { _html(`${_el_resume($scope1_id, "#button/0")}`); _dynamic_tag($scope1_id, "#text/1", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _script($scope1_id, "__tests__/tags/outer.marko_1"); - _subscribe($si__input_content && $input_content__closures, writeScope($scope1_id, { _: $si__input_content && _scope_with_id($scope0_id) }, "__tests__/tags/outer.marko", "1:2")); + _subscribe($si__input_content && $input_content__closures, _scope($scope1_id, { _: $si__input_content && _scope_with_id($scope0_id) }, "__tests__/tags/outer.marko", "1:2")); _resume_branch($scope1_id); }, $scope0_id) }); - $si__input_content && writeScope($scope0_id, { "ClosureScopes:input_content": $input_content__closures }, "__tests__/tags/outer.marko", 0); + $si__input_content && _scope($scope0_id, { "ClosureScopes:input_content": $input_content__closures }, "__tests__/tags/outer.marko", 0); }); // template.marko @@ -33,12 +33,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", count)}`); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); _resume_branch($scope1_id); }, $scope0_id) }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/template.marko", 0, { count: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/html.bundle.js index 8ecb5e0285b..bbdd4370d00 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/content-with-state/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var inner_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/outer.marko @@ -17,10 +17,10 @@ var outer_default = _template("c", (input) => { _html(`${_el_resume($scope1_id, "a")}`); _dynamic_tag($scope1_id, "b", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _script($scope1_id, "c0"); - _subscribe($si__input_content && $input_content__closures, writeScope($scope1_id, { _: $si__input_content && _scope_with_id($scope0_id) })); + _subscribe($si__input_content && $input_content__closures, _scope($scope1_id, { _: $si__input_content && _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - $si__input_content && writeScope($scope0_id, { e: $input_content__closures }); + $si__input_content && _scope($scope0_id, { e: $input_content__closures }); }); // template.marko @@ -33,12 +33,12 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "a", count)}`); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: count, d: $count__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checkbox-value-binding/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checkbox-value-binding/__snapshots__/html.bundle.debug.js index a9bcf395b08..635f8d96816 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checkbox-value-binding/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checkbox-value-binding/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var template_default = _template("__tests__/template.marko", (input) => { h = _new_h; }, "__tests__/template.marko_0/valueChange2", $scope0_id))}${_attr("type", input.hiddenType)}>${_el_resume($scope0_id, "#input/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["valueChange"], "ControlledHandler:#input/1": ["valueChange"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/html.bundle.debug.js index e8ef738b94f..06c2de91141 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/html.bundle.debug.js @@ -14,7 +14,7 @@ var template_default = _template("__tests__/template.marko", (input) => { checked = _new_checked; }, "__tests__/template.marko_1/checkedChange", $scope1_id))} type=checkbox>${_el_resume($scope1_id, "#input/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { "#LoopKey": i, "TagVariableChange:checked": _resume(function(value) { if (i === undefined) { @@ -31,6 +31,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); }, 0, $scope0_id, "#text/0", 1, 1, 1, 0, 1); _html(`
    ${_text_resume($scope0_id, "#text/1", states.join(","))}
    `); - writeScope($scope0_id, { states }, "__tests__/template.marko", 0, { states: "1:6" }); + _scope($scope0_id, { states }, "__tests__/template.marko", 0, { states: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/html.bundle.js index 546aa036724..1a19666ebf9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-many/__snapshots__/html.bundle.js @@ -14,7 +14,7 @@ var template_default = _template("a", (input) => { checked = _new_checked; }, "a1", $scope1_id))} type=checkbox>${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a2"); - writeScope($scope1_id, { + _scope($scope1_id, { M: i, h: _resume(function(value) { if (i === void 0) throw new Error("LoopKey is undefined"); @@ -25,6 +25,6 @@ var template_default = _template("a", (input) => { }); }, 0, $scope0_id, "a", 1, 1, 1, 0, 1); _html(`
    ${_text_resume($scope0_id, "b", states.join(","))}
    `); - writeScope($scope0_id, { c: states }); + _scope($scope0_id, { c: states }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/html.bundle.debug.js index e6389ba5cb5..25446220380 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var checkbox_default = _template("__tests__/tags/checkbox.marko", (input) => { ...input }, "#input/0", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/tags/checkbox.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/checkbox.marko", 0, { + _scope($scope0_id, {}, "__tests__/tags/checkbox.marko", 0, { "ControlledHandler:#input/0": ["...input", "1:27"], "EventAttributes:#input/0": ["...input", "1:27"] }); @@ -26,6 +26,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/checkedChange", $scope0_id) }); _html(`${_text_resume($scope0_id, "#text/1", String(checked))}`); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/html.bundle.js index f04c426999c..984f0719a39 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-spread/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var checkbox_default = _template("b", (input) => { ...input }, "a", $scope0_id, "input")}>${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -23,6 +23,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`${_text_resume($scope0_id, "b", String(checked))}`); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty-spread/__snapshots__/html.bundle.debug.js index b076538d556..b4516bec3f0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty-spread/__snapshots__/html.bundle.debug.js @@ -12,7 +12,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "#input/1", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/1")}${_text_resume($scope0_id, "#text/2", v === undefined ? "undefined" : "value=" + v)}`); _script($scope0_id, "__tests__/template.marko_0_v#3_rest#4"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { v, rest }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty-spread/__snapshots__/html.bundle.js index 1399c2f8444..3da7cf2505b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty-spread/__snapshots__/html.bundle.js @@ -12,7 +12,7 @@ var template_default = _template("a", (input) => { }, "b", $scope0_id, "input")}>${_el_resume($scope0_id, "b")}${_text_resume($scope0_id, "c", "value=")}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: v, e: rest }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty/__snapshots__/html.bundle.debug.js index f060dbdef68..88c13fbc1ed 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { selected = _new_selected; }, "__tests__/template.marko_0/checkedValueChange", $scope0_id), "")} type=checkbox>${_el_resume($scope0_id, "#input/0")}${_text_resume($scope0_id, "#text/1", selected === undefined ? "undefined" : selected === null ? "null" : "value=" + selected)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["checkedValueChange"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["checkedValueChange"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty/__snapshots__/html.bundle.js index 30ac8cc10b8..572fc4cba79 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-empty/__snapshots__/html.bundle.js @@ -7,6 +7,6 @@ var template_default = _template("a", (input) => { selected = _new_selected; }, "a0", $scope0_id), "")} type=checkbox>${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", selected === void 0 ? "undefined" : selected === null ? "null" : "value=" + selected)}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/html.bundle.debug.js index 6895f8f067b..3293c84c5ba 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { checked = v.map((it) => Number(it)); }, "__tests__/template.marko_0/checkedValueChange3", $scope0_id), 2)} type=checkbox>${_el_resume($scope0_id, "#input/2")}${_text_resume($scope0_id, "#text/3", checked)}${_el_resume($scope0_id, "#button/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["checkedValueChange", "3:53"], "ControlledHandler:#input/1": ["checkedValueChange", "4:55"], "ControlledHandler:#input/2": ["checkedValueChange", "5:53"] diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/html.bundle.js index f00cc4b6879..12c64bf08b0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-multiple-number/__snapshots__/html.bundle.js @@ -11,6 +11,6 @@ var template_default = _template("a", (input) => { checked = v.map((it) => Number(it)); }, "a2", $scope0_id), 2)} type=checkbox>${_el_resume($scope0_id, "c")}${_text_resume($scope0_id, "d", checked)}${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a3"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/html.bundle.debug.js index 2b19d7db5e2..7f720eb3595 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { checked = +v; }, "__tests__/template.marko_0/checkedValueChange3", $scope0_id), 2)} type=radio>${_el_resume($scope0_id, "#input/2")}${_text_resume($scope0_id, "#text/3", checked)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["checkedValueChange", "3:53"], "ControlledHandler:#input/1": ["checkedValueChange", "4:52"], "ControlledHandler:#input/2": ["checkedValueChange", "5:50"] diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/html.bundle.js index d551aa77037..4123c564769 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-number/__snapshots__/html.bundle.js @@ -11,6 +11,6 @@ var template_default = _template("a", (input) => { checked = +v; }, "a2", $scope0_id), 2)} type=radio>${_el_resume($scope0_id, "c")}${_text_resume($scope0_id, "d", checked)}`); _script($scope0_id, "a3"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-rejected/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-rejected/__snapshots__/html.bundle.debug.js index afd88620076..9f24da8b152 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-rejected/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-rejected/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let picked = "a"; _html(`${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#input/1")}${_escape(picked)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["checkedValueChange", "2:63"], "ControlledHandler:#input/1": ["checkedValueChange", "3:63"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-rejected/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-rejected/__snapshots__/html.bundle.js index dfd91a16cbb..c6a4baa46de 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-rejected/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-rejected/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let picked = "a"; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_escape(picked)}`); _script($scope0_id, "a2"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/html.bundle.debug.js index 802f064c298..258852b609b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var radio_default = _template("__tests__/tags/radio.marko", (input) => { ...input }, "#input/0", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/tags/radio.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/radio.marko", 0, { + _scope($scope0_id, {}, "__tests__/tags/radio.marko", 0, { "ControlledHandler:#input/0": ["...input", "1:24"], "EventAttributes:#input/0": ["...input", "1:24"] }); @@ -40,7 +40,7 @@ var template_default = _template("__tests__/template.marko", (input) => { value: "c" }); _html(`${_text_resume($scope0_id, "#text/3", checkedValue)}`); - writeScope($scope0_id, { + _scope($scope0_id, { $checkedValueChange, "#childScope/0": _existing_scope($childScope), "#childScope/1": _existing_scope($childScope2), diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/html.bundle.js index 498f87e266e..51e7622dbd6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value-spread/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var radio_default = _template("b", (input) => { ...input }, "a", $scope0_id, "input")}>${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -37,7 +37,7 @@ var template_default = _template("a", (input) => { value: "c" }); _html(`${_text_resume($scope0_id, "d", checkedValue)}`); - writeScope($scope0_id, { + _scope($scope0_id, { f: $checkedValueChange, a: _existing_scope($childScope), b: _existing_scope($childScope2), diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/html.bundle.debug.js index e5b3831c9a5..e2d981d8aa2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/checkedValueChange2", $scope0_id); _html(`${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#input/1")}${_el_resume($scope0_id, "#input/2")}${_text_resume($scope0_id, "#text/3", checkedValue)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { $checkedValueChange }, "__tests__/template.marko", 0, { + _scope($scope0_id, { $checkedValueChange }, "__tests__/template.marko", 0, { $checkedValueChange: 0, "ControlledHandler:#input/0": ["checkedValueChange"], "ControlledHandler:#input/1": ["checkedValueChange"], diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/html.bundle.js index 2c2231203f9..e1306e63443 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-value/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id); _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}${_text_resume($scope0_id, "d", checkedValue)}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { f: $checkedValueChange }); + _scope($scope0_id, { f: $checkedValueChange }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/html.bundle.debug.js index 55ce92f3d04..f35aaa9c4b3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var checkbox_default = _template("__tests__/tags/checkbox.marko", (input) => { ...input }, "#input/0", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/tags/checkbox.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/checkbox.marko", 0, { + _scope($scope0_id, {}, "__tests__/tags/checkbox.marko", 0, { "ControlledHandler:#input/0": ["...input", "1:27"], "EventAttributes:#input/0": ["...input", "1:27"] }); @@ -40,7 +40,7 @@ var template_default = _template("__tests__/template.marko", (input) => { value: "c" }); _html(`${_text_resume($scope0_id, "#text/3", checkedValue)}`); - writeScope($scope0_id, { + _scope($scope0_id, { $checkedValueChange, "#childScope/0": _existing_scope($childScope), "#childScope/1": _existing_scope($childScope2), diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/html.bundle.js index c069d3f765d..3e60adf9497 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values-spread/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var checkbox_default = _template("b", (input) => { ...input }, "a", $scope0_id, "input")}>${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -37,7 +37,7 @@ var template_default = _template("a", (input) => { value: "c" }); _html(`${_text_resume($scope0_id, "d", checkedValue)}`); - writeScope($scope0_id, { + _scope($scope0_id, { f: $checkedValueChange, a: _existing_scope($childScope), b: _existing_scope($childScope2), diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/html.bundle.debug.js index db354cfb90c..eb50e82f6ea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/checkedValueChange2", $scope0_id); _html(`${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#input/1")}${_el_resume($scope0_id, "#input/2")}${_text_resume($scope0_id, "#text/3", checkedValue)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { $checkedValueChange }, "__tests__/template.marko", 0, { + _scope($scope0_id, { $checkedValueChange }, "__tests__/template.marko", 0, { $checkedValueChange: 0, "ControlledHandler:#input/0": ["checkedValueChange"], "ControlledHandler:#input/1": ["checkedValueChange"], diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/html.bundle.js index c41a07b036a..af6d9db14ed 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked-values/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id); _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}${_text_resume($scope0_id, "d", checkedValue)}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { f: $checkedValueChange }); + _scope($scope0_id, { f: $checkedValueChange }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/html.bundle.debug.js index b98824de6c6..dde59e47f0b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { checked = _new_checked; }, "__tests__/template.marko_0/checkedChange", $scope0_id))} type=checkbox>${_el_resume($scope0_id, "#input/0")}${_text_resume($scope0_id, "#text/1", String(checked))}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["checkedChange"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["checkedChange"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/html.bundle.js index 6272a504c9c..30aa4c93561 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-checked/__snapshots__/html.bundle.js @@ -7,6 +7,6 @@ var template_default = _template("a", (input) => { checked = _new_checked; }, "a0", $scope0_id))} type=checkbox>${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", String(checked))}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open-spread/__snapshots__/html.bundle.debug.js index 85346cf34eb..03aa8b26c62 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open-spread/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var my_details_default = _template("__tests__/tags/my-details.marko", (input) => const $scope0_id = _scope_id(); _html(`s${_el_resume($scope0_id, "#details/0")}`); _script($scope0_id, "__tests__/tags/my-details.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/my-details.marko", 0, { + _scope($scope0_id, {}, "__tests__/tags/my-details.marko", 0, { "ControlledHandler:#details/0": ["...input", "1:13"], "EventAttributes:#details/0": ["...input", "1:13"] }); @@ -23,6 +23,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/openChange", $scope0_id) }); _html(`${_text_resume($scope0_id, "#text/1", String(open))}`); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open-spread/__snapshots__/html.bundle.js index 7b5cb0e179a..325c5df0214 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open-spread/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var my_details_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`s${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -20,6 +20,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`${_text_resume($scope0_id, "b", String(open))}`); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.debug.js index 95c0f01dd0c..e446f305850 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/dom.bundle.debug.js @@ -2,10 +2,10 @@ const $template = "
    "; const $walks = " bD l"; const $open = /*@__PURE__*/ _let("open/2", ($scope) => { - _attr_details_or_dialog_open($scope, "#details/0", $scope.open, $openChange($scope)); + _attr_details_open($scope, "#details/0", $scope.open, $openChange($scope)); _text($scope["#text/1"], String($scope.open)); }); -const $setup__script = _script("__tests__/template.marko_0", ($scope) => _attr_details_or_dialog_open_script($scope, "#details/0")); +const $setup__script = _script("__tests__/template.marko_0", ($scope) => _attr_details_open_script($scope, "#details/0")); function $setup($scope) { $open($scope, false); $setup__script($scope); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/html.bundle.debug.js index 88fcf089079..a1e4442fd98 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/html.bundle.debug.js @@ -3,10 +3,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); let open = false; - _html(` { + _html(` { open = _new_open; }, "__tests__/template.marko_0/openChange", $scope0_id))}>${_el_resume($scope0_id, "#details/0")}${_text_resume($scope0_id, "#text/1", String(open))}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#details/0": ["openChange"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#details/0": ["openChange"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/html.bundle.js index 8d77222ebfe..889d05247eb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-open/__snapshots__/html.bundle.js @@ -3,10 +3,10 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope0_id = _scope_id(); let open = false; - _html(` { + _html(` { open = _new_open; }, "a0", $scope0_id))}>${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", String(open))}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-spread-rerender/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-spread-rerender/__snapshots__/html.bundle.debug.js index 451f3d6a7f1..dfdb435b97a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-spread-rerender/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-spread-rerender/__snapshots__/html.bundle.debug.js @@ -14,7 +14,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}sbody${_el_resume($scope0_id, "#details/1")}${_text_resume($scope0_id, "#text/2", open ? "open" : "closed")}/${_text_resume($scope0_id, "#text/3", n, 2)}`); _script($scope0_id, "__tests__/template.marko_0_attrs#7"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { open, n }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-spread-rerender/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-spread-rerender/__snapshots__/html.bundle.js index 2e998bb4dc9..47050565aa4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-details-spread-rerender/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-details-spread-rerender/__snapshots__/html.bundle.js @@ -14,7 +14,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}sbody${_el_resume($scope0_id, "b")}${_text_resume($scope0_id, "c", open ? "open" : "closed")}/${_text_resume($scope0_id, "d", n, 2)}`); _script($scope0_id, "a1"); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { e: open, f: n }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open-spread/__snapshots__/html.bundle.debug.js index 9d625fe0104..c147db954fc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open-spread/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var my_dialog_default = _template("__tests__/tags/my-dialog.marko", (input) => { _attrs_content(input, "#dialog/0", $scope0_id, "dialog"); _html(`${_el_resume($scope0_id, "#dialog/0")}`); _script($scope0_id, "__tests__/tags/my-dialog.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/my-dialog.marko", 0, { + _scope($scope0_id, {}, "__tests__/tags/my-dialog.marko", 0, { "ControlledHandler:#dialog/0": ["...input", "1:12"], "EventAttributes:#dialog/0": ["...input", "1:12"] }); @@ -25,6 +25,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/openChange", $scope0_id) }); _html(`${_text_resume($scope0_id, "#text/1", String(open))}`); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open-spread/__snapshots__/html.bundle.js index eb2b22dc0fc..3ee36dc2b9a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open-spread/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var my_dialog_default = _template("b", (input) => { _attrs_content(input, "a", $scope0_id, "dialog"); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -22,6 +22,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`${_text_resume($scope0_id, "b", String(open))}`); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.debug.js index 1a832147933..9d4cbf3ddc6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/dom.bundle.debug.js @@ -2,10 +2,10 @@ const $template = " "; const $walks = " bD l"; const $open = /*@__PURE__*/ _let("open/2", ($scope) => { - _attr_details_or_dialog_open($scope, "#dialog/0", $scope.open, $openChange($scope)); + _attr_dialog_open($scope, "#dialog/0", $scope.open, $openChange($scope)); _text($scope["#text/1"], String($scope.open)); }); -const $setup__script = _script("__tests__/template.marko_0", ($scope) => _attr_details_or_dialog_open_script($scope, "#dialog/0")); +const $setup__script = _script("__tests__/template.marko_0", ($scope) => _attr_dialog_open_script($scope, "#dialog/0")); function $setup($scope) { $open($scope, true); $setup__script($scope); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/html.bundle.debug.js index 76b48260fa2..6048c2e7168 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/html.bundle.debug.js @@ -3,10 +3,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); let open = true; - _html(` { + _html(` { open = _new_open; }, "__tests__/template.marko_0/openChange", $scope0_id))}>${_el_resume($scope0_id, "#dialog/0")}${_text_resume($scope0_id, "#text/1", String(open))}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#dialog/0": ["openChange"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#dialog/0": ["openChange"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/html.bundle.js index 3adb0db4f53..7257f8b751a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dialog-open/__snapshots__/html.bundle.js @@ -3,10 +3,10 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope0_id = _scope_id(); let open = true; - _html(` { + _html(` { open = _new_open; }, "a0", $scope0_id))}>${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", String(open))}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/html.bundle.debug.js index a06de585146..f44996a419d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/html.bundle.debug.js @@ -13,13 +13,13 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#input/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "5:2", { "ControlledHandler:#input/0": ["checkedValueChange"] }); + _scope($scope1_id, {}, "__tests__/template.marko", "5:2", { "ControlledHandler:#input/0": ["checkedValueChange"] }); return 0; } }, $scope0_id, "#text/1", 1, 1, 1, 0, 1); _html(`${_el_resume($scope0_id, "#input/2")}${_text_resume($scope0_id, "#text/3", checkedValue)}${_el_resume($scope0_id, "#button/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, checkedValue, $checkedValueChange diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/html.bundle.js index 3d592d7ddd1..b4c34316f34 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-checkbox-checked-value/__snapshots__/html.bundle.js @@ -13,13 +13,13 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a1"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b", 1, 1, 1, 0, 1); _html(`${_el_resume($scope0_id, "c")}${_text_resume($scope0_id, "d", checkedValue)}${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { f: show, g: checkedValue, h: $checkedValueChange diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-details-textarea/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-details-textarea/__snapshots__/html.bundle.debug.js index e6703bf7122..45d4eb1c6d7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-details-textarea/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-details-textarea/__snapshots__/html.bundle.debug.js @@ -22,11 +22,11 @@ var template_default = _template("__tests__/template.marko", (input) => { text = next; }, "__tests__/template.marko_1/valueChange", $scope1_id) }); - _subscribe($text__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); + _subscribe($text__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); _resume_branch($scope1_id); }, $scope0_id)); _html(`${_text_resume($scope0_id, "#text/1", open ? "open" : "closed")}/${_text_resume($scope0_id, "#text/2", text, 2)}`); - writeScope($scope0_id, { + _scope($scope0_id, { text, detailsTag, textareaTag, diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-details-textarea/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-details-textarea/__snapshots__/html.bundle.js index 21e51217c34..0aaaf47eae1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-details-textarea/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-details-textarea/__snapshots__/html.bundle.js @@ -22,11 +22,11 @@ var template_default = _template("a", (input) => { text = next; }, "a1", $scope1_id) }); - _subscribe($text__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($text__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id)); _html(`${_text_resume($scope0_id, "b", open ? "open" : "closed")}/${_text_resume($scope0_id, "c", text, 2)}`); - writeScope($scope0_id, { + _scope($scope0_id, { e: text, f: detailsTag, h: textareaTag, diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-only-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-only-spread/__snapshots__/html.bundle.debug.js index 37fd2f04c54..b7c8ac74b0d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-only-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-only-spread/__snapshots__/html.bundle.debug.js @@ -15,6 +15,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`ABC`); }, $scope0_id)); _html(`${_text_resume($scope0_id, "#text/1", value)}`); - writeScope($scope0_id, { tag }, "__tests__/template.marko", 0, { tag: "2:8" }); + _scope($scope0_id, { tag }, "__tests__/template.marko", 0, { tag: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-only-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-only-spread/__snapshots__/html.bundle.js index 8238062e06f..04b865e1f82 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-only-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-only-spread/__snapshots__/html.bundle.js @@ -15,6 +15,6 @@ var template_default = _template("a", (input) => { _html(`ABC`); }, $scope0_id)); _html(`${_text_resume($scope0_id, "b", value)}`); - writeScope($scope0_id, { d: tag }); + _scope($scope0_id, { d: tag }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-uncontrolled-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-uncontrolled-value/__snapshots__/html.bundle.debug.js index c849dfee2dd..9a139949c47 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-uncontrolled-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-uncontrolled-value/__snapshots__/html.bundle.debug.js @@ -11,6 +11,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id)); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { tag }, "__tests__/template.marko", 0, { tag: "1:8" }); + _scope($scope0_id, { tag }, "__tests__/template.marko", 0, { tag: "1:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-uncontrolled-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-uncontrolled-value/__snapshots__/html.bundle.js index 9b6fdbbce2b..8c87021748b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-uncontrolled-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-dynamic-tag-uncontrolled-value/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { }, $scope0_id)); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { c: tag }); + _scope($scope0_id, { c: tag }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/html.bundle.debug.js index 9cbb2ad79f2..e2af6388761 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var custom_input_default = _template("__tests__/tags/custom-input.marko", (input input.valueChange(parseInt($next)); }, "__tests__/tags/custom-input.marko_0/valueChange", $scope0_id))} type=number>${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/tags/custom-input.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_value: _serialize_if($scope0_reason, 0) && input.value, input_valueChange: input.valueChange }, "__tests__/tags/custom-input.marko", 0, { @@ -29,6 +29,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/valueChange", $scope0_id) }); _html(`${_text_resume($scope0_id, "#text/1", value)} ${_text_resume($scope0_id, "#text/2", typeof value, 2)}`); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/html.bundle.js index 0c5540d889f..8b3bcd137ea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-member-modifier-value/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var custom_input_default = _template("b", (input) => { input.valueChange(parseInt($next)); }, "b0", $scope0_id))} type=number>${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: _serialize_if($scope0_reason, 0) && input.value, e: input.valueChange }); @@ -25,6 +25,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`${_text_resume($scope0_id, "b", value)} ${_text_resume($scope0_id, "c", typeof value, 2)}`); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-destructured/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-destructured/__snapshots__/html.bundle.debug.js index 784e4c7e055..adac21382b4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-destructured/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-destructured/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var my_input_default = _template("__tests__/tags/my-input.marko", (input) => { $countChange(num($next)); }, "__tests__/tags/my-input.marko_0/valueChange", $scope0_id))} type=number>${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/tags/my-input.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { $countChange, count: _serialize_if($scope0_reason, 0) && count }, "__tests__/tags/my-input.marko", 0, { @@ -33,6 +33,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/countChange", $scope0_id) }); _html(`${_text_resume($scope0_id, "#text/1", value)} ${_text_resume($scope0_id, "#text/2", typeof value, 2)}`); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-destructured/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-destructured/__snapshots__/html.bundle.js index b6ebddc2121..35143d678ec 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-destructured/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-destructured/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var my_input_default = _template("b", (input) => { $countChange(num($next)); }, "b0", $scope0_id))} type=number>${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: $countChange, e: _serialize_if($scope0_reason, 0) && count }); @@ -29,6 +29,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`${_text_resume($scope0_id, "b", value)} ${_text_resume($scope0_id, "c", typeof value, 2)}`); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/html.bundle.debug.js index 06fa2202ecf..9b9b5e4cfac 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { value = parseInt(_new_value); }, "__tests__/template.marko_0/valueChange", $scope0_id))} type=number>${_el_resume($scope0_id, "#input/0")}${_text_resume($scope0_id, "#text/1", value)} ${_text_resume($scope0_id, "#text/2", typeof value, 2)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["valueChange"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["valueChange"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/html.bundle.js index 1c295501850..bd49839112a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-number-modifier-value/__snapshots__/html.bundle.js @@ -7,6 +7,6 @@ var template_default = _template("a", (input) => { value = parseInt(_new_value); }, "a0", $scope0_id))} type=number>${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", value)} ${_text_resume($scope0_id, "c", typeof value, 2)}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/html.bundle.debug.js index 0de202c8fe7..f116dd0b690 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var my_input_default = _template("__tests__/tags/my-input.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/tags/my-input.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/my-input.marko", 0, { + _scope($scope0_id, {}, "__tests__/tags/my-input.marko", 0, { "ControlledHandler:#input/0": ["...input", "1:11"], "EventAttributes:#input/0": ["...input", "1:11"] }); @@ -24,6 +24,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/valueChange", $scope0_id) }); _html(`${_text_resume($scope0_id, "#text/1", value)}`); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/html.bundle.js index fb9b9e1deeb..5516df3ff67 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-spread/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var my_input_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -21,6 +21,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`${_text_resume($scope0_id, "b", value)}`); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-void/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-void/__snapshots__/html.bundle.debug.js index cfc3963a1c9..57603d0f194 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-void/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-void/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let v = undefined; _html(`${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-void/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-void/__snapshots__/html.bundle.js index 88742b33b2f..cf3718b7e35 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-void/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value-void/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/html.bundle.debug.js index 6886992598a..f90c5670c81 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { value = _new_value; }, "__tests__/template.marko_0/valueChange", $scope0_id))} type=text>${_el_resume($scope0_id, "#input/0")}${_text_resume($scope0_id, "#text/1", value)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["valueChange"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["valueChange"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/html.bundle.js index 79f48a703ee..e22f8c0c017 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-input-value/__snapshots__/html.bundle.js @@ -7,6 +7,6 @@ var template_default = _template("a", (input) => { value = _new_value; }, "a0", $scope0_id))} type=text>${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", value)}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-merged-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-merged-spread/__snapshots__/html.bundle.debug.js index 1948e35cd47..6af6e3e5135 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-merged-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-merged-spread/__snapshots__/html.bundle.debug.js @@ -14,7 +14,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "#input/1", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/1")}${_text_resume($scope0_id, "#text/2", v)}`); _script($scope0_id, "__tests__/template.marko_0_v#3_rest#4"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { v, rest }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-merged-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-merged-spread/__snapshots__/html.bundle.js index 567d4bb1fd4..60a3d09fcbf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-merged-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-merged-spread/__snapshots__/html.bundle.js @@ -14,7 +14,7 @@ var template_default = _template("a", (input) => { }, "b", $scope0_id, "input")}>${_el_resume($scope0_id, "b")}${_text_resume($scope0_id, "c", v)}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: v, e: rest }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread-update/__snapshots__/html.bundle.debug.js index 4d3d8ddd88f..d5a216f5390 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread-update/__snapshots__/html.bundle.debug.js @@ -12,7 +12,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "#input/1", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/1")}
    ${_text_resume($scope0_id, "#text/2", v)}
    `); _script($scope0_id, "__tests__/template.marko_0_rest#4"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { rest }, "__tests__/template.marko", 0, { + _scope($scope0_id, { rest }, "__tests__/template.marko", 0, { rest: "2:6", "ControlledHandler:#input/1": ["valueChange"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread-update/__snapshots__/html.bundle.js index 19aa95dd638..ecff02a9d39 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread-update/__snapshots__/html.bundle.js @@ -12,6 +12,6 @@ var template_default = _template("a", (input) => { }, "b", $scope0_id, "input")}>${_el_resume($scope0_id, "b")}
    ${_text_resume($scope0_id, "c", v)}
    `); _script($scope0_id, "a1"); _script($scope0_id, "a2"); - writeScope($scope0_id, { e: rest }); + _scope($scope0_id, { e: rest }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread/__snapshots__/html.bundle.debug.js index 6bf8b32fe95..638a206ec66 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread/__snapshots__/html.bundle.debug.js @@ -19,7 +19,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope0_id, "__tests__/template.marko_0_rest#5"); _script($scope0_id, "__tests__/template.marko_0_v#4_rest#5"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { v, rest }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread/__snapshots__/html.bundle.js index 732d6f03ce8..aca032449f8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-partial-spread/__snapshots__/html.bundle.js @@ -19,7 +19,7 @@ var template_default = _template("a", (input) => { _script($scope0_id, "a1"); _script($scope0_id, "a2"); _script($scope0_id, "a3"); - writeScope($scope0_id, { + _scope($scope0_id, { e: v, f: rest }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-radio-checkedvalue-form-reset/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-radio-checkedvalue-form-reset/__snapshots__/html.bundle.debug.js index 244c9c34eb5..ae6a68f5492 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-radio-checkedvalue-form-reset/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-radio-checkedvalue-form-reset/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/checkedValueChange2", $scope0_id); _html(`
    ${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#input/1")}${_el_resume($scope0_id, "#input/2")}v=${_text_resume($scope0_id, "#text/3", checkedValue, 2)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { $checkedValueChange }, "__tests__/template.marko", 0, { + _scope($scope0_id, { $checkedValueChange }, "__tests__/template.marko", 0, { $checkedValueChange: 0, "ControlledHandler:#input/0": ["checkedValueChange"], "ControlledHandler:#input/1": ["checkedValueChange"], diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-radio-checkedvalue-form-reset/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-radio-checkedvalue-form-reset/__snapshots__/html.bundle.js index cd009eac646..034b58a95ee 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-radio-checkedvalue-form-reset/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-radio-checkedvalue-form-reset/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id); _html(`
    ${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}v=${_text_resume($scope0_id, "d", checkedValue, 2)}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { f: $checkedValueChange }); + _scope($scope0_id, { f: $checkedValueChange }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/html.bundle.debug.js index 03be20de3da..176c25577d1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/html.bundle.debug.js @@ -14,13 +14,13 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); _html(`A${_el_resume($scope1_id, "#option/0")}B${_el_resume($scope1_id, "#option/1")}C${_el_resume($scope1_id, "#option/2")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:4", { + _scope($scope1_id, {}, "__tests__/template.marko", "3:4", { "EventAttributes:#option/0": ["...{ value:\"a\" }", "4:14"], "EventAttributes:#option/1": ["...{ value:\"b\" }", "5:14"], "EventAttributes:#option/2": ["...{ value:\"c\" }", "6:14"] }); }, $scope0_id)); _html(`${_text_resume($scope0_id, "#text/1", value)}`); - writeScope($scope0_id, { tag }, "__tests__/template.marko", 0, { tag: "2:8" }); + _scope($scope0_id, { tag }, "__tests__/template.marko", 0, { tag: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/html.bundle.js index a61cacda558..a7387cdc8f5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-dynamic-spread/__snapshots__/html.bundle.js @@ -14,9 +14,9 @@ var template_default = _template("a", (input) => { _scope_reason(); _html(`A${_el_resume($scope1_id, "a")}B${_el_resume($scope1_id, "b")}C${_el_resume($scope1_id, "c")}`); _script($scope1_id, "a2"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, $scope0_id)); _html(`${_text_resume($scope0_id, "b", value)}`); - writeScope($scope0_id, { d: tag }); + _scope($scope0_id, { d: tag }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-empty-value-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-empty-value-spread/__snapshots__/html.bundle.debug.js index 74dff0aa044..7d9928b58fc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-empty-value-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-empty-value-spread/__snapshots__/html.bundle.debug.js @@ -12,7 +12,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#select/0")}${_text_resume($scope0_id, "#text/2", value === undefined ? "undefined" : "value=" + value)}`); _script($scope0_id, "__tests__/template.marko_0_placeholder#4"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "3:21"], "EventAttributes:#option/1": ["...placeholder", "4:14"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-empty-value-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-empty-value-spread/__snapshots__/html.bundle.js index 13f8c115040..19064934f82 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-empty-value-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-empty-value-spread/__snapshots__/html.bundle.js @@ -12,6 +12,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "c", value === void 0 ? "undefined" : "value=" + value)}`); _script($scope0_id, "a1"); _script($scope0_id, "a2"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-late-options/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-late-options/__snapshots__/html.bundle.debug.js index 1dc54ce8d1b..e1493c93de5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-late-options/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-late-options/__snapshots__/html.bundle.debug.js @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#select/0")}
    ${_text_resume($scope0_id, "#text/2", v)}:${_text_resume($scope0_id, "#text/3", calls, 2)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { v, calls }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-late-options/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-late-options/__snapshots__/html.bundle.js index 7392d28a8b0..2acb371a8d3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-late-options/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-late-options/__snapshots__/html.bundle.js @@ -24,7 +24,7 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "c", v)}:${_text_resume($scope0_id, "d", calls, 2)}
    `); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: v, f: calls }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-reordered/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-reordered/__snapshots__/html.bundle.debug.js index 89d8f2dacd1..a9c5743ef21 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-reordered/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-reordered/__snapshots__/html.bundle.debug.js @@ -15,12 +15,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(options, (opt) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", opt)}${_el_resume($scope1_id, "#option/0")}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:4"); }, (v) => v, $scope0_id, "#select/0", 1, 1, 1, "", 1); }); _html(`sel:${_text_resume($scope0_id, "#text/1", selected.join(","), 2)}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { options }, "__tests__/template.marko", 0, { + _scope($scope0_id, { options }, "__tests__/template.marko", 0, { options: "1:6", "ControlledHandler:#select/0": ["valueChange", "3:33"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-reordered/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-reordered/__snapshots__/html.bundle.js index 788cfba1e31..6c24492fdde 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-reordered/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-reordered/__snapshots__/html.bundle.js @@ -15,11 +15,11 @@ var template_default = _template("a", (input) => { _for_of(options, (opt) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", opt)}${_el_resume($scope1_id, "a")}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, (v) => v, $scope0_id, "a", 1, 1, 1, "", 1); }); _html(`sel:${_text_resume($scope0_id, "b", selected.join(","), 2)}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: options }); + _scope($scope0_id, { d: options }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/html.bundle.debug.js index b97f564b46b..1089265c0e9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#select/0")}${_text_resume($scope0_id, "#text/1", selected)}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "3:33"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "3:33"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/html.bundle.js index 47eafc38957..e9a0d5e30f9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-multiple-value-number/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", selected)}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/html.bundle.debug.js index 9cb2e9a97b2..0c761605e3d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/html.bundle.debug.js @@ -16,12 +16,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(options, (opt) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", opt)}${_el_resume($scope1_id, "#option/0")}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "5:6"); + _scope($scope1_id, {}, "__tests__/template.marko", "5:6"); }, (v) => v, $scope0_id, "#select/0", 1, 1, 1, "", 1); }); _html(`
    ${_text_resume($scope0_id, "#text/1", value)}
    ${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { options }, "__tests__/template.marko", 0, { + _scope($scope0_id, { options }, "__tests__/template.marko", 0, { options: "1:6", "ControlledHandler:#select/0": ["valueChange"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/html.bundle.js index 9e06dbccb21..97fbcc90d2f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-mutated-option/__snapshots__/html.bundle.js @@ -16,11 +16,11 @@ var template_default = _template("a", (input) => { _for_of(options, (opt) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", opt)}${_el_resume($scope1_id, "a")}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, (v) => v, $scope0_id, "a", 1, 1, 1, "", 1); }); _html(`
    ${_text_resume($scope0_id, "b", value)}
    ${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { e: options }); + _scope($scope0_id, { e: options }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-no-match/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-no-match/__snapshots__/html.bundle.debug.js index e124b61cce8..147c67252fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-no-match/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-no-match/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#select/0")}${_text_resume($scope0_id, "#text/1", value)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "2:21"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "2:21"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/html.bundle.debug.js index 85d53a55c90..4712b8cb7d1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var my_select_default = _template("__tests__/tags/my-select.marko", (input) => { }, 1); _html(_el_resume($scope0_id, "#select/0")); _script($scope0_id, "__tests__/tags/my-select.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/my-select.marko", 0, { + _scope($scope0_id, {}, "__tests__/tags/my-select.marko", 0, { "ControlledHandler:#select/0": ["...input", "1:12"], "EventAttributes:#select/0": ["...input", "1:12"] }); @@ -34,6 +34,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id) }); _html(`${_text_resume($scope0_id, "#text/1", value)}`); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/html.bundle.js index 55a88592708..78332109377 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-spread/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var my_select_default = _template("b", (input) => { }, 1); _html(_el_resume($scope0_id, "a")); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -31,6 +31,6 @@ var template_default = _template("a", (input) => { }, $scope0_id) }); _html(`${_text_resume($scope0_id, "b", value)}`); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-bigint/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-bigint/__snapshots__/html.bundle.debug.js index 8813339c810..7f37d75f528 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-bigint/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-bigint/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(_el_resume($scope0_id, "#select/0")); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "2:21"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "2:21"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-bigint/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-bigint/__snapshots__/html.bundle.js index 778e3385394..c83de550bd9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-bigint/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-bigint/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { }); _html(_el_resume($scope0_id, "a")); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-nan/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-nan/__snapshots__/html.bundle.debug.js index 750a1f4fe19..9b2bea71bbc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-nan/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-nan/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(_el_resume($scope0_id, "#select/0")); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "2:21"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "2:21"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-nan/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-nan/__snapshots__/html.bundle.js index ff6143a89b5..cd490e0d028 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-nan/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-nan/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { }); _html(_el_resume($scope0_id, "a")); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/html.bundle.debug.js index 7d1717eec50..74afbfe46d1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#select/0")}${_text_resume($scope0_id, "#text/1", selected)}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "3:24"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "3:24"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/html.bundle.js index 9465ab622dd..9f7b6104e37 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select-value-number/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", selected)}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/html.bundle.debug.js index fe5550c5ca6..f2e39ee7196 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#select/0")}${_text_resume($scope0_id, "#text/1", value)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "2:21"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange", "2:21"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/html.bundle.js index 37fb5d1491d..864cb26188f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-select/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", value)}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/html.bundle.debug.js index 2434ffa324a..94c1e803019 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var my_textarea_default = _template("__tests__/tags/my-textarea.marko", (input) const $textarea_input = input; _html(`${_attr_textarea_value($scope0_id, "#textarea/0", $textarea_input.value, $textarea_input.valueChange, 1)}${_el_resume($scope0_id, "#textarea/0")}`); _script($scope0_id, "__tests__/tags/my-textarea.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/my-textarea.marko", 0, { + _scope($scope0_id, {}, "__tests__/tags/my-textarea.marko", 0, { "ControlledHandler:#textarea/0": ["...input", "1:14"], "EventAttributes:#textarea/0": ["...input", "1:14"] }); @@ -24,6 +24,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/valueChange", $scope0_id) }); _html(`${_text_resume($scope0_id, "#text/1", value)}`); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/html.bundle.js index 79084688158..c36f09d97e9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value-spread/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var my_textarea_default = _template("b", (input) => { const $textarea_input = input; _html(`${_attr_textarea_value($scope0_id, "a", $textarea_input.value, $textarea_input.valueChange, 1)}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -21,6 +21,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`${_text_resume($scope0_id, "b", value)}`); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.debug.js index 8746405985f..6626722e9f8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/dom.bundle.debug.js @@ -2,10 +2,10 @@ const $template = " "; const $walks = " bD l"; const $value = /*@__PURE__*/ _let("value/2", ($scope) => { - _attr_input_value($scope, "#textarea/0", $scope.value, $valueChange($scope)); + _attr_textarea_value($scope, "#textarea/0", $scope.value, $valueChange($scope)); _text($scope["#text/1"], $scope.value); }); -const $setup__script = _script("__tests__/template.marko_0", ($scope) => _attr_input_value_script($scope, "#textarea/0")); +const $setup__script = _script("__tests__/template.marko_0", ($scope) => _attr_textarea_value_script($scope, "#textarea/0")); function $setup($scope) { $value($scope, "hello"); $setup__script($scope); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/html.bundle.debug.js index e0bc29d7413..448b38ba92c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { value = _new_value; }, "__tests__/template.marko_0/valueChange", $scope0_id))}${_el_resume($scope0_id, "#textarea/0")}${_text_resume($scope0_id, "#text/1", value)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#textarea/0": ["valueChange"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#textarea/0": ["valueChange"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/html.bundle.js index b0873fe6ada..8bb66ec213c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-textarea-value/__snapshots__/html.bundle.js @@ -7,6 +7,6 @@ var template_default = _template("a", (input) => { value = _new_value; }, "a0", $scope0_id))}${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", value)}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-value-refinement-mixed/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-value-refinement-mixed/__snapshots__/html.bundle.debug.js index 299998abc99..bb3c64baa75 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-value-refinement-mixed/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-value-refinement-mixed/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/valueChange4", $scope0_id); _html(`${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#input/1")}${_el_resume($scope0_id, "#input/2")}${_el_resume($scope0_id, "#input/3")}
    ${_text_resume($scope0_id, "#text/4", typeof value)} ${_text_resume($scope0_id, "#text/5", value, 2)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { $valueChange2, $valueChange }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/controllable-value-refinement-mixed/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controllable-value-refinement-mixed/__snapshots__/html.bundle.js index 84ddfe050f0..e15a9f737e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controllable-value-refinement-mixed/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controllable-value-refinement-mixed/__snapshots__/html.bundle.js @@ -11,7 +11,7 @@ var template_default = _template("a", (input) => { }, "a1", $scope0_id); _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}
    ${_text_resume($scope0_id, "e", typeof value)} ${_text_resume($scope0_id, "f", value, 2)}
    `); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { h: $valueChange2, j: $valueChange }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controlled-select-undefined-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/controlled-select-undefined-value/__snapshots__/html.bundle.debug.js index 427522e4698..4416c56cf1a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controlled-select-undefined-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controlled-select-undefined-value/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(``); }); _html(_el_resume($scope0_id, "#select/0", _serialize_guard($scope0_reason, 0))); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/controlled-select-undefined-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/controlled-select-undefined-value/__snapshots__/html.bundle.js index 5e2c2afb3cc..496e208958e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/controlled-select-undefined-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/controlled-select-undefined-value/__snapshots__/html.bundle.js @@ -6,5 +6,5 @@ var template_default = _template("a", (input) => { _html(``); }); _html(_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/html.bundle.debug.js index 084502d9181..ae3b3b4074f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let b = 0; _html(`
    ${_el_resume($scope0_id, "#button/0")} + ${_el_resume($scope0_id, "#button/2")} = ${_text_resume($scope0_id, "#text/4", a + b, 2)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { a, b }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/html.bundle.js index a92cc217d07..5039483bd25 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { let b = 0; _html(`
    ${_el_resume($scope0_id, "a")} + ${_el_resume($scope0_id, "c")} = ${_text_resume($scope0_id, "e", 0, 2)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: a, g: b }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-from/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-from/__snapshots__/html.bundle.debug.js index e307c0e1041..e45e7ac585f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-from/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-from/__snapshots__/html.bundle.debug.js @@ -6,9 +6,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_to(input.to, input.from, input.step, (n) => { const $scope1_id = _scope_id(); _html(`${_escape(n)}, `); - $si__input_from__OR__input_to__OR__input_step && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + $si__input_from__OR__input_to__OR__input_step && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); }, 0, $scope0_id, "#div/0", $sg__input_from__OR__input_to__OR__input_step, $sg__input_from__OR__input_to__OR__input_step, $sg__input_from__OR__input_to__OR__input_step, ""); - $si__input_from__OR__input_to__OR__input_step && writeScope($scope0_id, { + $si__input_from__OR__input_to__OR__input_step && _scope($scope0_id, { input_from: _serialize_if($scope0_reason, 2) && input.from, input_to: _serialize_if($scope0_reason, 1) && input.to, input_step: _serialize_if($scope0_reason, 0) && input.step diff --git a/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-from/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-from/__snapshots__/html.bundle.js index 9f4aad3b695..2a9780c5dea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-from/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-from/__snapshots__/html.bundle.js @@ -6,9 +6,9 @@ var template_default = _template("a", (input) => { _for_to(input.to, input.from, input.step, (n) => { const $scope1_id = _scope_id(); _html(`${_escape(n)}, `); - $si__input_from__OR__input_to__OR__input_step && writeScope($scope1_id, {}); + $si__input_from__OR__input_to__OR__input_step && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_from__OR__input_to__OR__input_step, $sg__input_from__OR__input_to__OR__input_step, $sg__input_from__OR__input_to__OR__input_step, ""); - $si__input_from__OR__input_to__OR__input_step && writeScope($scope0_id, { + $si__input_from__OR__input_to__OR__input_step && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && input.from, e: _serialize_if($scope0_reason, 1) && input.to, f: _serialize_if($scope0_reason, 0) && input.step diff --git a/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-in/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-in/__snapshots__/html.bundle.debug.js index e64f803beb4..049b90d5f11 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-in/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-in/__snapshots__/html.bundle.debug.js @@ -6,13 +6,13 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_in(input.children, (key, text) => { const $scope1_id = _scope_id(); _html(`

    ${_escape(key)}: ${_text_resume($scope1_id, "#text/1", text, $sg__input_children * 2)}

    `); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); }, 0, $scope0_id, "#text/0", $sg__input_children, $sg__input_children, $sg__input_children, 0, 1); _for_in(input.children, (key) => { const $scope2_id = _scope_id(); _html(`

    ${_escape(key)}

    `); - $si__input_children && writeScope($scope2_id, {}, "__tests__/template.marko", "5:4"); + $si__input_children && _scope($scope2_id, {}, "__tests__/template.marko", "5:4"); }, 0, $scope0_id, "#text/1", $sg__input_children, $sg__input_children, $sg__input_children, 0, 1); _html(""); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-in/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-in/__snapshots__/html.bundle.js index 9be9baa8a19..fc9dd9319b2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-in/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/create-and-clear-rows-loop-in/__snapshots__/html.bundle.js @@ -6,13 +6,13 @@ var template_default = _template("a", (input) => { _for_in(input.children, (key, text) => { const $scope1_id = _scope_id(); _html(`

    ${_escape(key)}: ${_text_resume($scope1_id, "b", text, $sg__input_children * 2)}

    `); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, 0, 1); _for_in(input.children, (key) => { const $scope2_id = _scope_id(); _html(`

    ${_escape(key)}

    `); - $si__input_children && writeScope($scope2_id, {}); + $si__input_children && _scope($scope2_id, {}); }, 0, $scope0_id, "b", $sg__input_children, $sg__input_children, $sg__input_children, 0, 1); _html(""); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/html.bundle.debug.js index cc834dbcf37..a967fdf6f40 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var my_let_default = _template("__tests__/tags/my-let.marko", (input) => { const $scope0_id = _scope_id(); let value = input.value; const $return = value; - writeScope($scope0_id, { "#TagVariableChange": _resume((_new_value) => { + _scope($scope0_id, { "#TagVariableChange": _resume((_new_value) => { value = _new_value; }, "__tests__/tags/my-let.marko_0/valueChange", $scope0_id) || void 0 }, "__tests__/tags/my-let.marko", 0); _resume_branch($scope0_id); @@ -16,7 +16,7 @@ var my_tag_default = _template("__tests__/tags/my-tag.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/my-tag.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/my-tag.marko", 0); }); // template.marko @@ -32,10 +32,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:1")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:1")); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { count, "#childScope/0": _existing_scope($childScope), "ClosureScopes:count": $count__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/html.bundle.js index 8a34151403a..31bf658932f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/cross-tag-closure/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var my_let_default = _template("b", (input) => { const $scope0_id = _scope_id(); let value = input.value; const $return = value; - writeScope($scope0_id, { U: _resume((_new_value) => { + _scope($scope0_id, { U: _resume((_new_value) => { value = _new_value; }, "b0", $scope0_id) || void 0 }); _resume_branch($scope0_id); @@ -16,7 +16,7 @@ var my_tag_default = _template("c", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -32,10 +32,10 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a1"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { d: count, a: _existing_scope($childScope), e: $count__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-runtime-id/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-runtime-id/__snapshots__/html.bundle.debug.js index a4dbcd65883..4aa0ddc53e4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-runtime-id/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-runtime-id/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let clickCount = 0; _html(`
    ${_el_resume($scope0_id, "#button/0")}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); + _scope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-runtime-id/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-runtime-id/__snapshots__/html.bundle.js index 5815fdf7762..13bf97709a0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-runtime-id/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-runtime-id/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let clickCount = 0; _html(`
    ${_el_resume($scope0_id, "a")}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: clickCount }); + _scope($scope0_id, { c: clickCount }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-content-for-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-content-for-closure/__snapshots__/html.bundle.debug.js index 80357a68283..786bd1fd75a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-content-for-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-content-for-closure/__snapshots__/html.bundle.debug.js @@ -12,16 +12,16 @@ var menu_default = _template("__tests__/tags/menu.marko", (input) => { if (input.content) { const $scope2_id = _scope_id(); _dynamic_tag($scope2_id, "#text/0", input.content, {}, 0, 0, $sg__input_content); - _subscribe($si__input_content && $input_content__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/menu.marko", "6:4")); + _subscribe($si__input_content && $input_content__closures, _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/menu.marko", "6:4")); return 0; } }, $scope1_id, "#text/0", $sg__input_content, $sg__input_content, $sg__input_content); - writeScope($scope1_id, {}, "__tests__/tags/menu.marko", "5:2"); + _scope($scope1_id, {}, "__tests__/tags/menu.marko", "5:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/tags/menu.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_content: input.content, open, "ClosureScopes:input_content": $si__input_content && $input_content__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-content-for-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-content-for-closure/__snapshots__/html.bundle.js index 949e025b816..df4dc481322 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-content-for-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-content-for-closure/__snapshots__/html.bundle.js @@ -12,16 +12,16 @@ var menu_default = _template("b", (input) => { if (input.content) { const $scope2_id = _scope_id(); _dynamic_tag($scope2_id, "a", input.content, {}, 0, 0, $sg__input_content); - _subscribe($si__input_content && $input_content__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })); + _subscribe($si__input_content && $input_content__closures, _scope($scope2_id, { _: _scope_with_id($scope1_id) })); return 0; } }, $scope1_id, "a", $sg__input_content, $sg__input_content, $sg__input_content); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c"); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: input.content, g: open, h: $si__input_content && $input_content__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-default-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-default-value/__snapshots__/html.bundle.debug.js index 29b862fe2cc..81e8ba2dc05 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-default-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-default-value/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); const value = input.value; _html(`${_text_resume($scope0_id, "#text/0", value, _serialize_guard($scope0_reason, 0) * 2)} `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-default-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-default-value/__snapshots__/html.bundle.js index 10ec69a0dfe..ecb5bad180b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-default-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-default-value/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); const value = input.value; _html(`${_text_resume($scope0_id, "a", value, _serialize_guard($scope0_reason, 0) * 2)} `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-empty-setup/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-empty-setup/__snapshots__/html.bundle.debug.js index 8059069c912..864fe9f545d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-empty-setup/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-empty-setup/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var cell_default = _template("__tests__/tags/cell/index.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/cell/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/cell/index.marko", 0); }); // tags/row/index.marko @@ -18,7 +18,7 @@ var row_default = _template("__tests__/tags/row/index.marko", (input) => { const $childScope2 = _peek_scope_id(); cell_default({ value: input.quantity }); _html(""); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _serialize_if($scope0_reason, 1) && _existing_scope($childScope), "#childScope/1": _serialize_if($scope0_reason, 2) && _existing_scope($childScope2) }, "__tests__/tags/row/index.marko", 0); @@ -37,7 +37,7 @@ var template_default = _template("__tests__/template.marko", (input) => { quantity }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { quantity, "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0, { quantity: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-empty-setup/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-empty-setup/__snapshots__/html.bundle.js index 433d06cec2b..e372b760c7a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-empty-setup/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-empty-setup/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var cell_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/row/index.marko @@ -18,7 +18,7 @@ var row_default = _template("c", (input) => { const $childScope2 = _peek_scope_id(); cell_default({ value: input.quantity }); _html(""); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _serialize_if($scope0_reason, 1) && _existing_scope($childScope), b: _serialize_if($scope0_reason, 2) && _existing_scope($childScope2) }); @@ -37,7 +37,7 @@ var template_default = _template("a", (input) => { quantity }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: quantity, b: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-lazy-read/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-lazy-read/__snapshots__/html.bundle.debug.js index b80252405f8..40102e4f483 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-lazy-read/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-lazy-read/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var press_button_default = _template("__tests__/tags/press-button/index.marko", const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/press-button/index.marko_0_input_onPress#3"); - writeScope($scope0_id, { input_onPress: input.onPress }, "__tests__/tags/press-button/index.marko", 0, { input_onPress: ["input.onPress"] }); + _scope($scope0_id, { input_onPress: input.onPress }, "__tests__/tags/press-button/index.marko", 0, { input_onPress: ["input.onPress"] }); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/onPress", $scope0_id) }); _html(`
    ${_text_resume($scope0_id, "#text/2", log)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, log }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-lazy-read/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-lazy-read/__snapshots__/html.bundle.js index fb9e1bd9d65..eb7e8b05cd9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-lazy-read/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-lazy-read/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var press_button_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { d: input.onPress }); + _scope($scope0_id, { d: input.onPress }); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`
    ${_text_resume($scope0_id, "c", log)}
    `); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: count, e: log }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-observed-read/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-observed-read/__snapshots__/html.bundle.debug.js index 8f44eea2aca..b29355e3de8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-observed-read/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-observed-read/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var show_result_default = _template("__tests__/tags/show-result/index.marko", (i const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.get(), _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/show-result/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/show-result/index.marko", 0); }); // template.marko @@ -18,7 +18,7 @@ var template_default = _template("__tests__/template.marko", (input) => { return count; } }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0, { count: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-observed-read/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-observed-read/__snapshots__/html.bundle.js index 7834ea49d23..c456c49d6e1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-observed-read/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-observed-read/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var show_result_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.get(), _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -18,7 +18,7 @@ var template_default = _template("a", (input) => { return count; } }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: count, b: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/html.bundle.debug.js index 6f2c028e52f..b92910b4ba1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag.marko", (input) => _html(`${_el_resume($scope0_id, "#button/0")}`); _dynamic_tag($scope0_id, "#text/3", input.content, [x, y], 0, 1); _script($scope0_id, "__tests__/tags/custom-tag.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_content: input.content, x, y @@ -27,6 +27,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(`
    Counts: ${_text_resume($scope1_id, "#text/0", count, _serialize_guard($scope1_reason, 1) * 2)},${_text_resume($scope1_id, "#text/1", count2, _serialize_guard($scope1_reason, 2) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/html.bundle.js index 92b7b7ca67a..83e518f41b7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-args/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var custom_tag_default = _template("b", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _dynamic_tag($scope0_id, "d", input.content, [x, y], 0, 1); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { g: input.content, h: x, i: y @@ -22,6 +22,6 @@ var template_default = _template("a", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(`
    Counts: ${_text_resume($scope1_id, "a", count, _serialize_guard($scope1_reason, 1) * 2)},${_text_resume($scope1_id, "b", count2, _serialize_guard($scope1_reason, 2) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, _scope_id()) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/html.bundle.debug.js index 259389ba965..9cbedf80cc0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag.marko", (input) => name: input.name }); _script($scope0_id, "__tests__/tags/custom-tag.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_content: input.content, input_name: input.name, x @@ -31,7 +31,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(`
    Count (${_text_resume($scope1_id, "#text/0", name, _serialize_guard($scope1_reason, 2) * 2)}): ${_text_resume($scope1_id, "#text/1", count, _serialize_guard($scope1_reason, 1) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/html.bundle.js index ce31c1cbf34..690486f757c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-attributes/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var custom_tag_default = _template("b", (input) => { name: input.name }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: input.content, g: input.name, h: x @@ -26,7 +26,7 @@ var template_default = _template("a", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(`
    Count (${_text_resume($scope1_id, "a", name, _serialize_guard($scope1_reason, 2) * 2)}): ${_text_resume($scope1_id, "b", count, _serialize_guard($scope1_reason, 1) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, _scope_id()) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/html.bundle.debug.js index 892be6b1822..ef445b37eff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag.marko", (input) => _html(`${_el_resume($scope0_id, "#button/0")}`); _dynamic_tag($scope0_id, "#text/2", input.content, [x], 0, 1); _script($scope0_id, "__tests__/tags/custom-tag.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_content: input.content, x }, "__tests__/tags/custom-tag.marko", 0, { @@ -24,6 +24,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(`
    Count: ${_text_resume($scope1_id, "#text/0", count, _serialize_guard($scope1_reason, 0) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/html.bundle.js index b6e941bdc4e..2a1165aa275 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var custom_tag_default = _template("b", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _dynamic_tag($scope0_id, "c", input.content, [x], 0, 1); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: input.content, g: x }); @@ -20,6 +20,6 @@ var template_default = _template("a", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(`
    Count: ${_text_resume($scope1_id, "a", count, _serialize_guard($scope1_reason, 0) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, _scope_id()) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-render-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-render-body/__snapshots__/html.bundle.debug.js index 8373ee5cffa..c5fc4f24549 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-render-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-render-body/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child/index.marko", (input) => { const { name, content } = input; _html(_text_resume($scope0_id, "#text/0", name, _serialize_guard($scope0_reason, 1) * 2)); _dynamic_tag($scope0_id, "#text/1", content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child/index.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-render-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-render-body/__snapshots__/html.bundle.js index 23cc6b133f3..3c622c069db 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-render-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-render-body/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { const { name, content } = input; _html(_text_resume($scope0_id, "a", name, _serialize_guard($scope0_reason, 1) * 2)); _dynamic_tag($scope0_id, "b", content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-template/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-template/__snapshots__/html.bundle.debug.js index a153dccf4af..8f3966900ef 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-template/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-template/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var hello_default = _template("__tests__/hello.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`Hello ${_text_resume($scope0_id, "#text/0", input.name, _serialize_guard($scope0_reason, 0) * 2)}!`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/hello.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/hello.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-template/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-template/__snapshots__/html.bundle.js index e0ff6ae0043..8e1ac767b93 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-template/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-template/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var hello_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`Hello ${_text_resume($scope0_id, "a", input.name, _serialize_guard($scope0_reason, 0) * 2)}!`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/html.bundle.debug.js index d4aa4b7bd78..a008d2d81ba 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var counter_default = _template("__tests__/tags/counter.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); const $return = x; _script($scope0_id, "__tests__/tags/counter.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, "#TagVariableChange": _resume((_new_x) => { x = _new_x; @@ -25,7 +25,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/template.marko_0_count#5/var"); _html(`${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { count: "1:10" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/html.bundle.js index ae1aab7772d..b109957b46b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var counter_default = _template("b", (input) => { _html(`${_el_resume($scope0_id, "a")}`); const $return = x; _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: x, U: _resume((_new_x) => { x = _new_x; @@ -25,7 +25,7 @@ var template_default = _template("a", (input) => { _var($scope0_id, "b", $childScope, "a0"); _html(`${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { f: count, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-destructured/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-destructured/__snapshots__/html.bundle.debug.js index e208213a3e7..cae7a23958b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-destructured/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-destructured/__snapshots__/html.bundle.debug.js @@ -13,7 +13,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { }, "__tests__/tags/child.marko_0/_return2", $scope0_id) }; _html(`child:${_text_resume($scope0_id, "#text/0", count, 2)}`); - writeScope($scope0_id, { count }, "__tests__/tags/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/tags/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); return $return; }); @@ -29,7 +29,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}
    ${_text_resume($scope0_id, "#text/4", count)}:${_text_resume($scope0_id, "#text/5", missing, 2)}
    `); _script($scope0_id, "__tests__/template.marko_0_count#7_$countChange#8"); _script($scope0_id, "__tests__/template.marko_0_inc#10"); - writeScope($scope0_id, { + _scope($scope0_id, { count, $countChange, inc, diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-destructured/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-destructured/__snapshots__/html.bundle.js index 3159ac1d854..a91ec51238c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-destructured/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-destructured/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var child_default = _template("b", (input) => { }, "b1", $scope0_id) }; _html(`child:${_text_resume($scope0_id, "a", count, 2)}`); - writeScope($scope0_id, { b: count }); + _scope($scope0_id, { b: count }); _resume_branch($scope0_id); return $return; }); @@ -29,7 +29,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}
    ${_text_resume($scope0_id, "e", count)}:${_text_resume($scope0_id, "f", missing, 2)}
    `); _script($scope0_id, "a1"); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { h: count, i: $countChange, k: inc, diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/html.bundle.debug.js index 60b22d33bb8..c0835e72935 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`
    ${_el_resume($scope0_id, "#div/1")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -17,8 +17,8 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _script($scope1_id, "__tests__/template.marko_1_setHtml#2"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2"); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { setHtml }, "__tests__/template.marko", 0, { setHtml: "1:8" }); + _scope($scope0_id, { setHtml }, "__tests__/template.marko", 0, { setHtml: "1:8" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/html.bundle.js index 0bd457202a1..0418da261ae 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-in-body/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`
    ${_el_resume($scope0_id, "b")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "b0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -13,11 +13,11 @@ var child_default = _template("b", (input) => { var template_default = _template("a", (input) => { _scope_reason(); const $scope0_id = _scope_id(); - writeScope($scope0_id, { c: child_default({ content: _content("a1", () => { + _scope($scope0_id, { c: child_default({ content: _content("a1", () => { _scope_reason(); const $scope1_id = _scope_id(); _script($scope1_id, "a0"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); _resume_branch($scope1_id); }, $scope0_id) }) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/html.bundle.debug.js index d33eb4edfb5..226a47a2a2c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); const $return = x + input.extra; _script($scope0_id, "__tests__/tags/child.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_extra: input.extra, x }, "__tests__/tags/child.marko", 0, { @@ -27,7 +27,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/template.marko_0_data#4/var"); const message = `${name} ${data}`; _html(`
    ${_text_resume($scope0_id, "#text/2", message)}
    `); - writeScope($scope0_id, { + _scope($scope0_id, { name, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { name: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/html.bundle.js index fed4b007cd8..a7048ba7397 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var child_default = _template("b", (input) => { _html(`${_el_resume($scope0_id, "a")}`); const $return = x + input.extra; _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: input.extra, f: x }); @@ -23,7 +23,7 @@ var template_default = _template("a", (input) => { let data = child_default({ extra: 1 }); _var($scope0_id, "b", $childScope, "a0"); _html(`
    ${_text_resume($scope0_id, "c", `${name} ${data}`)}
    `); - writeScope($scope0_id, { + _scope($scope0_id, { d: name, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/html.bundle.debug.js index bd7613d4588..e2b304224fa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); const $return = x; _script($scope0_id, "__tests__/tags/child.marko_0"); - writeScope($scope0_id, { x }, "__tests__/tags/child.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/tags/child.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); return $return; }); @@ -19,5 +19,5 @@ var template_default = _template("__tests__/template.marko", (input) => { let data = child_default({}); _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/template.marko_0_data#3/var"); _html(`
    ${_text_resume($scope0_id, "#text/2", data)}
    `); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/html.bundle.js index 030a64a0723..6c29e26ece0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var child_default = _template("b", (input) => { _html(`${_el_resume($scope0_id, "a")}`); const $return = x; _script($scope0_id, "b0"); - writeScope($scope0_id, { c: x }); + _scope($scope0_id, { c: x }); _resume_branch($scope0_id); return $return; }); @@ -19,5 +19,5 @@ var template_default = _template("a", (input) => { let data = child_default({}); _var($scope0_id, "b", $childScope, "a0"); _html(`
    ${_text_resume($scope0_id, "c", data)}
    `); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/html.bundle.debug.js index b11a7638bd5..4c1201b5e64 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let y = 0; debugger; _script($scope0_id, "__tests__/template.marko_0_x#0_y#1"); - writeScope($scope0_id, { + _scope($scope0_id, { x, y }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/html.bundle.js index 3acca79c136..878f574170e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/debug-tag/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { let y = 0; debugger; _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { a: x, b: y }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/html.bundle.debug.js index af259198646..9710aa17bd2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _attrs_content(input, "#div/0", $scope3_id, "div"); _html(`${_el_resume($scope3_id, "#div/0")}`); _script($scope3_id, "__tests__/template.marko_3_input#2"); - writeScope($scope3_id, {}, "__tests__/template.marko", "2:2", { "EventAttributes:#div/0": ["...input", "3:13"] }); + _scope($scope3_id, {}, "__tests__/template.marko", "2:2", { "EventAttributes:#div/0": ["...input", "3:13"] }); }, $scope0_id) }; Child.content({ content: _content("__tests__/template.marko_1*content", () => { _scope_reason(); @@ -19,12 +19,12 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); const { text } = value; _html(`${_escape(text)}`); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4"); } - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:2"); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { value, value_class: value?.class, text: value?.text diff --git a/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/html.bundle.js index b0c3ab47599..f2a768987d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/declared-alias-closure/__snapshots__/html.bundle.js @@ -10,14 +10,14 @@ var template_default = _template("a", (input) => { _attrs_content(input, "a", $scope3_id, "div"); _html(`${_el_resume($scope3_id, "a")}`); _script($scope3_id, "a1"); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }, $scope0_id) }).content({ content: _content("a2", () => { _scope_reason(); const $scope1_id = _scope_id(); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: value, c: void 0, d: void 0 diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-circular/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-circular/__snapshots__/html.bundle.debug.js index 9a08ca015c6..bf013e2c910 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-circular/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-circular/__snapshots__/html.bundle.debug.js @@ -14,12 +14,12 @@ var template_default = _template("__tests__/template.marko", (input) => { Foo.content({}); }, $scope2_id) }; Bar.content({}); - $si__show && writeScope($scope2_id, {}, "__tests__/template.marko", "2:4"); + $si__show && _scope($scope2_id, {}, "__tests__/template.marko", "2:4"); return 0; } }, $scope1_id, "#text/0", $sg__show, $sg__show, $sg__show); _html(" foo"); - $si__show && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + $si__show && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }; Foo.content({ show: true }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-circular/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-circular/__snapshots__/html.bundle.js index 635a41cc5ca..28ca6cd6c3b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-circular/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-circular/__snapshots__/html.bundle.js @@ -12,12 +12,12 @@ var template_default = _template("a", (input) => { _scope_reason(); Foo.content({}); }, $scope2_id) }).content({}); - $si__show && writeScope($scope2_id, {}); + $si__show && _scope($scope2_id, {}); return 0; } }, $scope1_id, "a", $sg__show, $sg__show, $sg__show); _html(" foo"); - $si__show && writeScope($scope1_id, {}); + $si__show && _scope($scope1_id, {}); }, _scope_id()) }; Foo.content({ show: true }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-content-conditional/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-content-conditional/__snapshots__/html.bundle.debug.js index 19a74d54a5b..13a209f7aa5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-content-conditional/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-content-conditional/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("
    "); _dynamic_tag($scope1_id, "#text/0", content, {}, 0, 0, _serialize_guard($scope1_reason, 0)); _html("
    "); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "2:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "2:2"); }, $scope0_id) }; _html(`${_el_resume($scope0_id, "#button/0")}`); _if(() => { @@ -20,11 +20,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope3_id = _scope_id(); _html("shown content"); }, $scope2_id) }); - writeScope($scope2_id, {}, "__tests__/template.marko", "6:2"); + _scope($scope2_id, {}, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-content-conditional/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-content-conditional/__snapshots__/html.bundle.js index ed3731ccc20..870bdf97f1c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-content-conditional/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-content-conditional/__snapshots__/html.bundle.js @@ -9,11 +9,11 @@ var template_default = _template("a", (input) => { _html("
    "); _dynamic_tag($scope1_id, "a", content, {}, 0, 0, _serialize_guard($scope1_reason, 0)); _html("
    "); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id); _html(`${_el_resume($scope0_id, "a")}`); _if(() => {}, $scope0_id, "b"); _script($scope0_id, "a2"); - writeScope($scope0_id, { c: show }); + _scope($scope0_id, { c: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/html.bundle.debug.js index eb64483ad35..89a17a7b54d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _html(``); _dynamic_tag($scope0_id, "#text/1", input.thing.content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); _html(`${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 1))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -26,7 +26,7 @@ var template_default = _template("__tests__/template.marko", (input) => { child_default({ thing: myThing }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { selected, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { selected: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/html.bundle.js index 9f116fcb044..0216a889d7e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-for-attribute-tag/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { _html(``); _dynamic_tag($scope0_id, "b", input.thing.content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 1))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -26,7 +26,7 @@ var template_default = _template("a", (input) => { child_default({ thing: myThing }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: selected, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/html.bundle.debug.js index 9b788e33829..15923a157d0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/html.bundle.debug.js @@ -9,6 +9,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }; _html(`
    ${_text_resume($scope0_id, "#text/0", JSON.stringify(myObj))}
    ${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/html.bundle.js index 538bab754b6..63ec34c736f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { bar: 2 }))}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: x }); + _scope($scope0_id, { d: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-known/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-known/__snapshots__/html.bundle.debug.js index 520ef4f9145..4de4fb857c5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-known/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-known/__snapshots__/html.bundle.debug.js @@ -14,7 +14,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }); const $childScope = _peek_scope_id(); Foo.content({ message: input.bar }); - $si__input_bar && writeScope($scope2_id, { + $si__input_bar && _scope($scope2_id, { _: _scope_with_id($scope1_id), "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "2:3"); @@ -22,11 +22,11 @@ var template_default = _template("__tests__/template.marko", (input) => { } else { const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "#text/0", JSON.stringify(input.message), _serialize_guard($scope1_reason, 2))); - _serialize_if($scope1_reason, 0) && writeScope($scope3_id, { _: _serialize_if($scope1_reason, 2) && _scope_with_id($scope1_id) }, "__tests__/template.marko", "4:3"); + _serialize_if($scope1_reason, 0) && _scope($scope3_id, { _: _serialize_if($scope1_reason, 2) && _scope_with_id($scope1_id) }, "__tests__/template.marko", "4:3"); return 1; } }, $scope1_id, "#text/0", _serialize_guard($scope1_reason, 0) || $sg__input_bar, $sg__input_bar, $sg__input_bar); - $si__input_bar && writeScope($scope1_id, { + $si__input_bar && _scope($scope1_id, { input_bar: input.bar, input_message: input.message }, "__tests__/template.marko", "1:1", { diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-known/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-known/__snapshots__/html.bundle.js index bb36a57899c..5a979b9d4cf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-known/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-known/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var template_default = _template("a", (input) => { }); const $childScope = _peek_scope_id(); Foo.content({ message: input.bar }); - $si__input_bar && writeScope($scope2_id, { + $si__input_bar && _scope($scope2_id, { _: _scope_with_id($scope1_id), a: _existing_scope($childScope) }); @@ -21,11 +21,11 @@ var template_default = _template("a", (input) => { } else { const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "a", JSON.stringify(input.message), _serialize_guard($scope1_reason, 2))); - _serialize_if($scope1_reason, 0) && writeScope($scope3_id, { _: _serialize_if($scope1_reason, 2) && _scope_with_id($scope1_id) }); + _serialize_if($scope1_reason, 0) && _scope($scope3_id, { _: _serialize_if($scope1_reason, 2) && _scope_with_id($scope1_id) }); return 1; } }, $scope1_id, "a", _serialize_guard($scope1_reason, 0) || $sg__input_bar, $sg__input_bar, $sg__input_bar); - $si__input_bar && writeScope($scope1_id, { + $si__input_bar && _scope($scope1_id, { d: input.bar, e: input.message }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-unknown/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-unknown/__snapshots__/html.bundle.debug.js index 82e73197436..00187dbdca1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-unknown/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-unknown/__snapshots__/html.bundle.debug.js @@ -9,16 +9,16 @@ var template_default = _template("__tests__/template.marko", (input) => { if (input.bar) { const $scope2_id = _scope_id(); _dynamic_tag($scope2_id, "#text/0", 0 || Foo, { message: input.bar }, 0, 0, $sg__input_bar); - $si__input_bar && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "2:3"); + $si__input_bar && _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "2:3"); return 0; } else { const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "#text/0", JSON.stringify(input.message), _serialize_guard($scope1_reason, 2))); - _serialize_if($scope1_reason, 0) && writeScope($scope3_id, { _: _serialize_if($scope1_reason, 2) && _scope_with_id($scope1_id) }, "__tests__/template.marko", "4:3"); + _serialize_if($scope1_reason, 0) && _scope($scope3_id, { _: _serialize_if($scope1_reason, 2) && _scope_with_id($scope1_id) }, "__tests__/template.marko", "4:3"); return 1; } }, $scope1_id, "#text/0", _serialize_guard($scope1_reason, 0) || $sg__input_bar, $sg__input_bar, $sg__input_bar); - $si__input_bar && writeScope($scope1_id, { + $si__input_bar && _scope($scope1_id, { input_bar: input?.bar, input_message: input?.message, _: _scope_with_id($scope0_id) @@ -28,5 +28,5 @@ var template_default = _template("__tests__/template.marko", (input) => { }); }, $scope0_id) }; Foo.content({ bar: "hi" }); - writeScope($scope0_id, { Foo }, "__tests__/template.marko", 0, { Foo: "1:8" }); + _scope($scope0_id, { Foo }, "__tests__/template.marko", 0, { Foo: "1:8" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-unknown/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-unknown/__snapshots__/html.bundle.js index ae8bdf7905a..9378dd45bbd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-unknown/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-recursive-unknown/__snapshots__/html.bundle.js @@ -9,21 +9,21 @@ var template_default = _template("a", (input) => { if (input.bar) { const $scope2_id = _scope_id(); _dynamic_tag($scope2_id, "a", Foo, { message: input.bar }, 0, 0, $sg__input_bar); - $si__input_bar && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + $si__input_bar && _scope($scope2_id, { _: _scope_with_id($scope1_id) }); return 0; } else { const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "a", JSON.stringify(input.message), _serialize_guard($scope1_reason, 2))); - _serialize_if($scope1_reason, 0) && writeScope($scope3_id, { _: _serialize_if($scope1_reason, 2) && _scope_with_id($scope1_id) }); + _serialize_if($scope1_reason, 0) && _scope($scope3_id, { _: _serialize_if($scope1_reason, 2) && _scope_with_id($scope1_id) }); return 1; } }, $scope1_id, "a", _serialize_guard($scope1_reason, 0) || $sg__input_bar, $sg__input_bar, $sg__input_bar); - $si__input_bar && writeScope($scope1_id, { + $si__input_bar && _scope($scope1_id, { d: input?.bar, e: input?.message, _: _scope_with_id($scope0_id) }); }, $scope0_id) }; Foo.content({ bar: "hi" }); - writeScope($scope0_id, { b: Foo }); + _scope($scope0_id, { b: Foo }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-rest-param/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-rest-param/__snapshots__/html.bundle.debug.js index 3259287a501..83416443a9a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-rest-param/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-rest-param/__snapshots__/html.bundle.debug.js @@ -7,14 +7,14 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "#text/0", a, _serialize_guard($scope1_reason, 1))}|${_text_resume($scope1_id, "#text/1", JSON.stringify(rest), _serialize_guard($scope1_reason, 2) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "2:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "2:2"); }, $scope0_id) }; _set_serialize_reason(1); const $childScope = _peek_scope_id(); MyTag.content(x, "two", "three"); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { x: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-rest-param/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-rest-param/__snapshots__/html.bundle.js index 791f77d599c..79ad988e4d7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-rest-param/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-rest-param/__snapshots__/html.bundle.js @@ -7,14 +7,14 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "a", a, _serialize_guard($scope1_reason, 1))}|${_text_resume($scope1_id, "b", JSON.stringify(rest), _serialize_guard($scope1_reason, 2) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; _set_serialize_reason(1); const $childScope = _peek_scope_id(); MyTag.content(x, "two", "three"); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: x, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-unused-param/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-unused-param/__snapshots__/html.bundle.debug.js index 19bef3fd4f4..49e935f49e9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-unused-param/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-unused-param/__snapshots__/html.bundle.debug.js @@ -7,14 +7,14 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "#text/0", b, _serialize_guard($scope1_reason, 1))}|${_text_resume($scope1_id, "#text/1", c, _serialize_guard($scope1_reason, 2) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "2:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "2:2"); }, $scope0_id) }; _set_serialize_reason(10); const $childScope = _peek_scope_id(); MyTag.content(1, "Hello", x); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { x: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-unused-param/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-unused-param/__snapshots__/html.bundle.js index 5efe70ded1f..e9a6e06f490 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-unused-param/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args-unused-param/__snapshots__/html.bundle.js @@ -7,14 +7,14 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "a", b, _serialize_guard($scope1_reason, 1))}|${_text_resume($scope1_id, "b", c, _serialize_guard($scope1_reason, 2) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; _set_serialize_reason(10); const $childScope = _peek_scope_id(); MyTag.content(1, "Hello", x); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: x, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/html.bundle.debug.js index e4791f3f853..441177c0557 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/html.bundle.debug.js @@ -7,14 +7,14 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "#text/0", a, _serialize_guard($scope1_reason, 1))}|${_text_resume($scope1_id, "#text/1", b, _serialize_guard($scope1_reason, 2) * 2)}|${_text_resume($scope1_id, "#text/2", c, _serialize_guard($scope1_reason, 3) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "2:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "2:2"); }, $scope0_id) }; _set_serialize_reason(18); const $childScope = _peek_scope_id(); MyTag.content(1, "Hello", x); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { x: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/html.bundle.js index f243756689f..4775f134a07 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/html.bundle.js @@ -7,14 +7,14 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "a", a, _serialize_guard($scope1_reason, 1))}|${_text_resume($scope1_id, "b", b, _serialize_guard($scope1_reason, 2) * 2)}|${_text_resume($scope1_id, "c", c, _serialize_guard($scope1_reason, 3) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; _set_serialize_reason(18); const $childScope = _peek_scope_id(); MyTag.content(1, "Hello", x); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: x, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/html.bundle.debug.js index 9686b8c4704..adaad581dbc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/html.bundle.debug.js @@ -7,14 +7,14 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "#text/0", number, _serialize_guard($scope1_reason, 0))}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "2:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "2:2"); }, $scope0_id) }; _set_serialize_reason(1); const $childScope = _peek_scope_id(); MyTag.content({ number: x }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { x: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/html.bundle.js index e80dca8590b..f6fb35350b4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-attr-signal/__snapshots__/html.bundle.js @@ -7,14 +7,14 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "a", number, _serialize_guard($scope1_reason, 0))}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; _set_serialize_reason(1); const $childScope = _peek_scope_id(); MyTag.content({ number: x }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: x, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/html.bundle.debug.js index 6e0a6a4445f..700e444b636 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(`
    ${_text_resume($scope1_id, "#text/0", x)}
    `); - _subscribe($x__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); + _subscribe($x__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2")); _resume_branch($scope1_id); }, $scope0_id) }; MyTag.content({}); @@ -16,13 +16,13 @@ var template_default = _template("__tests__/template.marko", (input) => { if (x || 1) { const $scope2_id = _scope_id(); MyTag.content({}); - writeScope($scope2_id, {}, "__tests__/template.marko", "7:2"); + _scope($scope2_id, {}, "__tests__/template.marko", "7:2"); return 0; } }, $scope0_id, "#text/1"); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, "ClosureScopes:x": $x__closures }, "__tests__/template.marko", 0, { x: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/html.bundle.js index 53550d1ab04..ef871901be9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-closure/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(`
    ${_text_resume($scope1_id, "a", x)}
    `); - _subscribe($x__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($x__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }; MyTag.content({}); @@ -16,13 +16,13 @@ var template_default = _template("a", (input) => { { const $scope2_id = _scope_id(); MyTag.content({}); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); return 0; } }, $scope0_id, "b"); _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: x, f: $x__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/html.bundle.debug.js index b58bf366155..0bd3e6b72af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); const $scope2_reason = _scope_reason(); _html(`
    Hello ${_text_resume($scope2_id, "#text/0", value, _serialize_guard($scope2_reason, 0) * 2)}
    `); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "4:2"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}, "__tests__/template.marko", "4:2"); }, $scope0_id) }; _if(() => { if (show) { @@ -16,12 +16,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); MyTag.content({ value: x }); - writeScope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "8:2"); + _scope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "8:2"); return 0; } }, $scope0_id, "#text/0"); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "2:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/html.bundle.js index 561d5b1ff5e..ff153d2ae38 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var template_default = _template("a", (input) => { const $scope2_id = _scope_id(); const $scope2_reason = _scope_reason(); _html(`
    Hello ${_text_resume($scope2_id, "a", value, _serialize_guard($scope2_reason, 0) * 2)}
    `); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}); }, $scope0_id) }; _if(() => { { @@ -15,12 +15,12 @@ var template_default = _template("a", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); MyTag.content({ value: x }); - writeScope($scope1_id, { a: _existing_scope($childScope) }); + _scope($scope1_id, { a: _existing_scope($childScope) }); return 0; } }, $scope0_id, "a"); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { e: x }); + _scope($scope0_id, { e: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/html.bundle.debug.js index fb3b3acbfb1..f697ae0a34e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    Hello ${_text_resume($scope1_id, "#text/0", name, _serialize_guard($scope1_reason, 1) * 2)} ${_text_resume($scope1_id, "#text/1", count, _serialize_guard($scope1_reason, 2) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "6:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "6:2"); }, $scope0_id) }; _set_serialize_reason(10); const $childScope = _peek_scope_id(); @@ -17,7 +17,7 @@ var template_default = _template("__tests__/template.marko", (input) => { count }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { count: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/html.bundle.js index 1dd25f71986..bc5dda48aba 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-stateful/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    Hello ${_text_resume($scope1_id, "a", name, _serialize_guard($scope1_reason, 1) * 2)} ${_text_resume($scope1_id, "b", count, _serialize_guard($scope1_reason, 2) * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; _set_serialize_reason(10); const $childScope = _peek_scope_id(); @@ -17,7 +17,7 @@ var template_default = _template("a", (input) => { count }); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: count, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/html.bundle.debug.js index faceb8c9c4c..1139d09aa29 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let y = 1; _html(`
    Hello ${_text_resume($scope1_id, "#text/0", name, _serialize_guard($scope1_reason, 0) * 2)} ${_text_resume($scope1_id, "#text/1", y, 2)}
    ${_el_resume($scope1_id, "#button/2")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { y }, "__tests__/template.marko", "1:2", { y: "2:8" }); + _scope($scope1_id, { y }, "__tests__/template.marko", "1:2", { y: "2:8" }); _resume_branch($scope1_id); }, $scope0_id) }; MyTag.content({ name: "Ryan" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/html.bundle.js index 33f262d6361..e1f6555c94d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var template_default = _template("a", (input) => { let y = 1; _html(`
    Hello ${_text_resume($scope1_id, "a", name, _serialize_guard($scope1_reason, 0) * 2)} ${_text_resume($scope1_id, "b", y, 2)}
    ${_el_resume($scope1_id, "c")}`); _script($scope1_id, "a1"); - writeScope($scope1_id, { h: y }); + _scope($scope1_id, { h: y }); _resume_branch($scope1_id); }, _scope_id()) }).content({ name: "Ryan" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/derived-from-closures-updates-tag-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/derived-from-closures-updates-tag-input/__snapshots__/html.bundle.debug.js index 1cd40fab06b..627cc0c0592 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/derived-from-closures-updates-tag-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/derived-from-closures-updates-tag-input/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#button/0")}x${_el_resume($scope0_id, "#a/2", _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/tags/child.marko_0"); - writeScope($scope0_id, { input_onToggle: input.onToggle }, "__tests__/tags/child.marko", 0, { input_onToggle: ["input.onToggle"] }); + _scope($scope0_id, { input_onToggle: input.onToggle }, "__tests__/tags/child.marko", 0, { input_onToggle: ["input.onToggle"] }); }); // tags/parent.marko @@ -29,7 +29,7 @@ var parent_default = _template("__tests__/tags/parent.marko", (input) => { input.onToggle(); }, "__tests__/tags/parent.marko_1/onToggle", $scope1_id) }); - writeScope($scope1_id, { + _scope($scope1_id, { label: _serialize_if($scope0_reason, 0) && label, _: _scope_with_id($scope0_id), "#childScope/0": _existing_scope($childScope) @@ -37,7 +37,7 @@ var parent_default = _template("__tests__/tags/parent.marko", (input) => { return 0; } }, $scope0_id, "#text/0", 1, 0, 0); - writeScope($scope0_id, { + _scope($scope0_id, { input_count: input.count, input_onToggle: input.onToggle, prefix, @@ -66,7 +66,7 @@ var template_default = _template("__tests__/template.marko", (input) => { count++; }, "__tests__/template.marko_0/onToggle", $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { count, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { count: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/derived-from-closures-updates-tag-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/derived-from-closures-updates-tag-input/__snapshots__/html.bundle.js index b4f030a177f..60a947897a9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/derived-from-closures-updates-tag-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/derived-from-closures-updates-tag-input/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}x${_el_resume($scope0_id, "c", _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { f: input.onToggle }); + _scope($scope0_id, { f: input.onToggle }); }); // tags/parent.marko @@ -29,7 +29,7 @@ var parent_default = _template("c", (input) => { input.onToggle(); }, "c1", $scope1_id) }); - writeScope($scope1_id, { + _scope($scope1_id, { c: _serialize_if($scope0_reason, 0) && label, _: _scope_with_id($scope0_id), a: _existing_scope($childScope) @@ -37,7 +37,7 @@ var parent_default = _template("c", (input) => { return 0; } }, $scope0_id, "a", 1, 0, 0); - writeScope($scope0_id, { + _scope($scope0_id, { d: input.count, e: input.onToggle, f: prefix, @@ -60,7 +60,7 @@ var template_default = _template("a", (input) => { count++; }, "a0", $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: count, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destroy-nested-branches/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/destroy-nested-branches/__snapshots__/html.bundle.debug.js index d3257f4980f..a889dfd3d0a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destroy-nested-branches/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destroy-nested-branches/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const { name } = input; _html(`

    ${_text_resume($scope0_id, "#text/0", name, _serialize_guard($scope0_reason, 0))}

    `); _script($scope0_id, "__tests__/tags/child.marko_0_name#3"); - writeScope($scope0_id, { name }, "__tests__/tags/child.marko", 0, { name: "1:9" }); + _scope($scope0_id, { name }, "__tests__/tags/child.marko", 0, { name: "1:9" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destroy-nested-branches/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destroy-nested-branches/__snapshots__/html.bundle.js index c049ea9a32e..1866fea7482 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destroy-nested-branches/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destroy-nested-branches/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { const { name } = input; _html(`

    ${_text_resume($scope0_id, "a", name, _serialize_guard($scope0_reason, 0))}

    `); _script($scope0_id, "b0"); - writeScope($scope0_id, { d: name }); + _scope($scope0_id, { d: name }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-member-intersection/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-member-intersection/__snapshots__/html.bundle.debug.js index 961261e0e62..b7b9191249a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-member-intersection/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-member-intersection/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); const { a, b } = input; _html(`
    ${_text_resume($scope0_id, "#text/0", input.a, _serialize_guard($scope0_reason, 1))}${_text_resume($scope0_id, "#text/1", a + b, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { input_a: _serialize_if($scope0_reason, 2) && input.a, b: _serialize_if($scope0_reason, 1) && b }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-member-intersection/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-member-intersection/__snapshots__/html.bundle.js index 4e6b7db58e4..add993f0073 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-member-intersection/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-member-intersection/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); const { a, b } = input; _html(`
    ${_text_resume($scope0_id, "a", input.a, _serialize_guard($scope0_reason, 1))}${_text_resume($scope0_id, "b", a + b, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { e: _serialize_if($scope0_reason, 2) && input.a, f: _serialize_if($scope0_reason, 1) && b }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/html.bundle.debug.js index ef2973fb4d1..13de660c8de 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _dynamic_tag($scope0_id, "#text/1", content, {}, 0, 0, _serialize_guard($scope0_reason, 1)); _html(`${_el_resume($scope0_id, "#div/0")}
    ${_text_resume($scope0_id, "#text/2", Object.keys(input), _serialize_guard($scope0_reason, 0))}
    `); _script($scope0_id, "__tests__/tags/child.marko_0_rest#6"); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0, { "EventAttributes:#div/0": ["...rest", "2:9"] }); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0, { "EventAttributes:#div/0": ["...rest", "2:9"] }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/html.bundle.js index ce48a55a892..56080598449 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-input/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var child_default = _template("b", (input) => { _dynamic_tag($scope0_id, "b", content, {}, 0, 0, _serialize_guard($scope0_reason, 1)); _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "c", Object.keys(input), _serialize_guard($scope0_reason, 0))}
    `); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/html.bundle.debug.js index 6c6413d4f7f..c82d9977aec 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _dynamic_tag($scope0_id, "#text/1", content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/tags/child.marko_0_rest#6"); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0, { "EventAttributes:#div/0": ["...rest", "2:9"] }); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0, { "EventAttributes:#div/0": ["...rest", "2:9"] }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/html.bundle.js index 11986fb524f..7f6d59854e3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-and-reference-unprovided-input/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var child_default = _template("b", (input) => { _dynamic_tag($scope0_id, "b", content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/html.bundle.debug.js index a21a5407ff0..b0021adbab3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _html(`${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/tags/child.marko_0_rest#4"); _script($scope0_id, "__tests__/tags/child.marko_0_$valueChange#3"); - writeScope($scope0_id, { $valueChange }, "__tests__/tags/child.marko", 0, { + _scope($scope0_id, { $valueChange }, "__tests__/tags/child.marko", 0, { $valueChange: "3:11", "EventAttributes:#div/0": ["...rest", "5:8"] }); @@ -28,11 +28,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", value)); - _subscribe($value__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:1")); + _subscribe($value__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:1")); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { value, "ClosureScopes:value": $value__closures }, "__tests__/template.marko", 0, { value: "1:5" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/html.bundle.js index f918ccb1bf3..cd1ee43ca28 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var child_default = _template("b", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); _script($scope0_id, "b1"); - writeScope($scope0_id, { d: $valueChange }); + _scope($scope0_id, { d: $valueChange }); }); // template.marko @@ -25,11 +25,11 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", value)); - _subscribe($value__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($value__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: value, c: $value__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/html.bundle.debug.js index 5d8da676f37..706313cb915 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _dynamic_tag($scope0_id, "#text/1", content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/tags/child.marko_0_rest#5"); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0, { "EventAttributes:#div/0": ["...rest", "2:9"] }); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0, { "EventAttributes:#div/0": ["...rest", "2:9"] }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/html.bundle.js index 2b0a08ae2d4..a7e4ea053a0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-input/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var child_default = _template("b", (input) => { _dynamic_tag($scope0_id, "b", content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-rest-reads/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-rest-reads/__snapshots__/html.bundle.debug.js index ce55ff96e26..d483fbd1491 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-rest-reads/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-rest-reads/__snapshots__/html.bundle.debug.js @@ -12,6 +12,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const copy = rest; _html(`
    ${_text_resume($scope0_id, "#text/0", first)}|${_text_resume($scope0_id, "#text/1", rest[0], 2)}|${_text_resume($scope0_id, "#text/2", rest[1], 2)}|${_text_resume($scope0_id, "#text/3", rest.length, 2)}
    ${_text_resume($scope0_id, "#text/4", second)}|${_text_resume($scope0_id, "#text/5", third, 2)}
    ${_text_resume($scope0_id, "#text/6", copy[0])}|${_text_resume($scope0_id, "#text/7", copy.length, 2)}
    ${_el_resume($scope0_id, "#button/8")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-rest-reads/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-rest-reads/__snapshots__/html.bundle.js index b09d65ada27..3dd9bf5b6fd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-rest-reads/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-rest-reads/__snapshots__/html.bundle.js @@ -12,6 +12,6 @@ var template_default = _template("a", (input) => { const copy = rest; _html(`
    ${_text_resume($scope0_id, "a", first)}|${_text_resume($scope0_id, "b", rest[0], 2)}|${_text_resume($scope0_id, "c", rest[1], 2)}|${_text_resume($scope0_id, "d", rest.length, 2)}
    ${_text_resume($scope0_id, "e", second)}|${_text_resume($scope0_id, "f", third, 2)}
    ${_text_resume($scope0_id, "g", copy[0])}|${_text_resume($scope0_id, "h", copy.length, 2)}
    ${_el_resume($scope0_id, "i")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/html.bundle.debug.js index 68aecb7447f..ac8e41ee143 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/html.bundle.debug.js @@ -27,10 +27,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(list, (item) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "#text/0", item)}
  • `); - writeScope($scope1_id, {}, "__tests__/template.marko", "10:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "10:4"); }, 0, $scope0_id, "#ul/3", 1, 1, 1, "", 1); _script($scope0_id, "__tests__/template.marko_0_clear#6"); - writeScope($scope0_id, { + _scope($scope0_id, { clear, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { clear: "6:16" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/html.bundle.js index 4c8a5401863..f46aafa5efd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/html.bundle.js @@ -26,10 +26,10 @@ var template_default = _template("a", (input) => { _for_of(list, (item) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "a", item)}
  • `); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "d", 1, 1, 1, "", 1); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { g: clear, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/details-static/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/details-static/__snapshots__/html.bundle.debug.js index e438c706ea0..4f73eb7a36d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/details-static/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/details-static/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "#button/0")}
    summary body
    dialog body`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/details-static/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/details-static/__snapshots__/html.bundle.js index 17c4b6034da..1d17526f2f3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/details-static/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/details-static/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "a")}
    summary body
    dialog body`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client-not-serialized/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client-not-serialized/__snapshots__/html.bundle.debug.js index 4f81c7a7592..f285bd15d94 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client-not-serialized/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client-not-serialized/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const derived = $global$1.msg + "!" + n; _html(`${_text_resume($scope0_id, "#text/1", derived)}${_el_resume($scope0_id, "#div/0")}

    ${_escape($global$1.msg)}

    ${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/html.bundle.debug.js index a50f1725cca..fb2673f49d1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _html(`${_escape($global$1.x)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:4"); return 0; } }, $scope0_id, "#text/0", 1, 1, 1, 0, 1); @@ -17,12 +17,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (!show) { const $scope2_id = _scope_id(); _html(``); - writeScope($scope2_id, {}, "__tests__/template.marko", "7:4"); + _scope($scope2_id, {}, "__tests__/template.marko", "7:4"); return 0; } }, $scope0_id, "#text/1", 1, 1, 1, 0, 1); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "2:8" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/html.bundle.js index 02fa8dcadda..0880731dfd0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/html.bundle.js @@ -10,12 +10,12 @@ var template_default = _template("a", (input) => { { const $scope2_id = _scope_id(); _html(``); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); return 0; } }, $scope0_id, "b", 1, 1, 1, 0, 1); _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: show }); + _scope($scope0_id, { d: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-deferred-read/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-deferred-read/__snapshots__/html.bundle.debug.js index ac5ff95d582..8001fa0bf72 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-deferred-read/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-deferred-read/__snapshots__/html.bundle.debug.js @@ -14,6 +14,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(`
    caught: ${_text_resume($scope2_id, "#text/0", err.message, _serialize_guard($scope2_reason, 0) * 2)}
    `); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "5:4"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}, "__tests__/template.marko", "5:4"); }, $scope0_id) }) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-deferred-read/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-deferred-read/__snapshots__/html.bundle.js index de0f4e217df..75be8e26c99 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-deferred-read/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-deferred-read/__snapshots__/html.bundle.js @@ -14,6 +14,6 @@ var template_default = _template("a", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(`
    caught: ${_text_resume($scope2_id, "a", err.message, _serialize_guard($scope2_reason, 0) * 2)}
    `); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}); }, $scope0_id) }) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-value-change/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-value-change/__snapshots__/html.bundle.debug.js index a73dce7b162..4b9adc8ec48 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-value-change/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-value-change/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var g_default = _template("__tests__/tags/g.marko", (input) => { const $global$1 = $global(); let value = 0; const $return = value; - writeScope($scope0_id, { "#TagVariableChange": _resume(function(next) { + _scope($scope0_id, { "#TagVariableChange": _resume(function(next) { $global$1.store = next; }, "__tests__/tags/g.marko_0/valueChange", $scope0_id) || void 0 }, "__tests__/tags/g.marko", 0); _resume_branch($scope0_id); @@ -21,5 +21,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/template.marko_0_v#4/var"); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-value-change/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-value-change/__snapshots__/html.bundle.js index dfcc0fba65b..410ee0805b7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-value-change/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-value-change/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var g_default = _template("b", (input) => { const $scope0_id = _scope_id(); const $global$1 = $global(); const $return = 0; - writeScope($scope0_id, { U: _resume(function(next) { + _scope($scope0_id, { U: _resume(function(next) { $global$1.store = next; }, "b0", $scope0_id) || void 0 }); _resume_branch($scope0_id); @@ -20,5 +20,5 @@ var template_default = _template("a", (input) => { _var($scope0_id, "b", $childScope, "a0"); _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/html.bundle.debug.js index 0beac177b6b..9da469b7103 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/html.bundle.debug.js @@ -13,12 +13,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (true) { const $scope2_id = _scope_id(); _html(`
    ${_text_resume($scope2_id, "#text/0", a)}
    ${_text_resume($scope2_id, "#text/1", b)}
    `); - _subscribe($b__closures, _subscribe($a__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "8:4"))); + _subscribe($b__closures, _subscribe($a__closures, _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "8:4"))); } - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:2"); }, $scope0_id), {}); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { a, b, "ClosureScopes:a": $a__closures, diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/html.bundle.js index 8c18195a6d0..be9ab4e12fb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-multiple/__snapshots__/html.bundle.js @@ -13,12 +13,12 @@ var template_default = _template("a", (input) => { { const $scope2_id = _scope_id(); _html(`
    ${_text_resume($scope2_id, "a", a)}
    ${_text_resume($scope2_id, "b", b)}
    `); - _subscribe($b__closures, _subscribe($a__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))); + _subscribe($b__closures, _subscribe($a__closures, _scope($scope2_id, { _: _scope_with_id($scope1_id) }))); } - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), {}); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: a, d: b, e: $a__closures, diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/html.bundle.debug.js index 5a1234a5160..2bb2047c876 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/html.bundle.debug.js @@ -14,18 +14,18 @@ var template_default = _template("__tests__/template.marko", (input) => { if (input.b) { const $scope2_id = _scope_id(); _html(`
    ${_text_resume($scope2_id, "#text/0", bar(foo), _serialize_guard($scope0_reason, 3))}
    `); - $si__input_c__OR__input_a__OR__input_b && _subscribe($si__input_c && $bar2__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:3")); + $si__input_c__OR__input_a__OR__input_b && _subscribe($si__input_c && $bar2__closures, _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "6:3")); return 0; } }, $scope1_id, "#text/0", $sg__input_b, $sg__input_b, $sg__input_b, 0, 1); - $si__input_c__OR__input_a__OR__input_b && writeScope($scope1_id, { + $si__input_c__OR__input_a__OR__input_b && _scope($scope1_id, { foo: _serialize_if($scope0_reason, 0) && foo, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:1", { foo: "4:9" }); return 0; } }, $scope0_id, "#text/0", _serialize_guard($scope0_reason, 1), $sg__input_a, $sg__input_a); - $si__input_c__OR__input_a__OR__input_b && writeScope($scope0_id, { + $si__input_c__OR__input_a__OR__input_b && _scope($scope0_id, { input_c: $si__input_a__OR__input_b && input.c, input_b: _serialize_if($scope0_reason, 4) && input.b, bar: $si__input_a__OR__input_b && bar, diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/html.bundle.js index 438bf5fa9bc..3edce80d4b6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closure-with-function/__snapshots__/html.bundle.js @@ -14,18 +14,18 @@ var template_default = _template("a", (input) => { if (input.b) { const $scope2_id = _scope_id(); _html(`
    ${_text_resume($scope2_id, "a", bar(foo), _serialize_guard($scope0_reason, 3))}
    `); - $si__input_c__OR__input_a__OR__input_b && _subscribe($si__input_c && $bar2__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })); + $si__input_c__OR__input_a__OR__input_b && _subscribe($si__input_c && $bar2__closures, _scope($scope2_id, { _: _scope_with_id($scope1_id) })); return 0; } }, $scope1_id, "a", $sg__input_b, $sg__input_b, $sg__input_b, 0, 1); - $si__input_c__OR__input_a__OR__input_b && writeScope($scope1_id, { + $si__input_c__OR__input_a__OR__input_b && _scope($scope1_id, { b: _serialize_if($scope0_reason, 0) && foo, _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", _serialize_guard($scope0_reason, 1), $sg__input_a, $sg__input_a); - $si__input_c__OR__input_a__OR__input_b && writeScope($scope0_id, { + $si__input_c__OR__input_a__OR__input_b && _scope($scope0_id, { d: $si__input_a__OR__input_b && input.c, f: _serialize_if($scope0_reason, 4) && input.b, g: $si__input_a__OR__input_b && bar, diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/html.bundle.debug.js index 29931a07d6d..a8b390c391d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag.marko", (input) => _html("
    "); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/custom-tag.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/custom-tag.marko", 0); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_escape(a)} ${_escape(b)} ${_text_resume($scope1_id, "#text/2", c, 2)}`); - _subscribe($c__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:2")); + _subscribe($c__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:2")); _resume_branch($scope1_id); }, $scope0_id) }); _html("
    "); @@ -30,15 +30,15 @@ var template_default = _template("__tests__/template.marko", (input) => { if (Math.random()) { const $scope3_id = _scope_id(); _html(`${_escape(a)} ${_escape(b)} ${_text_resume($scope3_id, "#text/2", c, 2)}`); - _subscribe($c__closures, writeScope($scope3_id, { + _subscribe($c__closures, _scope($scope3_id, { _: _scope_with_id($scope2_id), "ClosureSignalIndex:c": 1 }, "__tests__/template.marko", "11:6")); } - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "10:4"); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "10:4"); } _html("
    "); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "ClosureScopes:c": $c__closures }, "__tests__/template.marko", 0); + _scope($scope0_id, { "ClosureScopes:c": $c__closures }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/html.bundle.js index eb8c6dd6a6d..ebc6f8bef1d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-closures/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var custom_tag_default = _template("b", (input) => { _html("
    "); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_escape(a)} ${_escape(b)} ${_text_resume($scope1_id, "c", c, 2)}`); - _subscribe($c__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($c__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); _html("
    "); @@ -30,15 +30,15 @@ var template_default = _template("a", (input) => { if (Math.random()) { const $scope3_id = _scope_id(); _html(`${_escape(a)} ${_escape(b)} ${_text_resume($scope3_id, "c", c, 2)}`); - _subscribe($c__closures, writeScope($scope3_id, { + _subscribe($c__closures, _scope($scope3_id, { _: _scope_with_id($scope2_id), Cg: 1 })); } - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }); } _html("
    "); _script($scope0_id, "a1"); - writeScope($scope0_id, { g: $c__closures }); + _scope($scope0_id, { g: $c__closures }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/html.bundle.debug.js index 07bfa7f618a..b0bee0f9ce1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/html.bundle.debug.js @@ -9,14 +9,14 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(`${_text_resume($scope1_id, "#text/0", count)} ${_escape(sideEffect++)}`); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:1")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:1")); _resume_branch($scope1_id); }, $scope0_id) }; _html("${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, MyThing, "ClosureScopes:count": $count__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/html.bundle.js index 908fd2767bc..049f93799a8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-content-attr/__snapshots__/html.bundle.js @@ -9,14 +9,14 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(`${_text_resume($scope1_id, "a", count)} ${_escape(sideEffect++)}`); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }; _html("${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { b: count, c: MyThing, e: $count__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/html.bundle.debug.js index 121aeb7dcdd..20c15122434 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let clickCount = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_clickCount#2"); - writeScope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "1:6" }); + _scope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/html.bundle.js index 3a4b54f124c..f72da65575c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-event-handlers/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let clickCount = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: clickCount }); + _scope($scope0_id, { c: clickCount }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/html.bundle.debug.js index be64b7ba0c4..5b94389f413 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id)); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { tagName, className }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/html.bundle.js index 5d2e34c53c7..c8394472efa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/html.bundle.js @@ -11,7 +11,7 @@ var template_default = _template("a", (input) => { }, $scope0_id)); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: tagName, d: className }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/html.bundle.debug.js index c73a2e403b0..889d0c767b0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/html.bundle.debug.js @@ -13,6 +13,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); _html("body content"); }, $scope0_id)); - writeScope($scope0_id, { tagName }, "__tests__/template.marko", 0, { tagName: "1:6" }); + _scope($scope0_id, { tagName }, "__tests__/template.marko", 0, { tagName: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/html.bundle.js index 4ba53559dbb..9fe47ec0026 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-tag-events/__snapshots__/html.bundle.js @@ -13,6 +13,6 @@ var template_default = _template("a", (input) => { _scope_reason(); _html("body content"); }, $scope0_id)); - writeScope($scope0_id, { b: tagName }); + _scope($scope0_id, { b: tagName }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-null-fallback/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-null-fallback/__snapshots__/html.bundle.debug.js index 1f2bd795622..412cff06582 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-null-fallback/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-null-fallback/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag.marko", (input) => const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    tag ${_text_resume($scope0_id, "#text/0", input[0], _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/custom-tag.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/custom-tag.marko", 0); }); // template.marko @@ -26,6 +26,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id), 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "2:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-null-fallback/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-null-fallback/__snapshots__/html.bundle.js index d27799c9dd9..7e7e9d0ed7f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-null-fallback/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-null-fallback/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var custom_tag_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    tag ${_text_resume($scope0_id, "a", input[0], _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -26,6 +26,6 @@ var template_default = _template("a", (input) => { }, $scope0_id), 1); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { c: x }); + _scope($scope0_id, { c: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/html.bundle.debug.js index 5c9ace1a990..08cdb558ec5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag.marko", (input) => const $scope0_id = _scope_id(); _html(`
    Child: ${_text_resume($scope0_id, "#text/0", input, _serialize_guard($scope0_reason, 0) * 2)}
    `); const $return = input; - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/custom-tag.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/custom-tag.marko", 0); return $return; }); @@ -20,6 +20,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/3", $tags0_scope, "__tests__/template.marko_0_y#6/var"); _html(`
    Parent: ${_text_resume($scope0_id, "#text/4", y, 2)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "3:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "3:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/html.bundle.js index 7f44b8b12f2..75a98cbc11b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args-tag-var/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var custom_tag_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    Child: ${_text_resume($scope0_id, "a", input, _serialize_guard($scope0_reason, 0) * 2)}
    `); const $return = input; - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); return $return; }); @@ -20,6 +20,6 @@ var template_default = _template("a", (input) => { _var($scope0_id, "d", $tags0_scope, "a0"); _html(`
    Parent: ${_text_resume($scope0_id, "e", y, 2)}
    `); _script($scope0_id, "a1"); - writeScope($scope0_id, { f: x }); + _scope($scope0_id, { f: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/html.bundle.debug.js index 007f4022ab2..a368e493451 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag.marko", (input) => const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", JSON.stringify(input), _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/custom-tag.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/custom-tag.marko", 0); }); // template.marko @@ -18,6 +18,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _dynamic_tag($scope0_id, "#text/4", tags[0], [true], 0, 1, 0); _dynamic_tag($scope0_id, "#text/5", tags[0], [...["spread1", "spread2"]], 0, 1, 0); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "3:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "3:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/html.bundle.js index 195101b360e..676336c683a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-args/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var custom_tag_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", JSON.stringify(input), _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -18,6 +18,6 @@ var template_default = _template("a", (input) => { _dynamic_tag($scope0_id, "e", tags[0], [true], 0, 1, 0); _dynamic_tag($scope0_id, "f", tags[0], [...["spread1", "spread2"]], 0, 1, 0); _script($scope0_id, "a0"); - writeScope($scope0_id, { g: x }); + _scope($scope0_id, { g: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/html.bundle.debug.js index ac1ee188562..de3cf575daa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let className = "A"; _html(`paragraph

    ${_el_resume($scope0_id, "#p/0")}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { className }, "__tests__/template.marko", 0, { className: "1:6" }); + _scope($scope0_id, { className }, "__tests__/template.marko", 0, { className: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/html.bundle.js index d3cdfd28448..23839c1ac38 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-attr-signal/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let className = "A"; _html(`paragraph

    ${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: className }); + _scope($scope0_id, { c: className }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-conditional/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-conditional/__snapshots__/html.bundle.debug.js index 69d232190f9..90fe5d2b204 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-conditional/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-conditional/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var inner_default = _template("__tests__/tags/inner.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/inner.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/inner.marko", 0); }); // template.marko @@ -20,11 +20,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); _html("shown content"); }, $scope1_id) }); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); return 0; } }, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-conditional/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-conditional/__snapshots__/html.bundle.js index e7c1b4adeea..747b33d80f1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-conditional/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-conditional/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var inner_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -14,6 +14,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _if(() => {}, $scope0_id, "b"); _script($scope0_id, "a1"); - writeScope($scope0_id, { c: show }); + _scope($scope0_id, { c: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-default/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-default/__snapshots__/html.bundle.debug.js index 0359387981f..10baaf06079 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-default/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-default/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _html("
    "); _dynamic_tag($scope0_id, "#text/0", input, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-default/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-default/__snapshots__/html.bundle.js index c645e83ebc4..8b10ed597c7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-default/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-default/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { _html("
    "); _dynamic_tag($scope0_id, "a", input, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-instance-switch/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-instance-switch/__snapshots__/html.bundle.debug.js index fdc1656f551..ba487fd4544 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-instance-switch/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-instance-switch/__snapshots__/html.bundle.debug.js @@ -9,12 +9,12 @@ var provider_default = _template("__tests__/tags/provider.marko", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(`
    value ${_text_resume($scope1_id, "#text/0", count, 2)}
    `); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/tags/provider.marko", "3:2")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/tags/provider.marko", "3:2")); _resume_branch($scope1_id); }, $scope0_id) }; const $return = body; _script($scope0_id, "__tests__/tags/provider.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/tags/provider.marko", 0, { count: "1:6" }); @@ -32,7 +32,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/4")}`); _dynamic_tag($scope0_id, "#text/5", sel ? b : a, {}); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { a, b, sel diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-instance-switch/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-instance-switch/__snapshots__/html.bundle.js index 56c02d29916..83b903b5c5b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-instance-switch/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-content-instance-switch/__snapshots__/html.bundle.js @@ -9,11 +9,11 @@ var provider_default = _template("b", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(`
    value ${_text_resume($scope1_id, "a", count, 2)}
    `); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }; _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: count, g: $count__closures }); @@ -31,7 +31,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "e")}`); _dynamic_tag($scope0_id, "f", a, {}); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { g: a, h: b, i: sel diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/html.bundle.debug.js index 5d3ab754e91..a4c8291e207 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); const { id } = input; _html(`
    Id is ${_text_resume($scope0_id, "#text/0", id, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -15,6 +15,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); _dynamic_tag($scope0_id, "#text/1", tagName, { id: "dynamic" }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { tagName }, "__tests__/template.marko", 0, { tagName: "3:6" }); + _scope($scope0_id, { tagName }, "__tests__/template.marko", 0, { tagName: "3:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/html.bundle.js index 28741c549db..e6679a9c2fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); const { id } = input; _html(`
    Id is ${_text_resume($scope0_id, "a", id, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -15,6 +15,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _dynamic_tag($scope0_id, "b", tagName, { id: "dynamic" }); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: tagName }); + _scope($scope0_id, { c: tagName }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/html.bundle.debug.js index a94693abf16..fda12ce41e6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child1_default = _template("__tests__/tags/child1.marko", (input) => { const $scope0_id = _scope_id(); const { value } = input; _html(`
    Child 1 has ${_text_resume($scope0_id, "#text/0", value, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child1.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child1.marko", 0); }); // tags/child2.marko @@ -13,7 +13,7 @@ var child2_default = _template("__tests__/tags/child2.marko", (input) => { const $scope0_id = _scope_id(); const { value } = input; _html(`
    Child 2 has ${_text_resume($scope0_id, "#text/0", value, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child2.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child2.marko", 0); }); // template.marko @@ -25,7 +25,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _dynamic_tag($scope0_id, "#text/0", tagName, { value: val }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { tagName, val }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/html.bundle.js index d53e1f3f42e..1726a406658 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child1_default = _template("b", (input) => { const $scope0_id = _scope_id(); const { value } = input; _html(`
    Child 1 has ${_text_resume($scope0_id, "a", value, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/child2.marko @@ -13,7 +13,7 @@ var child2_default = _template("c", (input) => { const $scope0_id = _scope_id(); const { value } = input; _html(`
    Child 2 has ${_text_resume($scope0_id, "a", value, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -25,7 +25,7 @@ var template_default = _template("a", (input) => { _dynamic_tag($scope0_id, "a", tagName, { value: val }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: tagName, d: val }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-handler-state/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-handler-state/__snapshots__/html.bundle.debug.js index e1a57c25a2b..7ab9182bf15 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-handler-state/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-handler-state/__snapshots__/html.bundle.debug.js @@ -34,7 +34,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("aliased"); }, $scope0_id)); _html(`
    ${_text_resume($scope0_id, "#text/3", n)}
    `); - writeScope($scope0_id, { + _scope($scope0_id, { input_tag: input.tag, n, attrs: _serialize_if($scope0_reason, 0) && attrs diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-handler-state/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-handler-state/__snapshots__/html.bundle.js index 5f2f9e912a5..9f5b0e3d56d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-handler-state/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-handler-state/__snapshots__/html.bundle.js @@ -34,7 +34,7 @@ var template_default = _template("a", (input) => { _html("aliased"); }, $scope0_id)); _html(`
    ${_text_resume($scope0_id, "d", n)}
    `); - writeScope($scope0_id, { + _scope($scope0_id, { g: input.tag, h: n, j: _serialize_if($scope0_reason, 0) && attrs diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/html.bundle.debug.js index 339a6ab9e36..bb277175a64 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/html.bundle.debug.js @@ -15,7 +15,7 @@ var my_tag_default = _template("__tests__/tags/my-tag.marko", (input) => { content }); _script($scope0_id, "__tests__/tags/my-tag.marko_0_inputContent#5"); - writeScope($scope0_id, { + _scope($scope0_id, { inputAs, inputClass, inputContent, diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/html.bundle.js index d26c40af30f..21bb5d45831 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/html.bundle.js @@ -14,7 +14,7 @@ var my_tag_default = _template("b", (input) => { content }); _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: inputAs, e: inputClass, f: inputContent, diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/html.bundle.debug.js index f8a3a444d08..bc6d3ebe803 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var wrapper_default = _template("__tests__/tags/wrapper.marko", (input) => { _scope_reason(); _html("hi"); }, $scope0_id), 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { inputAs: _serialize_if($scope0_reason, 2) && inputAs, htmlInput: _serialize_if($scope0_reason, 1) && htmlInput }, "__tests__/tags/wrapper.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/html.bundle.js index ca3d7caab90..221c606c324 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-multiple/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var wrapper_default = _template("b", (input) => { _scope_reason(); _html("hi"); }, $scope0_id), 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && inputAs, e: _serialize_if($scope0_reason, 1) && htmlInput }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-name/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-name/__snapshots__/html.bundle.debug.js index 41c33549868..afbe6a69120 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-name/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-name/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var tag_a_default = _template("__tests__/tags/tag-a/index.marko", (input) => { _html(`A `); _dynamic_tag($scope0_id, "#text/1", content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); _html(`${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 1) && writeScope($scope0_id, {}, "__tests__/tags/tag-a/index.marko", 0); + _serialize_if($scope0_reason, 1) && _scope($scope0_id, {}, "__tests__/tags/tag-a/index.marko", 0); }); // tags/tag-b/index.marko @@ -17,7 +17,7 @@ var tag_b_default = _template("__tests__/tags/tag-b/index.marko", (input) => { _html(`B `); _dynamic_tag($scope0_id, "#text/1", content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); _html(`${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 1) && writeScope($scope0_id, {}, "__tests__/tags/tag-b/index.marko", 0); + _serialize_if($scope0_reason, 1) && _scope($scope0_id, {}, "__tests__/tags/tag-b/index.marko", 0); }); // template.marko @@ -106,7 +106,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _dynamic_tag($scope0_id, "#text/18", foo || "div", {}, 0, 0, 0); _dynamic_tag($scope0_id, "#text/19", foo + "div", {}, 0, 0, 0); _dynamic_tag($scope0_id, "#text/20", "d" + "iv", {}, 0, 0, 0); - _serialize_if($scope0_reason, 8) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 8) && _scope($scope0_id, { content: $si__input_other && content, x: $si__input_other && x, show: $si__input_other && show, diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-name/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-name/__snapshots__/html.bundle.js index dd5700be2d1..b713a25cf1f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-name/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-name/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var tag_a_default = _template("b", (input) => { _html(`A `); _dynamic_tag($scope0_id, "b", content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 1) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 1) && _scope($scope0_id, {}); }); // tags/tag-b/index.marko @@ -17,7 +17,7 @@ var tag_b_default = _template("c", (input) => { _html(`B `); _dynamic_tag($scope0_id, "b", content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 1) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 1) && _scope($scope0_id, {}); }); // template.marko @@ -105,7 +105,7 @@ var template_default = _template("a", (input) => { _dynamic_tag($scope0_id, "s", "div", {}, 0, 0, 0); _dynamic_tag($scope0_id, "t", "div", {}, 0, 0, 0); _dynamic_tag($scope0_id, "u", "div", {}, 0, 0, 0); - _serialize_if($scope0_reason, 8) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 8) && _scope($scope0_id, { x: $si__input_other && content, y: $si__input_other && x, z: $si__input_other && show, diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-native-variants/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-native-variants/__snapshots__/html.bundle.debug.js index 06919cb36b7..a140b32432b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-native-variants/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-native-variants/__snapshots__/html.bundle.debug.js @@ -12,7 +12,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#select/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { tag }, "__tests__/template.marko", 0, { + _scope($scope0_id, { tag }, "__tests__/template.marko", 0, { tag: "1:6", "ControlledHandler:#select/1": ["valueChange", "4:16"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-native-variants/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-native-variants/__snapshots__/html.bundle.js index 0acd2490e8c..9d238386714 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-native-variants/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-native-variants/__snapshots__/html.bundle.js @@ -12,6 +12,6 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: tag }); + _scope($scope0_id, { d: tag }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-null-after-content/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-null-after-content/__snapshots__/html.bundle.debug.js index 252fbe21114..f7673f68f2f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-null-after-content/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-null-after-content/__snapshots__/html.bundle.debug.js @@ -9,11 +9,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html("outer"); _dynamic_tag($scope1_id, "#text/0", x > 9 ? "div" : null, {}); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-null-after-content/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-null-after-content/__snapshots__/html.bundle.js index e4b51086ec9..6b48c39a91f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-null-after-content/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-null-after-content/__snapshots__/html.bundle.js @@ -9,11 +9,11 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html("outer"); _dynamic_tag($scope1_id, "a", null, {}); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: x }); + _scope($scope0_id, { d: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js index b83600064ed..0116e0fe007 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _script($scope1_id, "__tests__/tags/child.marko_1"); _resume_branch($scope1_id); }, $scope0_id), 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -25,12 +25,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); child_default({ show }); - writeScope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); + _scope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { outer, show }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-resume-owns-branch-cleanup/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-resume-owns-branch-cleanup/__snapshots__/html.bundle.js index cf9d6bdedad..66c1a87320c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-resume-owns-branch-cleanup/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-resume-owns-branch-cleanup/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var child_default = _template("b", (input) => { _script($scope1_id, "b1"); _resume_branch($scope1_id); }, $scope0_id), 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -25,12 +25,12 @@ var template_default = _template("a", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); child_default({ show }); - writeScope($scope1_id, { a: _existing_scope($childScope) }); + _scope($scope1_id, { a: _existing_scope($childScope) }); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: outer, e: show }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-content/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-content/__snapshots__/html.bundle.debug.js index bdd875e6f66..8da42e51cde 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-content/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-content/__snapshots__/html.bundle.debug.js @@ -10,11 +10,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(`A${_text_resume($scope1_id, "#text/0", n, 2)}`); - _subscribe($n__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); + _subscribe($n__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); _resume_branch($scope1_id); }, $scope0_id)); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { tag, n, "ClosureScopes:n": $n__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-content/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-content/__snapshots__/html.bundle.js index ae9be46cfa8..d8ba644c877 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-content/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-content/__snapshots__/html.bundle.js @@ -10,11 +10,11 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(`A${_text_resume($scope1_id, "a", n, 2)}`); - _subscribe($n__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($n__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id)); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { g: tag, h: n, i: $n__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-no-content/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-no-content/__snapshots__/html.bundle.debug.js index d0663e9b351..69951ab9e96 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-no-content/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-no-content/__snapshots__/html.bundle.debug.js @@ -11,6 +11,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/valueChange", $scope0_id) }); _html(`${_text_resume($scope0_id, "#text/1", v)}`); - writeScope($scope0_id, { tag }, "__tests__/template.marko", 0, { tag: "1:6" }); + _scope($scope0_id, { tag }, "__tests__/template.marko", 0, { tag: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-no-content/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-no-content/__snapshots__/html.bundle.js index 0b7731d66dc..6b90a0cd087 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-no-content/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-select-value-no-content/__snapshots__/html.bundle.js @@ -11,6 +11,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`${_text_resume($scope0_id, "b", v)}`); - writeScope($scope0_id, { f: tag }); + _scope($scope0_id, { f: tag }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/html.bundle.debug.js index 1898f3ef0bc..b1e4358ac68 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag.marko", (input) => const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input, _serialize_guard($scope0_reason, 0))}
    `); const $return = "hello from other"; - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/custom-tag.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/custom-tag.marko", 0); return $return; }); @@ -17,6 +17,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); _dynamic_tag($scope0_id, "#text/2", tags[0], [x], 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "3:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "3:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/html.bundle.js index 0bda0c4e4d2..d6eb489b92e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-single-arg/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var custom_tag_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input, _serialize_guard($scope0_reason, 0))}
    `); const $return = "hello from other"; - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); return $return; }); @@ -17,6 +17,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _dynamic_tag($scope0_id, "c", tags[0], [x], 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: x }); + _scope($scope0_id, { d: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/html.bundle.debug.js index 0950ce23d30..f7dade7a47d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id)); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/html.bundle.js index 2fb56f21053..51949f75711 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { }, $scope0_id)); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { c: x }); + _scope($scope0_id, { c: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/html.bundle.debug.js index 0509dac5072..ca39201949b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var wrapper_default = _template("__tests__/tags/wrapper.marko", (input) => { _scope_reason(); _html("hi"); }, $scope0_id), 0, _serialize_guard($scope0_reason, 3)); - _serialize_if($scope0_reason, 3) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 3) && _scope($scope0_id, { inputAs: _serialize_if($scope0_reason, 2) && inputAs, foo: _serialize_if($scope0_reason, 1) && foo, htmlInput: _serialize_if($scope0_reason, 0) && htmlInput diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/html.bundle.js index bbcb31a8c30..c27d8ce9fe6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/html.bundle.js @@ -11,7 +11,7 @@ var wrapper_default = _template("b", (input) => { _scope_reason(); _html("hi"); }, $scope0_id), 0, _serialize_guard($scope0_reason, 3)); - _serialize_if($scope0_reason, 3) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 3) && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && inputAs, e: _serialize_if($scope0_reason, 1) && foo, f: _serialize_if($scope0_reason, 0) && htmlInput diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-svg-camel/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-svg-camel/__snapshots__/html.bundle.debug.js index 4d63e0c700b..9b146f41c80 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-svg-camel/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-svg-camel/__snapshots__/html.bundle.debug.js @@ -16,6 +16,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(""); }, $scope0_id), 0, _serialize_guard($scope0_reason, 0)); _html(`
    ${_text_resume($scope0_id, "#text/1", n)}
    `); - writeScope($scope0_id, { attrs: _serialize_if($scope0_reason, 0) && attrs }, "__tests__/template.marko", 0, { attrs: "2:8" }); + _scope($scope0_id, { attrs: _serialize_if($scope0_reason, 0) && attrs }, "__tests__/template.marko", 0, { attrs: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-svg-camel/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-svg-camel/__snapshots__/html.bundle.js index 3f1cca5e80f..bb11a0c0118 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-svg-camel/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-svg-camel/__snapshots__/html.bundle.js @@ -16,6 +16,6 @@ var template_default = _template("a", (input) => { _html(""); }, $scope0_id), 0, _serialize_guard($scope0_reason, 0)); _html(`
    ${_text_resume($scope0_id, "b", n)}
    `); - writeScope($scope0_id, { g: _serialize_if($scope0_reason, 0) && attrs }); + _scope($scope0_id, { g: _serialize_if($scope0_reason, 0) && attrs }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/html.bundle.debug.js index 90bed585608..9ba7afab2e6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var counter_default = _template("__tests__/tags/counter.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); const $return = x; _script($scope0_id, "__tests__/tags/counter.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, "#TagVariableChange": _resume((_new_x) => { x = _new_x; @@ -28,5 +28,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $getCounter_scope, "__tests__/template.marko_0_count#3/var", "#text/0"); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/html.bundle.js index 96aa0e8b70f..2caffb2dbbd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-assignment/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var counter_default = _template("b", (input) => { _html(`${_el_resume($scope0_id, "a")}`); const $return = x; _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: x, U: _resume((_new_x) => { x = _new_x; @@ -28,5 +28,5 @@ var template_default = _template("a", (input) => { _var($scope0_id, "b", $getCounter_scope, "a0", "a"); _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-destructured/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-destructured/__snapshots__/html.bundle.debug.js index 6e68bd03396..a32189c8e11 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-destructured/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-destructured/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var child_default = _template("__tests__/tags/child/index.marko", (input) => { }, "__tests__/tags/child/index.marko_0/_return", $scope0_id) }; _html(`child:${_text_resume($scope0_id, "#text/0", count, 2)}`); - writeScope($scope0_id, { count }, "__tests__/tags/child/index.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/tags/child/index.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); return $return; }); @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/template.marko_0_$pattern#4/var"); _html(`${_el_resume($scope0_id, "#button/2")}
    ${_text_resume($scope0_id, "#text/3", count)}
    `); _script($scope0_id, "__tests__/template.marko_0_inc#6"); - writeScope($scope0_id, { + _scope($scope0_id, { inc, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { inc: "3:20" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-destructured/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-destructured/__snapshots__/html.bundle.js index 12dc6c9c5c2..6e4623c6dff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-destructured/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-destructured/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var child_default = _template("b", (input) => { }, "b0", $scope0_id) }; _html(`child:${_text_resume($scope0_id, "a", count, 2)}`); - writeScope($scope0_id, { b: count }); + _scope($scope0_id, { b: count }); _resume_branch($scope0_id); return $return; }); @@ -24,7 +24,7 @@ var template_default = _template("a", (input) => { _var($scope0_id, "b", $childScope, "a0"); _html(`${_el_resume($scope0_id, "c")}
    ${_text_resume($scope0_id, "d", count)}
    `); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { g: inc, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/html.bundle.debug.js index 2b10658619d..cace925adc7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`
    ${_el_resume($scope0_id, "#div/1")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -19,11 +19,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _script($scope1_id, "__tests__/template.marko_1_setHtml#2"); - _subscribe($setHtml__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:4")); + _subscribe($setHtml__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:4")); _resume_branch($scope1_id); }, $scope0_id)); _var($scope0_id, "#scopeOffset/1", $Child_scope, "__tests__/template.marko_0_setHtml#2/var"); - writeScope($scope0_id, { + _scope($scope0_id, { setHtml, "ClosureScopes:setHtml": $setHtml__closures }, "__tests__/template.marko", 0, { setHtml: "3:16" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/html.bundle.js index 5dce05be149..3fc1c7a1e98 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-in-body/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html(`
    ${_el_resume($scope0_id, "b")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "b0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -19,11 +19,11 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _script($scope1_id, "a1"); - _subscribe($setHtml__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($setHtml__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id)); _var($scope0_id, "b", $Child_scope, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { c: setHtml, d: $setHtml__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-native/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-native/__snapshots__/html.bundle.debug.js index 64a9de87d70..b32746cdef5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-native/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-native/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $tag_scope, "__tests__/template.marko_0_el#7/var"); _html(`${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}${_text_resume($scope0_id, "#text/4", text)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { tag, el }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-native/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-native/__snapshots__/html.bundle.js index bcab64d9896..61b5acb9a14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-native/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-native/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { _var($scope0_id, "b", $tag_scope, "a0"); _html(`${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}${_text_resume($scope0_id, "e", text)}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { f: tag, h: el }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-to-falsy/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-to-falsy/__snapshots__/html.bundle.debug.js index bc2f1186b22..6460ce89a45 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-to-falsy/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-to-falsy/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $inputtag_scope, "__tests__/template.marko_0_el#8/var"); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { clicks, el }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-to-falsy/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-to-falsy/__snapshots__/html.bundle.js index c3b19dabaf0..7c22e60ca7e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-to-falsy/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var-to-falsy/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { _var($scope0_id, "b", $inputtag_scope, "a0"); _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { h: clicks, i: el }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/html.bundle.debug.js index ad618e4999e..f123ad72a76 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/html.bundle.debug.js @@ -20,5 +20,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $inputshowdiv_scope = _peek_scope_id(); let el1 = _dynamic_tag($scope0_id, "#text/6", input.show && "div", {}); _var($scope0_id, "#scopeOffset/7", $inputshowdiv_scope, "__tests__/template.marko_0_el1#14/var"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/html.bundle.js index dbf746d7986..dce34750081 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-var/__snapshots__/html.bundle.js @@ -19,5 +19,5 @@ var template_default = _template("a", (input) => { const $inputshowdiv_scope = _peek_scope_id(); _dynamic_tag($scope0_id, "g", input.show && "div", {}); _var($scope0_id, "h", $inputshowdiv_scope, "a2"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/html.bundle.debug.js index a3b759bb0bf..58593a85e00 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var counter_default = _template("__tests__/tags/counter.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/counter.marko_0"); - writeScope($scope0_id, { count }, "__tests__/tags/counter.marko", 0, { count: "1:5" }); + _scope($scope0_id, { count }, "__tests__/tags/counter.marko", 0, { count: "1:5" }); _resume_branch($scope0_id); }); @@ -21,6 +21,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id)); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { tagName }, "__tests__/template.marko", 0, { tagName: "1:6" }); + _scope($scope0_id, { tagName }, "__tests__/template.marko", 0, { tagName: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/html.bundle.js index 52f222c4f9f..382a43cf5a0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var counter_default = _template("b", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }); @@ -21,6 +21,6 @@ var template_default = _template("a", (input) => { }, $scope0_id)); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { c: tagName }); + _scope($scope0_id, { c: tagName }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/html.bundle.debug.js index 97fb58f9f0b..0abdd61fead 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/html.bundle.debug.js @@ -8,11 +8,11 @@ var template_default = _template("__tests__/template.marko", (input) => { if (!hide) { const $scope1_id = _scope_id(); _html("
    Hello
    "); - writeScope($scope1_id, {}, "__tests__/template.marko", "20:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "20:2"); return 0; } }, $scope0_id, "#text/2", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { hide }, "__tests__/template.marko", 0, { hide: "7:6" }); + _scope($scope0_id, { hide }, "__tests__/template.marko", 0, { hide: "7:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/html.bundle.js index 7a22b7f482a..16877a29d35 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-control-flow-boundary/__snapshots__/html.bundle.js @@ -8,11 +8,11 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html("
    Hello
    "); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c", 1, 1, 1, 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: hide }); + _scope($scope0_id, { d: hide }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/html.bundle.debug.js index 87d02658c1f..f7690379aad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let clickCount = 0; _html(`
    ${_el_resume($scope0_id, "#button/0")}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); + _scope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/html.bundle.js index cf0cc1c8b0a..8d08968943e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-counter/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let clickCount = 0; _html(`
    ${_el_resume($scope0_id, "a")}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: clickCount }); + _scope($scope0_id, { c: clickCount }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/html.bundle.debug.js index 0ffe2fbb640..2e644c2ef23 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/html.bundle.debug.js @@ -4,6 +4,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/html.bundle.js index b98d504fce1..49468d71ffe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/embed-removal/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-comment-object-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-comment-object-dynamic/__snapshots__/html.bundle.debug.js index f206eece7c0..8fde8ba0c43 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-comment-object-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-comment-object-dynamic/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#comment/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-const-circular/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-const-circular/__snapshots__/html.bundle.debug.js index d88fda0936b..8a71b9a3e94 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-const-circular/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-const-circular/__snapshots__/html.bundle.debug.js @@ -5,5 +5,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const a = _hoist_read_error(); const b = a; _html(`
    ${_escape(a)}${_escape(b)}
    `); - writeScope($scope0_id, { a }, "__tests__/template.marko", 0, { a: "1:8" }); + _scope($scope0_id, { a }, "__tests__/template.marko", 0, { a: "1:8" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-own-body-read-before-return/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-own-body-read-before-return/__snapshots__/html.bundle.debug.js index 92383b94672..69d1c76ef1f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-own-body-read-before-return/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-custom-tag-own-body-read-before-return/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { let r = _dynamic_tag($scope0_id, "#text/0", input.content, {}); _var($scope0_id, "#scopeOffset/1", $inputcontent_scope, "__tests__/tags/child.marko_0_r#5/var"); const $return = r; - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -21,13 +21,13 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", x)}`); const $return = 1; - _subscribe($x__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2")); + _subscribe($x__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2")); _resume_branch($scope1_id); return $return; }, $scope0_id) }); _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/template.marko_0_x#3/var"); _html(`
    ${_text_resume($scope0_id, "#text/2", x)}
    `); - writeScope($scope0_id, { + _scope($scope0_id, { "ClosureScopes:x": $x__closures, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-dynamic-tag-content/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-dynamic-tag-content/__snapshots__/html.bundle.debug.js index 260df248c9b..3f745af7f6c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-dynamic-tag-content/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-dynamic-tag-content/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.tag, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-dynamic-tag-number/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-dynamic-tag-number/__snapshots__/html.bundle.debug.js index 260df248c9b..3f745af7f6c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-dynamic-tag-number/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-dynamic-tag-number/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.tag, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-exclusive-checked-value-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-exclusive-checked-value-spread/__snapshots__/html.bundle.debug.js index 385e4defc44..0c4ba0ce958 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-exclusive-checked-value-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-exclusive-checked-value-spread/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0_input_attrs#3"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["...input.attrs", "1:11"], "EventAttributes:#input/0": ["...input.attrs", "1:11"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-for-by-duplicate/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-for-by-duplicate/__snapshots__/html.bundle.debug.js index 7b7279e134e..e6172727d40 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-for-by-duplicate/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-for-by-duplicate/__snapshots__/html.bundle.debug.js @@ -7,8 +7,8 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "2:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "2:2"); }, () => "dup", $scope0_id, "#text/0", 1, 1, 1, 0, 1); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-for-by-object/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-for-by-object/__snapshots__/html.bundle.debug.js index 95ae7ce4852..cfe1ebaabcd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-for-by-object/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-for-by-object/__snapshots__/html.bundle.debug.js @@ -7,8 +7,8 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "2:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "2:2"); }, (item) => item, $scope0_id, "#text/0", 1, 1, 1, 0, 1); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-for-by-static/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-for-by-static/__snapshots__/html.bundle.debug.js index dbae6846174..64301ae14d0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-for-by-static/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-for-by-static/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.items, (item) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", item.id, $sg__input_items)); - $si__input_items && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + $si__input_items && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, (item) => item, $scope0_id, "#text/0", $sg__input_items, $sg__input_items, $sg__input_items, 0, 1); - $si__input_items && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_items && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-for-from-non-number/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-for-from-non-number/__snapshots__/html.bundle.debug.js index 7faf7dd1722..68bffa1d442 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-for-from-non-number/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-for-from-non-number/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_to(5, input.from, 1, (i) => { const $scope1_id = _scope_id(); _html(`
  • ${_escape(i)}
  • `); - $si__input_from && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + $si__input_from && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, 0, $scope0_id, "#text/0", $sg__input_from, $sg__input_from, $sg__input_from, 0, 1); - $si__input_from && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_from && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-for-of-non-iterable/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-for-of-non-iterable/__snapshots__/html.bundle.debug.js index a9b43f80ac3..c402ad6ca84 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-for-of-non-iterable/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-for-of-non-iterable/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.value, (item) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "#text/0", item, $sg__input_value)}
  • `); - $si__input_value && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + $si__input_value && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, 0, $scope0_id, "#text/0", $sg__input_value, $sg__input_value, $sg__input_value, 0, 1); - $si__input_value && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_value && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-for-to-non-finite/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-for-to-non-finite/__snapshots__/html.bundle.debug.js index 2b8c613a1ae..ca2d695a1d0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-for-to-non-finite/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-for-to-non-finite/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_to(input.to, 0, 1, (i) => { const $scope1_id = _scope_id(); _html(`
  • ${_escape(i)}
  • `); - $si__input_to && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + $si__input_to && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, 0, $scope0_id, "#text/0", $sg__input_to, $sg__input_to, $sg__input_to, 0, 1); - $si__input_to && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_to && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-for-until-non-finite/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-for-until-non-finite/__snapshots__/html.bundle.debug.js index b76bde4aea1..a5aedefd5a3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-for-until-non-finite/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-for-until-non-finite/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_until(input.until, 0, 1, (i) => { const $scope1_id = _scope_id(); _html(`
  • ${_escape(i)}
  • `); - $si__input_until && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + $si__input_until && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, 0, $scope0_id, "#text/0", $sg__input_until, $sg__input_until, $sg__input_until, 0, 1); - $si__input_until && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_until && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-multi-spread-change-handler-not-controllable/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-multi-spread-change-handler-not-controllable/__snapshots__/html.bundle.debug.js index c92d537e6bf..8ca1d8b41ab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-multi-spread-change-handler-not-controllable/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-multi-spread-change-handler-not-controllable/__snapshots__/html.bundle.debug.js @@ -7,5 +7,5 @@ var template_default = _template("__tests__/template.marko", (input) => { ...input.more }, "#input/0", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0_input_attrs#3_input_more#4"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-mututally-exclusive-partial-spread-native-attrs/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-mututally-exclusive-partial-spread-native-attrs/__snapshots__/html.bundle.debug.js index dcb146bd398..0970471f08a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-mututally-exclusive-partial-spread-native-attrs/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-mututally-exclusive-partial-spread-native-attrs/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { ...{ checkedChange: _resume(function() {}, "__tests__/template.marko_0/checkedChange") } }, "#input/0", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["...{ checkedChange() {} }", "1:42"], "EventAttributes:#input/0": ["...{ checkedChange() {} }", "1:42"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-mututally-exclusive-spread-native-attrs/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-mututally-exclusive-spread-native-attrs/__snapshots__/html.bundle.debug.js index d58eef2f004..64d262893a3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-mututally-exclusive-spread-native-attrs/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-mututally-exclusive-spread-native-attrs/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var template_default = _template("__tests__/template.marko", (input) => { } }, "#input/0", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["...{ checkedValue: 1, checkedChange() {} }", "1:27"], "EventAttributes:#input/0": ["...{ checkedValue: 1, checkedChange() {} }", "1:27"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-function-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-function-dynamic/__snapshots__/html.bundle.debug.js index dac9f376747..1839ad95fef 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-function-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-function-dynamic/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`Hello${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-object-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-object-dynamic/__snapshots__/html.bundle.debug.js index a56bc1f98e7..44616776310 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-object-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-object-dynamic/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`Hello${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-promise-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-promise-dynamic/__snapshots__/html.bundle.debug.js index a56bc1f98e7..44616776310 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-promise-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-promise-dynamic/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`Hello${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-symbol-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-symbol-dynamic/__snapshots__/html.bundle.debug.js index a56bc1f98e7..44616776310 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-symbol-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-native-attr-symbol-dynamic/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`Hello${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-native-change-handler-not-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-native-change-handler-not-function/__snapshots__/html.bundle.debug.js index 65ad0ba82fc..404af920a5b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-native-change-handler-not-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-native-change-handler-not-function/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_value: _serialize_if($scope0_reason, 1) && input.value, input_onChange: _serialize_if($scope0_reason, 0) && input.onChange }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-native-event-handler-not-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-native-event-handler-not-function/__snapshots__/html.bundle.debug.js index afed9a048a9..f0bc932dd8b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-native-event-handler-not-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-native-event-handler-not-function/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_input_onClick#3"); - writeScope($scope0_id, { input_onClick: input.onClick }, "__tests__/template.marko", 0, { input_onClick: ["input.onClick"] }); + _scope($scope0_id, { input_onClick: input.onClick }, "__tests__/template.marko", 0, { input_onClick: ["input.onClick"] }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-native-spread-react-attribute/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-native-spread-react-attribute/__snapshots__/html.bundle.debug.js index 084aeb09f8c..5c8908077a9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-native-spread-react-attribute/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-native-spread-react-attribute/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`Hello${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0_input_attrs#3"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "EventAttributes:#div/0": ["...input.attrs", "1:9"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "EventAttributes:#div/0": ["...input.attrs", "1:9"] }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-native-tag-lowercase-event-handler-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-native-tag-lowercase-event-handler-dynamic/__snapshots__/html.bundle.debug.js index d3bb08bb30b..f767961ea17 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-native-tag-lowercase-event-handler-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-native-tag-lowercase-event-handler-dynamic/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`Click me${_el_resume($scope0_id, "#button/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-return-write/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-return-write/__snapshots__/html.bundle.debug.js index 0224813eaf1..a6a3b0fdf9f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-return-write/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-return-write/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); const $return = 1; - writeScope($scope0_id, { "#TagVariableChange": false || void 0 }, "__tests__/tags/child.marko", 0); + _scope($scope0_id, { "#TagVariableChange": false || void 0 }, "__tests__/tags/child.marko", 0); return $return; }); @@ -16,5 +16,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/template.marko_0_x#3/var"); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-script-object-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-script-object-dynamic/__snapshots__/html.bundle.debug.js index bfe4026159c..e061a89250f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-script-object-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-script-object-dynamic/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_escape_script(input.value)}<\/script>${_el_resume($scope0_id, "#script/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-serialize-private-method-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-serialize-private-method-handler/__snapshots__/html.bundle.debug.js index 996f26da928..80ade4ed02e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-serialize-private-method-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-serialize-private-method-handler/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_obj_go#4"); - writeScope($scope0_id, { + _scope($scope0_id, { obj_go: obj.go, n }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-spread-change-handler-not-controllable/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-spread-change-handler-not-controllable/__snapshots__/html.bundle.debug.js index 385e4defc44..0c4ba0ce958 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-spread-change-handler-not-controllable/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-spread-change-handler-not-controllable/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0_input_attrs#3"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["...input.attrs", "1:11"], "EventAttributes:#input/0": ["...input.attrs", "1:11"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-spread-checked-with-value-change/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-spread-checked-with-value-change/__snapshots__/html.bundle.debug.js index 385e4defc44..0c4ba0ce958 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-spread-checked-with-value-change/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-spread-checked-with-value-change/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0_input_attrs#3"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["...input.attrs", "1:11"], "EventAttributes:#input/0": ["...input.attrs", "1:11"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-spread-exclusive-attrs/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-spread-exclusive-attrs/__snapshots__/html.bundle.debug.js index ffb42e1347d..cb2f3680c74 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-spread-exclusive-attrs/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-spread-exclusive-attrs/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "#input/0", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0_input_attrs#3"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { input_attrs: input.attrs }, "__tests__/template.marko", 0, { + _scope($scope0_id, { input_attrs: input.attrs }, "__tests__/template.marko", 0, { input_attrs: ["input.attrs"], "ControlledHandler:#input/0": ["checkedChange", "2:39"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-spread-invalid-attr-name/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-spread-invalid-attr-name/__snapshots__/html.bundle.debug.js index 55e5961b09f..d3d65ef447d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-spread-invalid-attr-name/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-spread-invalid-attr-name/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _attrs_content(input.attrs, "#div/0", $scope0_id, "div"); _html(`${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0_input_attrs#3"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "EventAttributes:#div/0": ["...input.attrs", "1:9"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "EventAttributes:#div/0": ["...input.attrs", "1:9"] }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-static-change-handler-unserializable/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-static-change-handler-unserializable/__snapshots__/html.bundle.debug.js index ede800280a8..0e68ea5827f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-static-change-handler-unserializable/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-static-change-handler-unserializable/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_value: _serialize_if($scope0_reason, 1) && input.value, input_valueChange: _serialize_if($scope0_reason, 0) && input.valueChange }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-style-object-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-style-object-dynamic/__snapshots__/html.bundle.debug.js index 5d4c106952d..f656928288c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-style-object-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-style-object-dynamic/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_escape_style(input.value)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-tag-var-uninitialized/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-tag-var-uninitialized/__snapshots__/html.bundle.debug.js index 57a31246b79..44a9886bd09 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-tag-var-uninitialized/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-tag-var-uninitialized/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); _dynamic_tag($scope1_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope1_reason, 0)); const $return = "A"; - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); return $return; }, $scope0_id) }; let name = Tag.content({ content: _content("__tests__/template.marko_2*content", () => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/error-text-object-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/error-text-object-dynamic/__snapshots__/html.bundle.debug.js index a6508cf4540..7024299bff5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/error-text-object-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/error-text-object-dynamic/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/event-function-property-name/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/event-function-property-name/__snapshots__/html.bundle.debug.js index f46693e3a2d..8c055e24472 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/event-function-property-name/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/event-function-property-name/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 0; _html(`
    ${_text_resume($scope0_id, "#text/1", n)}
    ${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/event-function-property-name/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/event-function-property-name/__snapshots__/html.bundle.js index 3f5ae675381..e289c23854d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/event-function-property-name/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/event-function-property-name/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 0; _html(`
    ${_text_resume($scope0_id, "b", n)}
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/event-handler-class-methods/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/event-handler-class-methods/__snapshots__/html.bundle.debug.js index d020941ce4f..6e2234b40db 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/event-handler-class-methods/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/event-handler-class-methods/__snapshots__/html.bundle.debug.js @@ -12,7 +12,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0_obj_go#5"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { obj_go: obj.go, n }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/event-handler-class-methods/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/event-handler-class-methods/__snapshots__/html.bundle.js index 8c9f2d6b3a7..8ef0ef24c9b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/event-handler-class-methods/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/event-handler-class-methods/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a1"); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { f: obj.go, g: n }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/event-single-letter-camel/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/event-single-letter-camel/__snapshots__/html.bundle.debug.js index f46693e3a2d..8c055e24472 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/event-single-letter-camel/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/event-single-letter-camel/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 0; _html(`
    ${_text_resume($scope0_id, "#text/1", n)}
    ${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/event-single-letter-camel/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/event-single-letter-camel/__snapshots__/html.bundle.js index 3f5ae675381..e289c23854d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/event-single-letter-camel/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/event-single-letter-camel/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 0; _html(`
    ${_text_resume($scope0_id, "b", n)}
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/export-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/export-registered-function/__snapshots__/html.bundle.debug.js index 3c0f06bc774..88e9041ba30 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/export-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/export-registered-function/__snapshots__/html.bundle.debug.js @@ -12,7 +12,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let message = "Hello"; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}
    ${_text_resume($scope0_id, "#text/2", message)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { loud, quiet, message diff --git a/packages/runtime-tags/src/__tests__/fixtures/export-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/export-registered-function/__snapshots__/html.bundle.js index 5666d3f4cbf..8df1e8370c3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/export-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/export-registered-function/__snapshots__/html.bundle.js @@ -12,7 +12,7 @@ var template_default = _template("a", (input) => { let message = "Hello"; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}
    ${_text_resume($scope0_id, "c", message)}
    `); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { d: loud, e: quiet, f: message diff --git a/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/html.bundle.debug.js index 377cbc892f3..2f965272c10 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let direction = undefined; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, direction }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/html.bundle.js index 154680ca41f..97770841372 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/expression-statement-tag-var-assignment/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { let direction = void 0; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: x, f: direction }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-array-destructure-rest/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-array-destructure-rest/__snapshots__/html.bundle.debug.js index b87bd65733e..32a11565620 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-array-destructure-rest/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-array-destructure-rest/__snapshots__/html.bundle.debug.js @@ -15,10 +15,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(rows, ([first, ...rest], i) => { const $scope1_id = _scope_id(); _html(`
  • ${_escape(i)}: first=${_text_resume($scope1_id, "#text/1", first, 2)} rest0=${_text_resume($scope1_id, "#text/2", rest[0], 2)} rest1=${_text_resume($scope1_id, "#text/3", rest[1], 2)} len=${_text_resume($scope1_id, "#text/4", rest.length, 2)}
  • `); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:4"); }, 0, $scope0_id, "#ul/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-array-destructure-rest/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-array-destructure-rest/__snapshots__/html.bundle.js index 3e531d70e3e..4bddb2e82ac 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-array-destructure-rest/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-array-destructure-rest/__snapshots__/html.bundle.js @@ -15,10 +15,10 @@ var template_default = _template("a", (input) => { _for_of(rows, ([first, ...rest], i) => { const $scope1_id = _scope_id(); _html(`
  • ${_escape(i)}: first=${_text_resume($scope1_id, "b", first, 2)} rest0=${_text_resume($scope1_id, "c", rest[0], 2)} rest1=${_text_resume($scope1_id, "d", rest[1], 2)} len=${_text_resume($scope1_id, "e", rest.length, 2)}
  • `); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by-conditional/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-by-conditional/__snapshots__/html.bundle.debug.js index 26e1577aaa5..e6a6c209ecd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by-conditional/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by-conditional/__snapshots__/html.bundle.debug.js @@ -5,9 +5,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.items, (item) => { const $scope1_id = _scope_id(); _html(`
    ${_text_resume($scope1_id, "#text/0", item.name, $sg__input_items__OR__input_useKey)}
    `); - $si__input_items__OR__input_useKey && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + $si__input_items__OR__input_useKey && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, input.useKey && "id", $scope0_id, "#text/0", $sg__input_items__OR__input_useKey, $sg__input_items__OR__input_useKey, $sg__input_items__OR__input_useKey, 0, 1); - $si__input_items__OR__input_useKey && writeScope($scope0_id, { + $si__input_items__OR__input_useKey && _scope($scope0_id, { input_items: _serialize_if($scope0_reason, 2) && input.items, input_useKey: _serialize_if($scope0_reason, 1) && input.useKey }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by-conditional/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-by-conditional/__snapshots__/html.bundle.js index 7ccfeee7d20..b7f3705f47e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by-conditional/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by-conditional/__snapshots__/html.bundle.js @@ -5,9 +5,9 @@ var template_default = _template("a", (input) => { _for_of(input.items, (item) => { const $scope1_id = _scope_id(); _html(`
    ${_text_resume($scope1_id, "a", item.name, $sg__input_items__OR__input_useKey)}
    `); - $si__input_items__OR__input_useKey && writeScope($scope1_id, {}); + $si__input_items__OR__input_useKey && _scope($scope1_id, {}); }, input.useKey && "id", $scope0_id, "a", $sg__input_items__OR__input_useKey, $sg__input_items__OR__input_useKey, $sg__input_items__OR__input_useKey, 0, 1); - $si__input_items__OR__input_useKey && writeScope($scope0_id, { + $si__input_items__OR__input_useKey && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && input.items, e: _serialize_if($scope0_reason, 1) && input.useKey }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by-nested-branch-divergence/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-by-nested-branch-divergence/__snapshots__/html.bundle.debug.js index 18b85488041..8df247e11c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by-nested-branch-divergence/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by-nested-branch-divergence/__snapshots__/html.bundle.debug.js @@ -23,20 +23,20 @@ var template_default = _template("__tests__/template.marko", (input) => { if (item.on) { const $scope2_id = _scope_id(); _html(`A${_text_resume($scope2_id, "#text/0", item.id, 2)}`); - writeScope($scope2_id, {}, "__tests__/template.marko", "6:6"); + _scope($scope2_id, {}, "__tests__/template.marko", "6:6"); return 0; } else { const $scope3_id = _scope_id(); _html(`B${_text_resume($scope3_id, "#text/0", item.id, 2)}`); - writeScope($scope3_id, {}, "__tests__/template.marko", "9:6"); + _scope($scope3_id, {}, "__tests__/template.marko", "9:6"); return 1; } }, $scope1_id, "#text/0", 1, 1, 1, 0, 1); - writeScope($scope1_id, { item_id: item?.id }, "__tests__/template.marko", "5:4", { item_id: ["item.id", "5:8"] }); + _scope($scope1_id, { item_id: item?.id }, "__tests__/template.marko", "5:4", { item_id: ["item.id", "5:8"] }); }, "id", $scope0_id, "#div/0", 1, 1, 1, ""); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0_list_2#3_list_0#4_list_1#5"); - writeScope($scope0_id, { + _scope($scope0_id, { list_2: list?.[2], list_0: list?.[0], list_1: list?.[1] diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by-nested-branch-divergence/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-by-nested-branch-divergence/__snapshots__/html.bundle.js index a31743095f6..13ce0bee610 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by-nested-branch-divergence/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by-nested-branch-divergence/__snapshots__/html.bundle.js @@ -23,20 +23,20 @@ var template_default = _template("a", (input) => { if (item.on) { const $scope2_id = _scope_id(); _html(`A${_text_resume($scope2_id, "a", item.id, 2)}`); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); return 0; } else { const $scope3_id = _scope_id(); _html(`B${_text_resume($scope3_id, "a", item.id, 2)}`); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); return 1; } }, $scope1_id, "a", 1, 1, 1, 0, 1); - writeScope($scope1_id, { e: item?.id }); + _scope($scope1_id, { e: item?.id }); }, "id", $scope0_id, "a", 1, 1, 1, ""); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: list?.[2], e: list?.[0], f: list?.[1] diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by-prefix-reorder-remove/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-by-prefix-reorder-remove/__snapshots__/html.bundle.debug.js index a3ebb2cc4a6..1f0274ef7d7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by-prefix-reorder-remove/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by-prefix-reorder-remove/__snapshots__/html.bundle.debug.js @@ -13,13 +13,13 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(rows, (row) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "#text/0", row.id)}
  • `); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:4"); }, "id", $scope0_id, "#ul/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_rows_0#5_rows_1#6"); _script($scope0_id, "__tests__/template.marko_0_rows_0#5_rows_1#6_rows_3#7_rows_2#8"); - writeScope($scope0_id, { + _scope($scope0_id, { rows, rows_0: rows?.[0], rows_1: rows?.[1], diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by-prefix-reorder-remove/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-by-prefix-reorder-remove/__snapshots__/html.bundle.js index 00ec62dc4f2..371a4c5412c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by-prefix-reorder-remove/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by-prefix-reorder-remove/__snapshots__/html.bundle.js @@ -13,13 +13,13 @@ var template_default = _template("a", (input) => { _for_of(rows, (row) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "a", row.id)}
  • `); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, "id", $scope0_id, "a", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { e: rows, f: rows?.[0], g: rows?.[1], diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/html.bundle.debug.js index 784c8ee63a7..734f29fa138 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/html.bundle.debug.js @@ -9,17 +9,17 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { index }, "__tests__/template.marko", "4:4", { index: "4:17" }); + _scope($scope1_id, { index }, "__tests__/template.marko", "4:4", { index: "4:17" }); }, (f) => f, $scope0_id, "#div/0", 1, 1, 1, "", 1); _if(() => { if (last !== undefined) { const $scope2_id = _scope_id(); _html(`
    ${_text_resume($scope2_id, "#text/0", last)}
    `); - writeScope($scope2_id, {}, "__tests__/template.marko", "15:2"); + _scope($scope2_id, {}, "__tests__/template.marko", "15:2"); return 0; } }, $scope0_id, "#text/1", 1, 1, 1, 0, 1); - writeScope($scope0_id, { + _scope($scope0_id, { messages, last }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/html.bundle.js index b38e5ea8d6a..4aae89a361e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by-use-index/__snapshots__/html.bundle.js @@ -9,10 +9,10 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { e: index }); + _scope($scope1_id, { e: index }); }, (f) => f, $scope0_id, "a", 1, 1, 1, "", 1); _if(() => {}, $scope0_id, "b", 1, 1, 1, 0, 1); - writeScope($scope0_id, { + _scope($scope0_id, { c: messages, d: last }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/html.bundle.debug.js index 9f68f82408e..550bb9eaeb9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/html.bundle.debug.js @@ -29,34 +29,34 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(items, ({ text }) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", text)); - writeScope($scope1_id, {}, "__tests__/template.marko", "17:6"); + _scope($scope1_id, {}, "__tests__/template.marko", "17:6"); }, "id", $scope0_id, "#div/0", 1, 1, 1, "", 1); _html("
    "); _for_of(items, ({ text }) => { const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "#text/0", text)); - writeScope($scope2_id, {}, "__tests__/template.marko", "21:6"); + _scope($scope2_id, {}, "__tests__/template.marko", "21:6"); }, (item) => item.id, $scope0_id, "#div/1", 1, 1, 1, "
    ", 1); _html("
    "); _for_of(items, ({ text }) => { const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "#text/0", text)); - writeScope($scope3_id, {}, "__tests__/template.marko", "25:6"); + _scope($scope3_id, {}, "__tests__/template.marko", "25:6"); }, getStringBy(), $scope0_id, "#div/2", 1, 1, 1, "
    ", 1); _html("
    "); _for_of(items, ({ text }) => { const $scope4_id = _scope_id(); _html(_text_resume($scope4_id, "#text/0", text)); - writeScope($scope4_id, {}, "__tests__/template.marko", "29:6"); + _scope($scope4_id, {}, "__tests__/template.marko", "29:6"); }, getFunctionBy(), $scope0_id, "#div/3", 1, 1, 1, "
    ", 1); _html("
    "); _for_of(items, ({ text }) => { const $scope5_id = _scope_id(); _html(_text_resume($scope5_id, "#text/0", text)); - writeScope($scope5_id, {}, "__tests__/template.marko", "33:6"); + _scope($scope5_id, {}, "__tests__/template.marko", "33:6"); }, getMissingBy(), $scope0_id, "#div/4", 1, 1, 1, "
    ", 1); _html(`${_el_resume($scope0_id, "#button/5")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "14:8" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "14:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/html.bundle.js index f51febf983c..040536a34a8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/html.bundle.js @@ -26,34 +26,34 @@ var template_default = _template("a", (input) => { _for_of(items, ({ text }) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", text)); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, "id", $scope0_id, "a", 1, 1, 1, "", 1); _html("
    "); _for_of(items, ({ text }) => { const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "a", text)); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); }, (item) => item.id, $scope0_id, "b", 1, 1, 1, "
    ", 1); _html("
    "); _for_of(items, ({ text }) => { const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "a", text)); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }, getStringBy(), $scope0_id, "c", 1, 1, 1, "
    ", 1); _html("
    "); _for_of(items, ({ text }) => { const $scope4_id = _scope_id(); _html(_text_resume($scope4_id, "a", text)); - writeScope($scope4_id, {}); + _scope($scope4_id, {}); }, getFunctionBy(), $scope0_id, "d", 1, 1, 1, "
    ", 1); _html("
    "); _for_of(items, ({ text }) => { const $scope5_id = _scope_id(); _html(_text_resume($scope5_id, "a", text)); - writeScope($scope5_id, {}); + _scope($scope5_id, {}); }, void 0, $scope0_id, "e", 1, 1, 1, "
    ", 1); _html(`${_el_resume($scope0_id, "f")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { g: items }); + _scope($scope0_id, { g: items }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-conditional-only-child-range/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-conditional-only-child-range/__snapshots__/html.bundle.debug.js index 81dc3c9d03e..db090ae2be1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-conditional-only-child-range/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-conditional-only-child-range/__snapshots__/html.bundle.debug.js @@ -23,19 +23,19 @@ var template_default = _template("__tests__/template.marko", (input) => { if (item.code) { const $scope2_id = _scope_id(); _html(`
    code ${_text_resume($scope2_id, "#text/0", item.id, 2)}
    `); - writeScope($scope2_id, {}, "__tests__/template.marko", "5:6"); + _scope($scope2_id, {}, "__tests__/template.marko", "5:6"); return 0; } else { const $scope3_id = _scope_id(); _html(`

    text ${_text_resume($scope3_id, "#text/0", item.id, 2)}

    `); - writeScope($scope3_id, {}, "__tests__/template.marko", "8:6"); + _scope($scope3_id, {}, "__tests__/template.marko", "8:6"); return 1; } }, $scope1_id, "#text/0", 1, 1, 1, 0, 1); - writeScope($scope1_id, { item_id: item?.id }, "__tests__/template.marko", "4:4", { item_id: ["item.id", "4:8"] }); + _scope($scope1_id, { item_id: item?.id }, "__tests__/template.marko", "4:4", { item_id: ["item.id", "4:8"] }); }, "id", $scope0_id, "#div/0", 1, 1, 1, ""); _html(`${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-conditional-only-child-range/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-conditional-only-child-range/__snapshots__/html.bundle.js index e66e5bd702a..47f1d122f92 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-conditional-only-child-range/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-conditional-only-child-range/__snapshots__/html.bundle.js @@ -23,19 +23,19 @@ var template_default = _template("a", (input) => { if (item.code) { const $scope2_id = _scope_id(); _html(`
    code ${_text_resume($scope2_id, "a", item.id, 2)}
    `); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); return 0; } else { const $scope3_id = _scope_id(); _html(`

    text ${_text_resume($scope3_id, "a", item.id, 2)}

    `); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); return 1; } }, $scope1_id, "a", 1, 1, 1, 0, 1); - writeScope($scope1_id, { e: item?.id }); + _scope($scope1_id, { e: item?.id }); }, "id", $scope0_id, "a", 1, 1, 1, ""); _html(`${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: items }); + _scope($scope0_id, { e: items }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/html.bundle.debug.js index 4bf2bbe2e5b..c938cde4aa8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/html.bundle.debug.js @@ -11,10 +11,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(items, ({ name, description }) => { const $scope1_id = _scope_id(); _html(`
    ${_text_resume($scope1_id, "#text/0", name)}: ${_text_resume($scope1_id, "#text/1", description, 2)}
    `); - writeScope($scope1_id, {}, "__tests__/template.marko", "5:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "5:4"); }, 0, $scope0_id, "#text/0", 1, 1, 1, 0, 1); _html(`${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "3:8" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "3:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/html.bundle.js index 954d871203b..a1115df973b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/html.bundle.js @@ -10,10 +10,10 @@ var template_default = _template("a", (input) => { _for_of(items, ({ name, description }) => { const $scope1_id = _scope_id(); _html(`
    ${_text_resume($scope1_id, "a", name)}: ${_text_resume($scope1_id, "b", description, 2)}
    `); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", 1, 1, 1, 0, 1); _html(`${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: items }); + _scope($scope0_id, { d: items }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-empty-bodies/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-empty-bodies/__snapshots__/html.bundle.debug.js index 877ae5f725f..1f2cb54d314 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-empty-bodies/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-empty-bodies/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-empty-bodies/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-empty-bodies/__snapshots__/html.bundle.js index 551e23758f0..ee57e1e5136 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-empty-bodies/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-empty-bodies/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/html.bundle.debug.js index 3954c32899d..f580b50c9cd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/html.bundle.debug.js @@ -7,8 +7,8 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); }, 0, $scope0_id, "#text/0", 1, 1, 1, 0, 1); - writeScope($scope0_id, { num }, "__tests__/template.marko", 0, { num: "1:6" }); + _scope($scope0_id, { num }, "__tests__/template.marko", 0, { num: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/html.bundle.js index f306f902761..0aefc0e74ee 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/html.bundle.js @@ -7,8 +7,8 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", 1, 1, 1, 0, 1); - writeScope($scope0_id, { b: num }); + _scope($scope0_id, { b: num }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-in-by/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-in-by/__snapshots__/html.bundle.debug.js index 6b8cf861ffd..66b9d00c14a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-in-by/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-in-by/__snapshots__/html.bundle.debug.js @@ -10,10 +10,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_in(entries, (key, value) => { const $scope1_id = _scope_id(); _html(`

    ${_text_resume($scope1_id, "#text/0", key)}:${_text_resume($scope1_id, "#text/1", value, 2)}

    `); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:4"); }, (key) => key, $scope0_id, "#text/0", 1, 1, 1, 0, 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-in-by/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-in-by/__snapshots__/html.bundle.js index 2f5700af69f..5e0bc3e4099 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-in-by/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-in-by/__snapshots__/html.bundle.js @@ -10,10 +10,10 @@ var template_default = _template("a", (input) => { _for_in(entries, (key, value) => { const $scope1_id = _scope_id(); _html(`

    ${_text_resume($scope1_id, "a", key)}:${_text_resume($scope1_id, "b", value, 2)}

    `); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, (key) => key, $scope0_id, "a", 1, 1, 1, 0, 1); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-item-handler-live-read/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-item-handler-live-read/__snapshots__/html.bundle.debug.js index ff3f83f0106..3ab4a1b56fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-item-handler-live-read/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-item-handler-live-read/__snapshots__/html.bundle.debug.js @@ -15,10 +15,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`
  • ${_el_resume($scope1_id, "#button/0")}
  • `); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { item_label: item?.label }, "__tests__/template.marko", "4:4", { item_label: ["item.label", "4:8"] }); + _scope($scope1_id, { item_label: item?.label }, "__tests__/template.marko", "4:4", { item_label: ["item.label", "4:8"] }); }, "id", $scope0_id, "#ul/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}

    ${_text_resume($scope0_id, "#text/2", log)}

    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-item-handler-live-read/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-item-handler-live-read/__snapshots__/html.bundle.js index dd25138ac7c..7b6eb2100d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-item-handler-live-read/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-item-handler-live-read/__snapshots__/html.bundle.js @@ -15,10 +15,10 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`
  • ${_el_resume($scope1_id, "a")}
  • `); _script($scope1_id, "a0"); - writeScope($scope1_id, { e: item?.label }); + _scope($scope1_id, { e: item?.label }); }, "id", $scope0_id, "a", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "b")}

    ${_text_resume($scope0_id, "c", log)}

    `); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: items }); + _scope($scope0_id, { d: items }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-item-member-intersection/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-item-member-intersection/__snapshots__/html.bundle.debug.js index 6ab90e8c8d1..894a9dfd38e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-item-member-intersection/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-item-member-intersection/__snapshots__/html.bundle.debug.js @@ -13,10 +13,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(list, (item) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "#text/0", item.a + item.b)}
  • `); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:4"); }, 0, $scope0_id, "#ul/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { list }, "__tests__/template.marko", 0, { list: "1:6" }); + _scope($scope0_id, { list }, "__tests__/template.marko", 0, { list: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-item-member-intersection/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-item-member-intersection/__snapshots__/html.bundle.js index 9cf5508d89e..b2a2207fd91 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-item-member-intersection/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-item-member-intersection/__snapshots__/html.bundle.js @@ -13,10 +13,10 @@ var template_default = _template("a", (input) => { _for_of(list, (item) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "a", item.a + item.b)}
  • `); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: list }); + _scope($scope0_id, { c: list }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-class/__snapshots__/html.bundle.debug.js index 04c7bfde0bb..3dd437161ed 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-class/__snapshots__/html.bundle.debug.js @@ -22,11 +22,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/1")}${_el_resume($scope1_id, "#tr/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { row_id: row?.id }, "__tests__/template.marko", "5:4", { row_id: ["row.id", "5:8"] }); + _scope($scope1_id, { row_id: row?.id }, "__tests__/template.marko", "5:4", { row_id: ["row.id", "5:8"] }); }, "id", $scope0_id, "#tbody/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { selected, rows }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-class/__snapshots__/html.bundle.js index ee6eaf0a884..8fa083e945d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-class/__snapshots__/html.bundle.js @@ -22,11 +22,11 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "b")}${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { f: row?.id }); + _scope($scope1_id, { f: row?.id }); }, "id", $scope0_id, "a", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: selected, f: rows }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-handler-toggle/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-handler-toggle/__snapshots__/html.bundle.debug.js index 765a7c57acb..86d7cb528d5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-handler-toggle/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-handler-toggle/__snapshots__/html.bundle.debug.js @@ -15,12 +15,12 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/1")}${_el_resume($scope1_id, "#li/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { row_id: row?.id, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:4", { row_id: ["row.id", "4:8"] }); }, "id", $scope0_id, "#ul/0", 1, 0, 0, 0, 1); _html(""); - writeScope($scope0_id, { selected }, "__tests__/template.marko", 0, { selected: "1:6" }); + _scope($scope0_id, { selected }, "__tests__/template.marko", 0, { selected: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-handler-toggle/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-handler-toggle/__snapshots__/html.bundle.js index d3391b5db0e..a085d455452 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-handler-toggle/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-handler-toggle/__snapshots__/html.bundle.js @@ -15,12 +15,12 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "b")}${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { f: row?.id, _: _scope_with_id($scope0_id) }); }, "id", $scope0_id, "a", 1, 0, 0, 0, 1); _html(""); - writeScope($scope0_id, { b: selected }); + _scope($scope0_id, { b: selected }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-if-condition/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-if-condition/__snapshots__/html.bundle.debug.js index 38663110504..94fdd9f5468 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-if-condition/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-if-condition/__snapshots__/html.bundle.debug.js @@ -25,13 +25,13 @@ var template_default = _template("__tests__/template.marko", (input) => { if (selected === row.id) { const $scope2_id = _scope_id(); _html("*"); - writeScope($scope2_id, {}, "__tests__/template.marko", "6:8"); + _scope($scope2_id, {}, "__tests__/template.marko", "6:8"); return 0; } }, $scope1_id, "#text/0", 1, 1, 1, 0, 1); _html(`${_el_resume($scope1_id, "#button/1")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { row_id: row?.id, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:4", { row_id: ["row.id", "4:8"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-if-condition/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-if-condition/__snapshots__/html.bundle.js index d0fe702381f..83fd27c05c5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-if-condition/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-if-condition/__snapshots__/html.bundle.js @@ -25,13 +25,13 @@ var template_default = _template("a", (input) => { if (selected === row.id) { const $scope2_id = _scope_id(); _html("*"); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); return 0; } }, $scope1_id, "a", 1, 1, 1, 0, 1); _html(`${_el_resume($scope1_id, "b")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { f: row?.id, _: _scope_with_id($scope0_id) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-input/__snapshots__/html.bundle.debug.js index 2c10c15da8b..59ad095272b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-input/__snapshots__/html.bundle.debug.js @@ -7,13 +7,13 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.rows, (row) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", row.label, $sg__input_rows)}${_el_resume($scope1_id, "#li/0")}`); - writeScope($scope1_id, { + _scope($scope1_id, { row_id: row?.id, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:4", { row_id: ["row.id", "4:8"] }); }, "id", $scope0_id, "#ul/1", 1, $sg__input_rows, $sg__input_rows, "", 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_selected: input.selected, enabled }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-input/__snapshots__/html.bundle.js index 3ad6c86db78..a54cb004c62 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-input/__snapshots__/html.bundle.js @@ -7,13 +7,13 @@ var template_default = _template("a", (input) => { _for_of(input.rows, (row) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", row.label, $sg__input_rows)}${_el_resume($scope1_id, "a")}`); - writeScope($scope1_id, { + _scope($scope1_id, { e: row?.id, _: _scope_with_id($scope0_id) }); }, "id", $scope0_id, "b", 1, $sg__input_rows, $sg__input_rows, "", 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: input.selected, g: enabled }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-closure/__snapshots__/html.bundle.debug.js index a3784944f12..032db94a082 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-closure/__snapshots__/html.bundle.debug.js @@ -22,14 +22,14 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(rows, (row) => { const $scope1_id = _scope_id(); _html(`${_escape(row.label)}${_el_resume($scope1_id, "#li/0")}`); - writeScope($scope1_id, { + _scope($scope1_id, { row_id: row?.id, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:4", { row_id: ["row.id", "6:8"] }); }, "id", $scope0_id, "#ul/1", 1, 0, 0, 0, 1); _html(""); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { enabled, selected }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-closure/__snapshots__/html.bundle.js index 52640c10774..e46597f368b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-closure/__snapshots__/html.bundle.js @@ -22,14 +22,14 @@ var template_default = _template("a", (input) => { _for_of(rows, (row) => { const $scope1_id = _scope_id(); _html(`${_escape(row.label)}${_el_resume($scope1_id, "a")}`); - writeScope($scope1_id, { + _scope($scope1_id, { e: row?.id, _: _scope_with_id($scope0_id) }); }, "id", $scope0_id, "b", 1, 0, 0, 0, 1); _html(""); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: enabled, d: selected }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-key-read/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-key-read/__snapshots__/html.bundle.debug.js index a71de99a128..f5e32d4da11 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-key-read/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-key-read/__snapshots__/html.bundle.debug.js @@ -15,7 +15,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", selected === row.id && row.label)}${_el_resume($scope1_id, "#button/2")}${_el_resume($scope1_id, "#li/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { row_id: row?.id, row_label: row?.label }, "__tests__/template.marko", "4:4", { @@ -25,7 +25,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "id", $scope0_id, "#ul/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { selected, rows }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-key-read/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-key-read/__snapshots__/html.bundle.js index 539c1b42d7c..deffd049470 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-key-read/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-mixed-key-read/__snapshots__/html.bundle.js @@ -15,14 +15,14 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", selected === row.id && row.label)}${_el_resume($scope1_id, "c")}${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { f: row?.id, h: row?.label }); }, "id", $scope0_id, "a", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: selected, d: rows }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-multiple/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-multiple/__snapshots__/html.bundle.debug.js index 1966d871254..38f9d12fad4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-multiple/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-multiple/__snapshots__/html.bundle.debug.js @@ -22,14 +22,14 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(rows, (row) => { const $scope1_id = _scope_id(); _html(`${_escape(row.label)}${_el_resume($scope1_id, "#li/0")}`); - writeScope($scope1_id, { + _scope($scope1_id, { row_id: row?.id, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:4", { row_id: ["row.id", "7:8"] }); }, "id", $scope0_id, "#ul/2", 1, 0, 0, 0, 1); _html(""); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { selected, hovered }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-multiple/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-multiple/__snapshots__/html.bundle.js index c3474818e16..a31bf3d8cdf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-multiple/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-multiple/__snapshots__/html.bundle.js @@ -22,14 +22,14 @@ var template_default = _template("a", (input) => { _for_of(rows, (row) => { const $scope1_id = _scope_id(); _html(`${_escape(row.label)}${_el_resume($scope1_id, "a")}`); - writeScope($scope1_id, { + _scope($scope1_id, { e: row?.id, _: _scope_with_id($scope0_id) }); }, "id", $scope0_id, "c", 1, 0, 0, 0, 1); _html(""); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: selected, e: hovered }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-parent-signal/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-parent-signal/__snapshots__/html.bundle.debug.js index acc5559d1c3..3fea5a2bfb7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-parent-signal/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-parent-signal/__snapshots__/html.bundle.debug.js @@ -23,14 +23,14 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/1")}${_el_resume($scope1_id, "#tr/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { row_id: row?.id, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:4", { row_id: ["row.id", "6:8"] }); }, "id", $scope0_id, "#tbody/0", 1, 0, 0, 0, 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { selected, enabled }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-parent-signal/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-parent-signal/__snapshots__/html.bundle.js index 2b5b7a63275..3ba8a055f21 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-parent-signal/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-parent-signal/__snapshots__/html.bundle.js @@ -23,14 +23,14 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "b")}${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { f: row?.id, _: _scope_with_id($scope0_id) }); }, "id", $scope0_id, "a", 1, 0, 0, 0, 1); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: selected, d: enabled }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-prepend/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-prepend/__snapshots__/html.bundle.debug.js index d89bd5f848b..6f6c6454c47 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-prepend/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-prepend/__snapshots__/html.bundle.debug.js @@ -15,10 +15,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(rows, (row) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", row.label)}${_el_resume($scope1_id, "#li/0")}`); - writeScope($scope1_id, { row_id: row?.id }, "__tests__/template.marko", "10:4", { row_id: ["row.id", "10:8"] }); + _scope($scope1_id, { row_id: row?.id }, "__tests__/template.marko", "10:4", { row_id: ["row.id", "10:8"] }); }, "id", $scope0_id, "#ul/1", 1, 1, 1, "", 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { rows, selected, nextId diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-prepend/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-prepend/__snapshots__/html.bundle.js index e62c61983d3..597bc7e2511 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-prepend/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-prepend/__snapshots__/html.bundle.js @@ -15,10 +15,10 @@ var template_default = _template("a", (input) => { _for_of(rows, (row) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", row.label)}${_el_resume($scope1_id, "a")}`); - writeScope($scope1_id, { e: row?.id }); + _scope($scope1_id, { e: row?.id }); }, "id", $scope0_id, "b", 1, 1, 1, "", 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: rows, d: selected, e: nextId diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-preset/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-preset/__snapshots__/html.bundle.debug.js index 62c45050afb..f510aa488e6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-preset/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-preset/__snapshots__/html.bundle.debug.js @@ -22,7 +22,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/1")}${_el_resume($scope1_id, "#tr/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { row_id: row?.id, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4", { row_id: ["row.id", "5:8"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-preset/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-preset/__snapshots__/html.bundle.js index 182222ebd1c..1b467f01cb3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-preset/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-preset/__snapshots__/html.bundle.js @@ -22,7 +22,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "b")}${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { f: row?.id, _: _scope_with_id($scope0_id) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/html.bundle.debug.js index 612792681d7..e2d30d5ecfd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/html.bundle.debug.js @@ -8,9 +8,9 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:4"); }, 0, $scope0_id, "#text/0", 1, 1, 1, 0, 1); _html(`
    ${_el_resume($scope0_id, "#div/1")}`); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/html.bundle.js index 74fa5861df3..8b5ea820483 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-loop-closure-remove-all-items/__snapshots__/html.bundle.js @@ -8,9 +8,9 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", 1, 1, 1, 0, 1); _html(`
    ${_el_resume($scope0_id, "b")}`); - writeScope($scope0_id, { c: items }); + _scope($scope0_id, { c: items }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-of-by-nullish-key/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-of-by-nullish-key/__snapshots__/html.bundle.debug.js index 26b08f82bd5..755096194d1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-of-by-nullish-key/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-of-by-nullish-key/__snapshots__/html.bundle.debug.js @@ -13,10 +13,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(items, (item) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "#text/0", item.text)}
  • `); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:4"); }, "id", $scope0_id, "#ul/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-of-member-signal-collapse/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-of-member-signal-collapse/__snapshots__/html.bundle.debug.js index 0c9ad5c42a4..401a624b3f7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-of-member-signal-collapse/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-of-member-signal-collapse/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.users, (user) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "#text/0", user.name, $sg__input_users)} (${_text_resume($scope1_id, "#text/1", user.role, $sg__input_users * 2)})
  • `); - $si__input_users && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + $si__input_users && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); }, 0, $scope0_id, "#ul/0", $sg__input_users, $sg__input_users, $sg__input_users, "", 1); - $si__input_users && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_users && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-of-member-signal-collapse/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-of-member-signal-collapse/__snapshots__/html.bundle.js index f19b9b419b5..53c0ac0fb4c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-of-member-signal-collapse/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-of-member-signal-collapse/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { _for_of(input.users, (user) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "a", user.name, $sg__input_users)} (${_text_resume($scope1_id, "b", user.role, $sg__input_users * 2)})
  • `); - $si__input_users && writeScope($scope1_id, {}); + $si__input_users && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_users, $sg__input_users, $sg__input_users, "", 1); - $si__input_users && writeScope($scope0_id, {}); + $si__input_users && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-param-underscore/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-param-underscore/__snapshots__/html.bundle.debug.js index 869b5c0766f..a865315d2fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-param-underscore/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-param-underscore/__snapshots__/html.bundle.debug.js @@ -7,11 +7,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`
    ${_escape(_)}:${_text_resume($scope1_id, "#text/2", n, 2)}
    ${_el_resume($scope1_id, "#div/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { __length: _?.length, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2", { __length: ["_.length", "2:6"] }); }, 0, $scope0_id, "#text/0", 1, 0, 0, 0, 1); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-param-underscore/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-param-underscore/__snapshots__/html.bundle.js index 06d02469a0e..28542719efb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-param-underscore/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-param-underscore/__snapshots__/html.bundle.js @@ -7,11 +7,11 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`
    ${_escape(_)}:${_text_resume($scope1_id, "c", n, 2)}
    ${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { f: _?.length, _: _scope_with_id($scope0_id) }); }, 0, $scope0_id, "a", 1, 0, 0, 0, 1); - writeScope($scope0_id, { b: n }); + _scope($scope0_id, { b: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-grow-shrink/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-grow-shrink/__snapshots__/html.bundle.debug.js index d402f2175d0..abd6cbfed14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-grow-shrink/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-grow-shrink/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", child.text, $sg__input_children)}${_el_resume($scope1_id, "#span/0", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); }, "id", $scope0_id, "#div/0", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-grow-shrink/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-grow-shrink/__snapshots__/html.bundle.js index 8666947fd00..5659531527e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-grow-shrink/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-grow-shrink/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", child.text, $sg__input_children)}${_el_resume($scope1_id, "a", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, "id", $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-insert-middle/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-insert-middle/__snapshots__/html.bundle.debug.js index d402f2175d0..abd6cbfed14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-insert-middle/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-insert-middle/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", child.text, $sg__input_children)}${_el_resume($scope1_id, "#span/0", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); }, "id", $scope0_id, "#div/0", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-insert-middle/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-insert-middle/__snapshots__/html.bundle.js index 8666947fd00..5659531527e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-insert-middle/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-insert-middle/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", child.text, $sg__input_children)}${_el_resume($scope1_id, "a", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, "id", $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-mixed/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-mixed/__snapshots__/html.bundle.debug.js index d402f2175d0..abd6cbfed14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-mixed/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-mixed/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", child.text, $sg__input_children)}${_el_resume($scope1_id, "#span/0", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); }, "id", $scope0_id, "#div/0", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-mixed/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-mixed/__snapshots__/html.bundle.js index 8666947fd00..5659531527e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-mixed/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-mixed/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", child.text, $sg__input_children)}${_el_resume($scope1_id, "a", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, "id", $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-replace/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-replace/__snapshots__/html.bundle.debug.js index d402f2175d0..abd6cbfed14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-replace/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-replace/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", child.text, $sg__input_children)}${_el_resume($scope1_id, "#span/0", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); }, "id", $scope0_id, "#div/0", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-replace/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-replace/__snapshots__/html.bundle.js index 8666947fd00..5659531527e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-replace/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-replace/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", child.text, $sg__input_children)}${_el_resume($scope1_id, "a", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, "id", $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-reverse/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-reverse/__snapshots__/html.bundle.debug.js index d402f2175d0..abd6cbfed14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-reverse/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-reverse/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", child.text, $sg__input_children)}${_el_resume($scope1_id, "#span/0", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); }, "id", $scope0_id, "#div/0", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-reverse/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-reverse/__snapshots__/html.bundle.js index 8666947fd00..5659531527e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-reverse/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-reverse/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", child.text, $sg__input_children)}${_el_resume($scope1_id, "a", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, "id", $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-rotate/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-rotate/__snapshots__/html.bundle.debug.js index d402f2175d0..abd6cbfed14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-rotate/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-rotate/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", child.text, $sg__input_children)}${_el_resume($scope1_id, "#span/0", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); }, "id", $scope0_id, "#div/0", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-rotate/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-rotate/__snapshots__/html.bundle.js index 8666947fd00..5659531527e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-rotate/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-rotate/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", child.text, $sg__input_children)}${_el_resume($scope1_id, "a", $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, "id", $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-swap/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-swap/__snapshots__/html.bundle.debug.js index 0e5cfb6db65..f58c6dbff35 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-swap/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-swap/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", child.text, $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); }, "id", $scope0_id, "#div/0", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-swap/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-swap/__snapshots__/html.bundle.js index 0a300a926af..86df4384187 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-reorder-swap/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-reorder-swap/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "a", child.text, $sg__input_children)}`); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, "id", $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-resume-cleanup-free-branch/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-resume-cleanup-free-branch/__snapshots__/html.bundle.debug.js index 3c536d9ae13..9968f0381b7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-resume-cleanup-free-branch/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-resume-cleanup-free-branch/__snapshots__/html.bundle.debug.js @@ -6,9 +6,9 @@ var list_default = _template("__tests__/tags/list.marko", (input) => { _for_to(count, 0, 1, (i) => { const $scope1_id = _scope_id(); _html(`
  • item ${_escape(i)}
  • `); - $si__input_count && writeScope($scope1_id, {}, "__tests__/tags/list.marko", "2:2"); + $si__input_count && _scope($scope1_id, {}, "__tests__/tags/list.marko", "2:2"); }, 0, $scope0_id, "#text/0", $sg__input_count, $sg__input_count, $sg__input_count, 0, 1); - $si__input_count && writeScope($scope0_id, {}, "__tests__/tags/list.marko", 0); + $si__input_count && _scope($scope0_id, {}, "__tests__/tags/list.marko", 0); }); // template.marko @@ -24,12 +24,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); list_default({ count }); - writeScope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "5:2"); + _scope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "5:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { outer, count }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-resume-cleanup-free-branch/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-resume-cleanup-free-branch/__snapshots__/html.bundle.js index 676d86edae8..9df90cbea8b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-resume-cleanup-free-branch/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-resume-cleanup-free-branch/__snapshots__/html.bundle.js @@ -6,9 +6,9 @@ var list_default = _template("b", (input) => { _for_to(count, 0, 1, (i) => { const $scope1_id = _scope_id(); _html(`
  • item ${_escape(i)}
  • `); - $si__input_count && writeScope($scope1_id, {}); + $si__input_count && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_count, $sg__input_count, $sg__input_count, 0, 1); - $si__input_count && writeScope($scope0_id, {}); + $si__input_count && _scope($scope0_id, {}); }); // template.marko @@ -24,12 +24,12 @@ var template_default = _template("a", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); list_default({ count }); - writeScope($scope1_id, { a: _existing_scope($childScope) }); + _scope($scope1_id, { a: _existing_scope($childScope) }); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: outer, e: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js index a249685824e..d5744920bc6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js @@ -7,9 +7,9 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope1_id = _scope_id(); _html(`

    item ${_escape(i)}

    `); _script($scope1_id, "__tests__/tags/child.marko_1"); - $si__input_count && writeScope($scope1_id, {}, "__tests__/tags/child.marko", "2:2"); + $si__input_count && _scope($scope1_id, {}, "__tests__/tags/child.marko", "2:2"); }, 0, $scope0_id, "#text/0", $sg__input_count, $sg__input_count, $sg__input_count, 0, 1); - $si__input_count && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + $si__input_count && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -25,12 +25,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); child_default({ count }); - writeScope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); + _scope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { outer, count }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/__snapshots__/html.bundle.js index 81f77a79c54..9d7ed0fe2fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/__snapshots__/html.bundle.js @@ -7,9 +7,9 @@ var child_default = _template("b", (input) => { const $scope1_id = _scope_id(); _html(`

    item ${_escape(i)}

    `); _script($scope1_id, "b0"); - $si__input_count && writeScope($scope1_id, {}); + $si__input_count && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_count, $sg__input_count, $sg__input_count, 0, 1); - $si__input_count && writeScope($scope0_id, {}); + $si__input_count && _scope($scope0_id, {}); }); // template.marko @@ -25,12 +25,12 @@ var template_default = _template("a", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); child_default({ count }); - writeScope($scope1_id, { a: _existing_scope($childScope) }); + _scope($scope1_id, { a: _existing_scope($childScope) }); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: outer, e: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-row-with-not-taken-if/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-row-with-not-taken-if/__snapshots__/html.bundle.debug.js index c4f9d1fd310..4e409133776 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-row-with-not-taken-if/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-row-with-not-taken-if/__snapshots__/html.bundle.debug.js @@ -11,13 +11,13 @@ var template_default = _template("__tests__/template.marko", (input) => { if (i > 9) { const $scope2_id = _scope_id(); _html("never"); - writeScope($scope2_id, {}, "__tests__/template.marko", "5:4"); + _scope($scope2_id, {}, "__tests__/template.marko", "5:4"); return 0; } }, $scope1_id, "#text/1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); }, 0, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-row-with-not-taken-if/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-row-with-not-taken-if/__snapshots__/html.bundle.js index 110fb63dbfa..39e301cd8ac 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-row-with-not-taken-if/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-row-with-not-taken-if/__snapshots__/html.bundle.js @@ -11,13 +11,13 @@ var template_default = _template("a", (input) => { if (i > 9) { const $scope2_id = _scope_id(); _html("never"); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); return 0; } }, $scope1_id, "b"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "b"); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-selector-by-member/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-selector-by-member/__snapshots__/html.bundle.debug.js index 022bbb45290..7270de0ee57 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-selector-by-member/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-selector-by-member/__snapshots__/html.bundle.debug.js @@ -22,7 +22,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/1")}${_el_resume($scope1_id, "#tr/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { row_user_id: row?.user?.id, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "9:4", { row_user_id: ["row.user.id", "9:8"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-selector-by-member/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-selector-by-member/__snapshots__/html.bundle.js index 01b56c7ac67..dd1738f979b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-selector-by-member/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-selector-by-member/__snapshots__/html.bundle.js @@ -22,7 +22,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "b")}${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { g: row?.user?.id, _: _scope_with_id($scope0_id) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-selector-index/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-selector-index/__snapshots__/html.bundle.debug.js index e5e732f98f8..c04164e9c10 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-selector-index/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-selector-index/__snapshots__/html.bundle.debug.js @@ -13,7 +13,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/1")}${_el_resume($scope1_id, "#tr/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { "#LoopKey": i, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4", { "#LoopKey": "5:15" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-selector-index/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-selector-index/__snapshots__/html.bundle.js index deae0488d19..b07d6d1a307 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-selector-index/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-selector-index/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "b")}${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { M: i, _: _scope_with_id($scope0_id) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-selector-nested-branch-reject/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-selector-nested-branch-reject/__snapshots__/html.bundle.debug.js index 2a6b6a4bed5..7442adaf96b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-selector-nested-branch-reject/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-selector-nested-branch-reject/__snapshots__/html.bundle.debug.js @@ -19,17 +19,17 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); _html(`${_el_resume($scope2_id, "#button/1")}${_el_resume($scope2_id, "#li/0")}`); _script($scope2_id, "__tests__/template.marko_2"); - _subscribe($selected__closures, writeScope($scope2_id, { + _subscribe($selected__closures, _scope($scope2_id, { row_id: row?.id, _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "5:6", { row_id: ["row.id", "5:10"] })); }); _html(""); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2"); return 0; } }, $scope0_id, "#text/0", $sg__input_show, $sg__input_show, $sg__input_show, 0, 1); - writeScope($scope0_id, { + _scope($scope0_id, { selected: $si__input_show && selected, rows: $si__input_show && rows, "ClosureScopes:selected": $selected__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-selector-nested-branch-reject/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-selector-nested-branch-reject/__snapshots__/html.bundle.js index 1d0209dc122..2036f4ac32b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-selector-nested-branch-reject/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-selector-nested-branch-reject/__snapshots__/html.bundle.js @@ -19,17 +19,17 @@ var template_default = _template("a", (input) => { const $scope2_id = _scope_id(); _html(`${_el_resume($scope2_id, "b")}${_el_resume($scope2_id, "a")}`); _script($scope2_id, "a0"); - _subscribe($selected__closures, writeScope($scope2_id, { + _subscribe($selected__closures, _scope($scope2_id, { f: row?.id, _: _scope_with_id($scope1_id) })); }); _html(""); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", $sg__input_show, $sg__input_show, $sg__input_show, 0, 1); - writeScope($scope0_id, { + _scope($scope0_id, { e: $si__input_show && selected, f: $si__input_show && rows, g: $selected__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-selector-property-path-reject/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-selector-property-path-reject/__snapshots__/html.bundle.debug.js index d64de06c9ff..a1a1d81ac2f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-selector-property-path-reject/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-selector-property-path-reject/__snapshots__/html.bundle.debug.js @@ -22,7 +22,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/1")}${_el_resume($scope1_id, "#tr/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { row_id: row?.id, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4", { row_id: ["row.id", "5:8"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-selector-property-path-reject/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-selector-property-path-reject/__snapshots__/html.bundle.js index 460400e64c9..c37c4b9a7b7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-selector-property-path-reject/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-selector-property-path-reject/__snapshots__/html.bundle.js @@ -22,7 +22,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "b")}${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { f: row?.id, _: _scope_with_id($scope0_id) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-selector-to/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-selector-to/__snapshots__/html.bundle.debug.js index 4349973f428..ca5bc497662 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-selector-to/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-selector-to/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/1")}${_el_resume($scope1_id, "#tr/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { "#LoopKey": i, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:4", { "#LoopKey": "4:8" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-selector-to/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-selector-to/__snapshots__/html.bundle.js index 93ac65cac30..2d6774577d1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-selector-to/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-selector-to/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "b")}${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { M: i, _: _scope_with_id($scope0_id) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/html.bundle.debug.js index a028d59a6c0..a5196bd9f24 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { "#LoopKey": index }, "__tests__/template.marko", "3:4", { "#LoopKey": "3:11" }); + _scope($scope1_id, { "#LoopKey": index }, "__tests__/template.marko", "3:4", { "#LoopKey": "3:11" }); }); _html(""); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/html.bundle.js index 48f9fcf054b..17116ee1a61 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-serialize-key/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { M: index }); + _scope($scope1_id, { M: index }); }); _html(""); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/html.bundle.debug.js index bc938764712..845222d9bd7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/html.bundle.debug.js @@ -7,9 +7,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(children, () => { const $scope1_id = _scope_id(); _html("
    "); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:4"); }, 0, $scope0_id, "#div/0", 1, 1, 1, "", 1); _script($scope0_id, "__tests__/template.marko_0_children#1"); - writeScope($scope0_id, { children }, "__tests__/template.marko", 0, { children: "1:6" }); + _scope($scope0_id, { children }, "__tests__/template.marko", 0, { children: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/html.bundle.js index db6f343c44c..0cfe95f4c4d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/html.bundle.js @@ -7,9 +7,9 @@ var template_default = _template("a", (input) => { _for_of(children, () => { const $scope1_id = _scope_id(); _html("
    "); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", 1, 1, 1, "", 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { b: children }); + _scope($scope0_id, { b: children }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/html.bundle.debug.js index 50141441920..5d36eb25765 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/html.bundle.debug.js @@ -7,10 +7,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(children, () => { const $scope1_id = _scope_id(); _html("Child"); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:4"); }, 0, $scope0_id, "#text/1"); _html(`${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0_children#2"); - writeScope($scope0_id, { children }, "__tests__/template.marko", 0, { children: "1:6" }); + _scope($scope0_id, { children }, "__tests__/template.marko", 0, { children: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/html.bundle.js index df2d20af8c1..6d79015bca3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-text-node-with-text-before/__snapshots__/html.bundle.js @@ -7,10 +7,10 @@ var template_default = _template("a", (input) => { _for_of(children, () => { const $scope1_id = _scope_id(); _html("Child"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "b"); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: children }); + _scope($scope0_id, { c: children }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/html.bundle.debug.js index f240c91c506..0159ac9cad4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/html.bundle.debug.js @@ -6,10 +6,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_to(3, 0, 1, (index) => { const $scope1_id = _scope_id(); _html(`${_escape(index)}-${_text_resume($scope1_id, "#text/1", count, 2)}`); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2"); }, 0, $scope0_id, "#text/0", 1, 0, 0); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/html.bundle.js index 04474a48d49..e06b1a5aad8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-static-value-with-closure/__snapshots__/html.bundle.js @@ -6,10 +6,10 @@ var template_default = _template("a", (input) => { _for_to(3, 0, 1, (index) => { const $scope1_id = _scope_id(); _html(`${_escape(index)}-${_text_resume($scope1_id, "b", count, 2)}`); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, 0, $scope0_id, "a", 1, 0, 0); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: count }); + _scope($scope0_id, { d: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/html.bundle.debug.js index 4659eb5be90..005f6bae376 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/html.bundle.debug.js @@ -19,9 +19,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(arrB, (val, i) => { const $scope2_id = _scope_id(); _html(`
    ${_escape(i)}: ${_text_resume($scope2_id, "#text/1", val, 2)}
    `); - writeScope($scope2_id, {}, "__tests__/template.marko", "9:2"); + _scope($scope2_id, {}, "__tests__/template.marko", "9:2"); }, 0, $scope0_id, "#text/1", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/html.bundle.js index eab3a483780..f26fe0ae4a8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/html.bundle.js @@ -17,9 +17,9 @@ var template_default = _template("a", (input) => { ], (val, i) => { const $scope2_id = _scope_id(); _html(`
    ${_escape(i)}: ${_text_resume($scope2_id, "b", val, 2)}
    `); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); }, 0, $scope0_id, "b", 1, 1, 1, 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-text-constructor/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-text-constructor/__snapshots__/html.bundle.debug.js index 032712fdf16..7e6d362bf86 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-text-constructor/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-text-constructor/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.words, (w) => { const $scope1_id = _scope_id(); _html("constructor"); - $si__input_words && writeScope($scope1_id, {}, "__tests__/template.marko", "1:7"); + $si__input_words && _scope($scope1_id, {}, "__tests__/template.marko", "1:7"); }, 0, $scope0_id, "#div/0", $sg__input_words, $sg__input_words, $sg__input_words, ""); - $si__input_words && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_words && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-text-constructor/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-text-constructor/__snapshots__/html.bundle.js index 0846fd17f25..b2d7023cb29 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-text-constructor/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-text-constructor/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { _for_of(input.words, (w) => { const $scope1_id = _scope_id(); _html("constructor"); - $si__input_words && writeScope($scope1_id, {}); + $si__input_words && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_words, $sg__input_words, $sg__input_words, ""); - $si__input_words && writeScope($scope0_id, {}); + $si__input_words && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-to-range-resume-key/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-to-range-resume-key/__snapshots__/html.bundle.debug.js index a52b3689fdb..1a153dd3dac 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-to-range-resume-key/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-to-range-resume-key/__snapshots__/html.bundle.debug.js @@ -7,8 +7,8 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:2"); }, 0, $scope0_id, "#text/0", 1, 1, 1, 0, 1); - writeScope($scope0_id, { end }, "__tests__/template.marko", 0, { end: "3:6" }); + _scope($scope0_id, { end }, "__tests__/template.marko", 0, { end: "3:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-to-range-resume-key/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-to-range-resume-key/__snapshots__/html.bundle.js index 94a014dbadb..b50c059a35f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-to-range-resume-key/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-to-range-resume-key/__snapshots__/html.bundle.js @@ -7,8 +7,8 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", 1, 1, 1, 0, 1); - writeScope($scope0_id, { b: end }); + _scope($scope0_id, { b: end }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-unchanged-args-skip-params/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/for-unchanged-args-skip-params/__snapshots__/html.bundle.debug.js index 5aeb31035f2..4de626361fb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-unchanged-args-skip-params/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-unchanged-args-skip-params/__snapshots__/html.bundle.debug.js @@ -20,10 +20,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(items, (item, index) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "#text/0", index)}:${_text_resume($scope1_id, "#text/1", item.id, 2)}=${_text_resume($scope1_id, "#text/2", item.n, 2)}
  • `); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:4"); }, "id", $scope0_id, "#ul/0", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-unchanged-args-skip-params/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/for-unchanged-args-skip-params/__snapshots__/html.bundle.js index 689c984b467..e8b8291ffbe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/for-unchanged-args-skip-params/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/for-unchanged-args-skip-params/__snapshots__/html.bundle.js @@ -20,10 +20,10 @@ var template_default = _template("a", (input) => { _for_of(items, (item, index) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "a", index)}:${_text_resume($scope1_id, "b", item.id, 2)}=${_text_resume($scope1_id, "c", item.n, 2)}
  • `); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, "id", $scope0_id, "a", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: items }); + _scope($scope0_id, { e: items }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/html.bundle.debug.js index 136416f0b12..1a807ec7be4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }; _html(`
    ${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0_baz#2"); - writeScope($scope0_id, { + _scope($scope0_id, { foo, baz }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/html.bundle.js index 6e5fa5789f1..385e0a8fef6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-references-normalize/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { }; _html(`
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { b: foo, c: baz }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/html.bundle.debug.js index 1fb33e57c5d..61911ff9eee 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/html.bundle.debug.js @@ -19,7 +19,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope0_id, "__tests__/template.marko_0_c#7"); _script($scope0_id, "__tests__/template.marko_0_b#6"); _script($scope0_id, "__tests__/template.marko_0_a#5"); - writeScope($scope0_id, { + _scope($scope0_id, { foo, foo_bar: foo?.bar, a, diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/html.bundle.js index f3309ed9200..cd08f1c4c43 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-references-optional-member-normalize/__snapshots__/html.bundle.js @@ -19,7 +19,7 @@ var template_default = _template("a", (input) => { _script($scope0_id, "a3"); _script($scope0_id, "a4"); _script($scope0_id, "a5"); - writeScope($scope0_id, { + _scope($scope0_id, { d: foo, e: void 0, f: a, diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/html.bundle.debug.js index 8b3c71f2024..96875d88732 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/html.bundle.debug.js @@ -11,5 +11,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_escape(sum(1, 2))}
    ${_escape(add1(3))}
    ${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/html.bundle.js index 9f96c2372ef..432c7b4a70e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-registration/__snapshots__/html.bundle.js @@ -8,5 +8,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_escape(sum(1, 2))}
    ${_escape(add1(3))}
    ${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/html.bundle.debug.js index e4ddcb247ba..d00e36620ea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/html.bundle.debug.js @@ -10,5 +10,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const onClick = void 0 !== $onClick ? $onClick : updateText; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_onClick#3"); - writeScope($scope0_id, { onClick }, "__tests__/template.marko", 0, { onClick: "6:3" }); + _scope($scope0_id, { onClick }, "__tests__/template.marko", 0, { onClick: "6:3" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/html.bundle.js index 7fa1cf077ba..a640fa1a9af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-default-registration/__snapshots__/html.bundle.js @@ -10,5 +10,5 @@ var template_default = _template("a", (input) => { const onClick = void 0 !== $onClick ? $onClick : updateText; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: onClick }); + _scope($scope0_id, { d: onClick }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/html.bundle.debug.js index 79a9e35585a..5f670310b30 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/html.bundle.debug.js @@ -12,5 +12,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const onClick = updateText; _html(`
    ${_escape(sum(1, 2))}
    ${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0_onClick#3"); - writeScope($scope0_id, { onClick }, "__tests__/template.marko", 0, { onClick: "10:7" }); + _scope($scope0_id, { onClick }, "__tests__/template.marko", 0, { onClick: "10:7" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/html.bundle.js index 3e63619f5e9..74076c4edf1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/html.bundle.js @@ -12,5 +12,5 @@ var template_default = _template("a", (input) => { const onClick = updateText; _html(`
    ${_escape(sum(1, 2))}
    ${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: onClick }); + _scope($scope0_id, { d: onClick }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/html.bundle.debug.js index 18e7213bdf1..8db175e07ae 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/html.bundle.debug.js @@ -8,9 +8,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(items, (item) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "#text/0", item)}
  • `); - writeScope($scope1_id, {}, "__tests__/template.marko", "7:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "7:4"); }, 0, $scope0_id, "#ul/1", 1, 1, 1, "", 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/html.bundle.js index 4b307872e2c..053f9df0fcc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/getter-on-single-node-only-child/__snapshots__/html.bundle.js @@ -8,9 +8,9 @@ var template_default = _template("a", (input) => { _for_of(items, (item) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "a", item)}
  • `); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "b", 1, 1, 1, "", 1); _script($scope0_id, "a1"); - writeScope($scope0_id, { c: items }); + _scope($scope0_id, { c: items }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hello-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hello-dynamic/__snapshots__/html.bundle.debug.js index 89bca21d097..ec210e1e1cc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hello-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hello-dynamic/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(), $sg__input_name = _serialize_guard($scope0_reason, 1); const $scope0_id = _scope_id(); _html(`Hello ${_text_resume($scope0_id, "#text/0", input.name, $sg__input_name * 2)}! Hello ${_html_resume($scope0_id, "#text/1", input.name, $sg__input_name * 2)}! Hello ${_html_resume($scope0_id, "#text/2", input.missing, _serialize_guard($scope0_reason, 2) * 2)}!`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hello-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hello-dynamic/__snapshots__/html.bundle.js index c0c1e0e23a3..7fd75aac24a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hello-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hello-dynamic/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(), $sg__input_name = _serialize_guard($scope0_reason, 1); const $scope0_id = _scope_id(); _html(`Hello ${_text_resume($scope0_id, "a", input.name, $sg__input_name * 2)}! Hello ${_html_resume($scope0_id, "b", input.name, $sg__input_name * 2)}! Hello ${_html_resume($scope0_id, "c", input.missing, _serialize_guard($scope0_reason, 2) * 2)}!`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/html.bundle.debug.js index ea5768d05a8..75e06a43ffd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -13,7 +13,7 @@ var thing_default = _template("__tests__/tags/thing.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.what, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/thing.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/thing.marko", 0); }); // template.marko @@ -26,9 +26,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); let setHtml = child_default({}); - _subscribe($what_content__subscribers, writeScope($scope1_id, { setHtml }, "__tests__/template.marko", "3:4", { setHtml: "4:12" })); + _subscribe($what_content__subscribers, _scope($scope1_id, { setHtml }, "__tests__/template.marko", "3:4", { setHtml: "4:12" })); _assert_hoist(setHtml); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "ClosureScopes:1": $what_content__subscribers }, "__tests__/template.marko", 0); + _scope($scope0_id, { "ClosureScopes:1": $what_content__subscribers }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/html.bundle.js index e9a6b12a4c6..36154c9899d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-attr-tag/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "b0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -13,7 +13,7 @@ var thing_default = _template("c", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.what, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -26,8 +26,8 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); let setHtml = child_default({}); - _subscribe($what_content__subscribers, writeScope($scope1_id, { c: setHtml })); + _subscribe($what_content__subscribers, _scope($scope1_id, { c: setHtml })); }, $scope0_id) }) }); _script($scope0_id, "a2"); - writeScope($scope0_id, { B1: $what_content__subscribers }); + _scope($scope0_id, { B1: $what_content__subscribers }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js index 62a8ad0fb37..d30a4ee3bb2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var thing_default = _template("__tests__/tags/thing.marko", (input) => { const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, $sg__input_content); _dynamic_tag($scope0_id, "#text/1", input.content, {}, 0, 0, $sg__input_content); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/thing.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/thing.marko", 0); }); // tags/child.marko @@ -13,7 +13,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -29,7 +29,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); let setHtml = child_default({}); - _subscribe($thing_content__subscribers, writeScope($scope1_id, { setHtml }, "__tests__/template.marko", "3:2", { setHtml: "4:10" })); + _subscribe($thing_content__subscribers, _scope($scope1_id, { setHtml }, "__tests__/template.marko", "3:2", { setHtml: "4:10" })); _assert_hoist(setHtml); }, $scope0_id) }); _dynamic_tag($scope0_id, "#text/1", input.show ? thing_default : null, {}, _content_resume("__tests__/template.marko_2*content", () => { @@ -40,20 +40,20 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope3_id = _scope_id(); let setHtml2 = child_default({}); - _subscribe($thing_content2__subscribers, writeScope($scope3_id, { setHtml2 }, "__tests__/template.marko", "16:4", { setHtml2: "17:12" })); + _subscribe($thing_content2__subscribers, _scope($scope3_id, { setHtml2 }, "__tests__/template.marko", "16:4", { setHtml2: "17:12" })); _assert_hoist(setHtml2); }, $scope2_id) }); - _subscribe($inputshowThingnull_content__subscribers, writeScope($scope2_id, { "ClosureScopes:3": $thing_content2__subscribers }, "__tests__/template.marko", "15:4")); + _subscribe($inputshowThingnull_content__subscribers, _scope($scope2_id, { "ClosureScopes:3": $thing_content2__subscribers }, "__tests__/template.marko", "15:4")); }, $scope0_id), 0, $sg__input_show); _dynamic_tag($scope0_id, "#text/2", input.show ? "section" : null, {}, _content_resume("__tests__/template.marko_4*content", () => { const $scope4_id = _scope_id(); _scope_reason(); let setHtml3 = child_default({}); - _subscribe($inputshowsectionnull_content__subscribers, writeScope($scope4_id, { setHtml3 }, "__tests__/template.marko", "26:4", { setHtml3: "27:10" })); + _subscribe($inputshowsectionnull_content__subscribers, _scope($scope4_id, { setHtml3 }, "__tests__/template.marko", "26:4", { setHtml3: "27:10" })); _assert_hoist(setHtml3); }, $scope0_id), 0, $sg__input_show); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { "ClosureScopes:1": $thing_content__subscribers, "ClosureScopes:2": $inputshowThingnull_content__subscribers, "ClosureScopes:4": $inputshowsectionnull_content__subscribers diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/html.bundle.js index ddb80b30ea8..3f2202d4243 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-from-dynamic/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var thing_default = _template("c", (input) => { const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, $sg__input_content); _dynamic_tag($scope0_id, "b", input.content, {}, 0, 0, $sg__input_content); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/child.marko @@ -13,7 +13,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "b0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -29,7 +29,7 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); let setHtml = child_default({}); - _subscribe($thing_content__subscribers, writeScope($scope1_id, { c: setHtml })); + _subscribe($thing_content__subscribers, _scope($scope1_id, { c: setHtml })); }, $scope0_id) }); _dynamic_tag($scope0_id, "b", input.show ? thing_default : null, {}, _content_resume("a3", () => { const $scope2_id = _scope_id(); @@ -39,18 +39,18 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope3_id = _scope_id(); let setHtml2 = child_default({}); - _subscribe($thing_content2__subscribers, writeScope($scope3_id, { c: setHtml2 })); + _subscribe($thing_content2__subscribers, _scope($scope3_id, { c: setHtml2 })); }, $scope2_id) }); - _subscribe($inputshowThingnull_content__subscribers, writeScope($scope2_id, { B3: $thing_content2__subscribers })); + _subscribe($inputshowThingnull_content__subscribers, _scope($scope2_id, { B3: $thing_content2__subscribers })); }, $scope0_id), 0, $sg__input_show); _dynamic_tag($scope0_id, "c", input.show ? "section" : null, {}, _content_resume("a4", () => { const $scope4_id = _scope_id(); _scope_reason(); let setHtml3 = child_default({}); - _subscribe($inputshowsectionnull_content__subscribers, writeScope($scope4_id, { c: setHtml3 })); + _subscribe($inputshowsectionnull_content__subscribers, _scope($scope4_id, { c: setHtml3 })); }, $scope0_id), 0, $sg__input_show); _script($scope0_id, "a5"); - writeScope($scope0_id, { + _scope($scope0_id, { B1: $thing_content__subscribers, B2: $inputshowThingnull_content__subscribers, B4: $inputshowsectionnull_content__subscribers diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/html.bundle.debug.js index b7697dd73ee..0c78eed4074 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -16,7 +16,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_to(5, 0, 1, () => { const $scope1_id = _scope_id(); let setHtml = child_default({}); - writeScope($scope1_id, { setHtml }, "__tests__/template.marko", "1:2", { setHtml: "2:10" }); + _scope($scope1_id, { setHtml }, "__tests__/template.marko", "1:2", { setHtml: "2:10" }); _assert_hoist(setHtml); }, 0, $scope0_id, "#text/0", 1, 0, 0, 0, 1); let to = 3; @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_to(to, 0, 1, () => { const $scope2_id = _scope_id(); let setHtml2 = child_default({}); - writeScope($scope2_id, { setHtml2 }, "__tests__/template.marko", "12:2", { setHtml2: "13:10" }); + _scope($scope2_id, { setHtml2 }, "__tests__/template.marko", "12:2", { setHtml2: "13:10" }); _assert_hoist(setHtml2); }, 0, $scope0_id, "#text/1", 1, 0, 0, 0, 1); _html("
    "); @@ -34,11 +34,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_to(3, 0, 1, (j) => { const $scope4_id = _scope_id(); let setHtml3 = child_default({}); - writeScope($scope4_id, { setHtml3 }, "__tests__/template.marko", "24:4", { setHtml3: "25:12" }); + _scope($scope4_id, { setHtml3 }, "__tests__/template.marko", "24:4", { setHtml3: "25:12" }); _assert_hoist(setHtml3); }, 0, $scope3_id, "#ul/0", 1, 0, 0, 0, 1); _html(""); - writeScope($scope3_id, {}, "__tests__/template.marko", "22:2"); + _scope($scope3_id, {}, "__tests__/template.marko", "22:2"); }, 0, $scope0_id, "#text/2", 1, 0, 0, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/html.bundle.js index 959378bdcb6..b1b5ae6cdda 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-many/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "b0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -14,22 +14,22 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _hoist($scope0_id, "a0"); _for_to(5, 0, 1, () => { - writeScope(_scope_id(), { c: child_default({}) }); + _scope(_scope_id(), { c: child_default({}) }); }, 0, $scope0_id, "a", 1, 0, 0, 0, 1); let to = 3; _html("
    "); _for_to(to, 0, 1, () => { - writeScope(_scope_id(), { c: child_default({}) }); + _scope(_scope_id(), { c: child_default({}) }); }, 0, $scope0_id, "b", 1, 0, 0, 0, 1); _html("
    "); _for_to(3, 0, 1, (i) => { const $scope3_id = _scope_id(); _html("
      "); _for_to(3, 0, 1, (j) => { - writeScope(_scope_id(), { c: child_default({}) }); + _scope(_scope_id(), { c: child_default({}) }); }, 0, $scope3_id, "a", 1, 0, 0, 0, 1); _html("
    "); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }, 0, $scope0_id, "c", 1, 0, 0, 0, 1); _script($scope0_id, "a1"); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/html.bundle.debug.js index 1178b293a84..b1046e73c95 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); const $return = _resume(() => input.value, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, { input_value: input.value }, "__tests__/tags/child.marko", 0, { input_value: ["input.value"] }); + _scope($scope0_id, { input_value: input.value }, "__tests__/tags/child.marko", 0, { input_value: ["input.value"] }); return $return; }); @@ -21,15 +21,15 @@ var template_default = _template("__tests__/template.marko", (input) => { const $for_content2__ref_getter = _hoist($scope2_id, "__tests__/template.marko_2_ref#3/hoist"); let ref = child_default({ value: `${i},${j}` }); _script($scope2_id, "__tests__/template.marko_2"); - writeScope($scope2_id, { + _scope($scope2_id, { ref, _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4", { ref: "9:12" }); _assert_hoist(ref); }, 0, $scope1_id, "#text/0", 1, 0, 0); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2"); }, 0, $scope0_id, "#text/3", 1, 0, 0); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/html.bundle.js index 964c817567d..3e6995cc71f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-minimum-scope/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { _scope_reason(); const $scope0_id = _scope_id(); const $return = _resume(() => input.value, "b0", $scope0_id); - writeScope($scope0_id, { c: input.value }); + _scope($scope0_id, { c: input.value }); return $return; }); @@ -21,14 +21,14 @@ var template_default = _template("a", (input) => { _hoist($scope2_id, "a2"); let ref = child_default({ value: `${i},${j}` }); _script($scope2_id, "a3"); - writeScope($scope2_id, { + _scope($scope2_id, { d: ref, _: _scope_with_id($scope1_id) }); }, 0, $scope1_id, "a", 1, 0, 0); _script($scope1_id, "a4"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, 0, $scope0_id, "d", 1, 0, 0); _script($scope0_id, "a5"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/html.bundle.debug.js index e63e5448b04..a0b04eeece6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "__tests__/tags/child.marko_0_input#1"); - writeScope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); + _scope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); }); // tags/source.marko @@ -19,7 +19,7 @@ var source_default = _template("__tests__/tags/source.marko", (input) => { ((el) => el())(_el_read_error).classList.add(value); } }), "__tests__/tags/source.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/source.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/source.marko", 0); return $return; }); @@ -32,6 +32,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/action", $scope0_id) }); let api = source_default({}); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { api }, "__tests__/template.marko", 0, { api: "3:9" }); + _scope($scope0_id, { api }, "__tests__/template.marko", 0, { api: "3:9" }); _assert_hoist(api); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/html.bundle.js index 1a95a5499f9..48a7e49fd9b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope-calls-only/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "b0"); - writeScope($scope0_id, { b: input }); + _scope($scope0_id, { b: input }); }); // tags/source.marko @@ -19,7 +19,7 @@ var source_default = _template("c", (input) => { ((el) => el())(_el_read_error).classList.add(value); } }), "c0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -32,5 +32,5 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); let api = source_default({}); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: api }); + _scope($scope0_id, { d: api }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/html.bundle.debug.js index 3a9b5659086..e80d9f182ad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var thing_default = _template("__tests__/tags/thing.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "__tests__/tags/thing.marko_0_input_value#2"); - writeScope($scope0_id, { input_value: input.value }, "__tests__/tags/thing.marko", 0, { input_value: ["input.value"] }); + _scope($scope0_id, { input_value: input.value }, "__tests__/tags/thing.marko", 0, { input_value: ["input.value"] }); }); // tags/child.marko @@ -12,7 +12,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -23,6 +23,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const $setHtml_getter = _hoist($scope0_id, "__tests__/template.marko_0_setHtml#3/hoist"); thing_default({ value: $setHtml_getter }); let setHtml = child_default({}); - writeScope($scope0_id, { setHtml }, "__tests__/template.marko", 0, { setHtml: "2:8" }); + _scope($scope0_id, { setHtml }, "__tests__/template.marko", 0, { setHtml: "2:8" }); _assert_hoist(setHtml); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/html.bundle.js index b66c7c536f6..f30e0ab3183 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var-same-scope/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var thing_default = _template("c", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "c0"); - writeScope($scope0_id, { c: input.value }); + _scope($scope0_id, { c: input.value }); }); // tags/child.marko @@ -12,7 +12,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "b0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -21,5 +21,5 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope0_id = _scope_id(); thing_default({ value: _hoist($scope0_id, "a0") }); - writeScope($scope0_id, { d: child_default({}) }); + _scope($scope0_id, { d: child_default({}) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/html.bundle.debug.js index d8ee43d5037..ecd1ec0a282 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -13,7 +13,7 @@ var thing_default = _template("__tests__/tags/thing.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "__tests__/tags/thing.marko_0_input_value#2"); - writeScope($scope0_id, { input_value: input.value }, "__tests__/tags/thing.marko", 0, { input_value: ["input.value"] }); + _scope($scope0_id, { input_value: input.value }, "__tests__/tags/thing.marko", 0, { input_value: ["input.value"] }); }); // template.marko @@ -28,12 +28,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (input.show) { const $scope2_id = _scope_id(); let setHtml = child_default({}); - writeScope($scope2_id, { setHtml }, "__tests__/template.marko", "2:4", { setHtml: "3:12" }); + _scope($scope2_id, { setHtml }, "__tests__/template.marko", "2:4", { setHtml: "3:12" }); _assert_hoist(setHtml); return 0; } }, $scope1_id, "#text/0", 1, $sg__input_show, $sg__input_show, 0, 1); - writeScope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2"); + _scope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2"); return 0; } }, $scope0_id, "#text/0", 1, $sg__input_show, $sg__input_show); @@ -42,7 +42,7 @@ var template_default = _template("__tests__/template.marko", (input) => { if (true) { const $scope3_id = _scope_id(); let setHtml2 = child_default({}); - writeScope($scope3_id, { setHtml2 }, "__tests__/template.marko", "13:2", { setHtml2: "14:10" }); + _scope($scope3_id, { setHtml2 }, "__tests__/template.marko", "13:2", { setHtml2: "14:10" }); _assert_hoist(setHtml2); return 0; } @@ -51,7 +51,7 @@ var template_default = _template("__tests__/template.marko", (input) => { if (true) { const $scope4_id = _scope_id(); let setHtml3 = child_default({}); - writeScope($scope4_id, { setHtml3 }, "__tests__/template.marko", "22:2", { setHtml3: "23:10" }); + _scope($scope4_id, { setHtml3 }, "__tests__/template.marko", "22:2", { setHtml3: "23:10" }); _assert_hoist(setHtml3); return 0; } @@ -59,8 +59,8 @@ var template_default = _template("__tests__/template.marko", (input) => { if (true) { const $scope5_id = _scope_id(); _script($scope5_id, "__tests__/template.marko_5"); - writeScope($scope5_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "26:2"); + _scope($scope5_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "26:2"); } _script($scope0_id, "__tests__/template.marko_0"); - $si__input_show && writeScope($scope0_id, { input_show: input.show }, "__tests__/template.marko", 0, { input_show: ["input.show"] }); + $si__input_show && _scope($scope0_id, { input_show: input.show }, "__tests__/template.marko", 0, { input_show: ["input.show"] }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/html.bundle.js index c5902f22e73..58e645e3f10 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-custom-tag-var/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "b0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -13,7 +13,7 @@ var thing_default = _template("c", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "c0"); - writeScope($scope0_id, { c: input.value }); + _scope($scope0_id, { c: input.value }); }); // template.marko @@ -26,28 +26,28 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _if(() => { if (input.show) { - writeScope(_scope_id(), { c: child_default({}) }); + _scope(_scope_id(), { c: child_default({}) }); return 0; } }, $scope1_id, "a", 1, $sg__input_show, $sg__input_show, 0, 1); - writeScope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", 1, $sg__input_show, $sg__input_show); thing_default({ value: $setHtml_getter }); _if(() => { - writeScope(_scope_id(), { c: child_default({}) }); + _scope(_scope_id(), { c: child_default({}) }); return 0; }, $scope0_id, "c", 1, 0, $sg__input_show, 0, 1); _if(() => { - writeScope(_scope_id(), { c: child_default({}) }); + _scope(_scope_id(), { c: child_default({}) }); return 0; }, $scope0_id, "d", 1, 0, $sg__input_show, 0, 1); { const $scope5_id = _scope_id(); _script($scope5_id, "a1"); - writeScope($scope5_id, { _: _scope_with_id($scope0_id) }); + _scope($scope5_id, { _: _scope_with_id($scope0_id) }); } _script($scope0_id, "a2"); - $si__input_show && writeScope($scope0_id, { h: input.show }); + $si__input_show && _scope($scope0_id, { h: input.show }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js index 03ee5bd9c4d..782de9afa37 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -14,7 +14,7 @@ var thing_default = _template("__tests__/tags/thing.marko", (input) => { const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, $sg__input_content); _dynamic_tag($scope0_id, "#text/1", input.content, {}, 0, 0, $sg__input_content); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/thing.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/thing.marko", 0); }); // template.marko @@ -31,7 +31,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $Child_scope = _peek_scope_id(); let setHtml = _dynamic_tag($scope1_id, "#text/0", 1 && child_default, {}); _var($scope1_id, "#scopeOffset/1", $Child_scope, "__tests__/template.marko_1_setHtml#2/var"); - _subscribe($thing_content__subscribers, writeScope($scope1_id, { setHtml }, "__tests__/template.marko", "4:2", { setHtml: "5:18" })); + _subscribe($thing_content__subscribers, _scope($scope1_id, { setHtml }, "__tests__/template.marko", "4:2", { setHtml: "5:18" })); _assert_hoist(setHtml); }, $scope0_id) }); _dynamic_tag($scope0_id, "#text/1", input.show ? thing_default : null, {}, _content_resume("__tests__/template.marko_2*content", () => { @@ -44,10 +44,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $Child_scope2 = _peek_scope_id(); let setHtml2 = _dynamic_tag($scope3_id, "#text/0", 1 && child_default, {}); _var($scope3_id, "#scopeOffset/1", $Child_scope2, "__tests__/template.marko_3_setHtml2#2/var"); - _subscribe($thing_content2__subscribers, writeScope($scope3_id, { setHtml2 }, "__tests__/template.marko", "17:4", { setHtml2: "18:20" })); + _subscribe($thing_content2__subscribers, _scope($scope3_id, { setHtml2 }, "__tests__/template.marko", "17:4", { setHtml2: "18:20" })); _assert_hoist(setHtml2); }, $scope2_id) }); - _subscribe($inputshowThingnull_content__subscribers, writeScope($scope2_id, { "ClosureScopes:3": $thing_content2__subscribers }, "__tests__/template.marko", "16:4")); + _subscribe($inputshowThingnull_content__subscribers, _scope($scope2_id, { "ClosureScopes:3": $thing_content2__subscribers }, "__tests__/template.marko", "16:4")); }, $scope0_id), 0, $sg__input_show); _dynamic_tag($scope0_id, "#text/2", input.show ? "section" : null, {}, _content_resume("__tests__/template.marko_4*content", () => { const $scope4_id = _scope_id(); @@ -55,11 +55,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $Child_scope3 = _peek_scope_id(); let setHtml3 = _dynamic_tag($scope4_id, "#text/0", 1 && child_default, {}); _var($scope4_id, "#scopeOffset/1", $Child_scope3, "__tests__/template.marko_4_setHtml3#2/var"); - _subscribe($inputshowsectionnull_content__subscribers, writeScope($scope4_id, { setHtml3 }, "__tests__/template.marko", "27:4", { setHtml3: "28:18" })); + _subscribe($inputshowsectionnull_content__subscribers, _scope($scope4_id, { setHtml3 }, "__tests__/template.marko", "27:4", { setHtml3: "28:18" })); _assert_hoist(setHtml3); }, $scope0_id), 0, $sg__input_show); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { "ClosureScopes:1": $thing_content__subscribers, "ClosureScopes:2": $inputshowThingnull_content__subscribers, "ClosureScopes:4": $inputshowsectionnull_content__subscribers diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/html.bundle.js index ef143adf70b..4851eebf6e3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-from-dynamic/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "b0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -14,7 +14,7 @@ var thing_default = _template("c", (input) => { const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, $sg__input_content); _dynamic_tag($scope0_id, "b", input.content, {}, 0, 0, $sg__input_content); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -31,7 +31,7 @@ var template_default = _template("a", (input) => { const $Child_scope = _peek_scope_id(); let setHtml = _dynamic_tag($scope1_id, "a", child_default, {}); _var($scope1_id, "b", $Child_scope, "a1"); - _subscribe($thing_content__subscribers, writeScope($scope1_id, { c: setHtml })); + _subscribe($thing_content__subscribers, _scope($scope1_id, { c: setHtml })); }, $scope0_id) }); _dynamic_tag($scope0_id, "b", input.show ? thing_default : null, {}, _content_resume("a5", () => { const $scope2_id = _scope_id(); @@ -43,9 +43,9 @@ var template_default = _template("a", (input) => { const $Child_scope2 = _peek_scope_id(); let setHtml2 = _dynamic_tag($scope3_id, "a", child_default, {}); _var($scope3_id, "b", $Child_scope2, "a3"); - _subscribe($thing_content2__subscribers, writeScope($scope3_id, { c: setHtml2 })); + _subscribe($thing_content2__subscribers, _scope($scope3_id, { c: setHtml2 })); }, $scope2_id) }); - _subscribe($inputshowThingnull_content__subscribers, writeScope($scope2_id, { B3: $thing_content2__subscribers })); + _subscribe($inputshowThingnull_content__subscribers, _scope($scope2_id, { B3: $thing_content2__subscribers })); }, $scope0_id), 0, $sg__input_show); _dynamic_tag($scope0_id, "c", input.show ? "section" : null, {}, _content_resume("a7", () => { const $scope4_id = _scope_id(); @@ -53,10 +53,10 @@ var template_default = _template("a", (input) => { const $Child_scope3 = _peek_scope_id(); let setHtml3 = _dynamic_tag($scope4_id, "a", child_default, {}); _var($scope4_id, "b", $Child_scope3, "a6"); - _subscribe($inputshowsectionnull_content__subscribers, writeScope($scope4_id, { c: setHtml3 })); + _subscribe($inputshowsectionnull_content__subscribers, _scope($scope4_id, { c: setHtml3 })); }, $scope0_id), 0, $sg__input_show); _script($scope0_id, "a8"); - writeScope($scope0_id, { + _scope($scope0_id, { B1: $thing_content__subscribers, B2: $inputshowThingnull_content__subscribers, B4: $inputshowsectionnull_content__subscribers diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/html.bundle.debug.js index 9c0d8819b23..145944f88ad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -18,7 +18,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $Child_scope = _peek_scope_id(); let setHtml = _dynamic_tag($scope1_id, "#text/0", 1 && child_default, {}); _var($scope1_id, "#scopeOffset/1", $Child_scope, "__tests__/template.marko_1_setHtml#2/var"); - writeScope($scope1_id, { setHtml }, "__tests__/template.marko", "3:2", { setHtml: "4:18" }); + _scope($scope1_id, { setHtml }, "__tests__/template.marko", "3:2", { setHtml: "4:18" }); _assert_hoist(setHtml); }, 0, $scope0_id, "#text/0", 1, 0, 0); let to = 3; @@ -28,7 +28,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $Child_scope2 = _peek_scope_id(); let setHtml2 = _dynamic_tag($scope2_id, "#text/0", 1 && child_default, {}); _var($scope2_id, "#scopeOffset/1", $Child_scope2, "__tests__/template.marko_2_setHtml2#2/var"); - writeScope($scope2_id, { setHtml2 }, "__tests__/template.marko", "14:2", { setHtml2: "15:18" }); + _scope($scope2_id, { setHtml2 }, "__tests__/template.marko", "14:2", { setHtml2: "15:18" }); _assert_hoist(setHtml2); }, 0, $scope0_id, "#text/1", 1, 0, 0); _html("
    "); @@ -40,11 +40,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $Child_scope3 = _peek_scope_id(); let setHtml3 = _dynamic_tag($scope4_id, "#text/0", 1 && child_default, {}); _var($scope4_id, "#scopeOffset/1", $Child_scope3, "__tests__/template.marko_4_setHtml3#2/var"); - writeScope($scope4_id, { setHtml3 }, "__tests__/template.marko", "26:4", { setHtml3: "27:20" }); + _scope($scope4_id, { setHtml3 }, "__tests__/template.marko", "26:4", { setHtml3: "27:20" }); _assert_hoist(setHtml3); }, 0, $scope3_id, "#ul/0", 1, 0, 0); _html(""); - writeScope($scope3_id, {}, "__tests__/template.marko", "24:2"); + _scope($scope3_id, {}, "__tests__/template.marko", "24:2"); }, 0, $scope0_id, "#text/2", 1, 0, 0, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/html.bundle.js index d9abbbda978..963c85c9640 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var-many/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "b0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -18,7 +18,7 @@ var template_default = _template("a", (input) => { const $Child_scope = _peek_scope_id(); let setHtml = _dynamic_tag($scope1_id, "a", child_default, {}); _var($scope1_id, "b", $Child_scope, "a1"); - writeScope($scope1_id, { c: setHtml }); + _scope($scope1_id, { c: setHtml }); }, 0, $scope0_id, "a", 1, 0, 0); let to = 3; _html("
    "); @@ -27,7 +27,7 @@ var template_default = _template("a", (input) => { const $Child_scope2 = _peek_scope_id(); let setHtml2 = _dynamic_tag($scope2_id, "a", child_default, {}); _var($scope2_id, "b", $Child_scope2, "a2"); - writeScope($scope2_id, { c: setHtml2 }); + _scope($scope2_id, { c: setHtml2 }); }, 0, $scope0_id, "b", 1, 0, 0); _html("
    "); _for_to(3, 0, 1, (i) => { @@ -38,10 +38,10 @@ var template_default = _template("a", (input) => { const $Child_scope3 = _peek_scope_id(); let setHtml3 = _dynamic_tag($scope4_id, "a", child_default, {}); _var($scope4_id, "b", $Child_scope3, "a3"); - writeScope($scope4_id, { c: setHtml3 }); + _scope($scope4_id, { c: setHtml3 }); }, 0, $scope3_id, "a", 1, 0, 0); _html(""); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }, 0, $scope0_id, "c", 1, 0, 0, 0, 1); _script($scope0_id, "a4"); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/html.bundle.debug.js index 9b08b0e4054..5ffa073ca31 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "__tests__/tags/child.marko_0/_return", $scope0_id); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -13,7 +13,7 @@ var thing_default = _template("__tests__/tags/thing.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "__tests__/tags/thing.marko_0_input_value#2"); - writeScope($scope0_id, { input_value: input.value }, "__tests__/tags/thing.marko", 0, { input_value: ["input.value"] }); + _scope($scope0_id, { input_value: input.value }, "__tests__/tags/thing.marko", 0, { input_value: ["input.value"] }); }); // template.marko @@ -30,12 +30,12 @@ var template_default = _template("__tests__/template.marko", (input) => { const $Child_scope = _peek_scope_id(); let setHtml = _dynamic_tag($scope2_id, "#text/0", 1 && child_default, {}); _var($scope2_id, "#scopeOffset/1", $Child_scope, "__tests__/template.marko_2_setHtml#2/var"); - writeScope($scope2_id, { setHtml }, "__tests__/template.marko", "4:4", { setHtml: "5:20" }); + _scope($scope2_id, { setHtml }, "__tests__/template.marko", "4:4", { setHtml: "5:20" }); _assert_hoist(setHtml); return 0; } }, $scope1_id, "#text/0", 1, $sg__input_show, $sg__input_show); - writeScope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2"); + _scope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2"); return 0; } }, $scope0_id, "#text/0", 1, $sg__input_show, $sg__input_show); @@ -46,7 +46,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $Child_scope2 = _peek_scope_id(); let setHtml2 = _dynamic_tag($scope3_id, "#text/0", 1 && child_default, {}); _var($scope3_id, "#scopeOffset/1", $Child_scope2, "__tests__/template.marko_3_setHtml2#2/var"); - writeScope($scope3_id, { setHtml2 }, "__tests__/template.marko", "15:2", { setHtml2: "16:18" }); + _scope($scope3_id, { setHtml2 }, "__tests__/template.marko", "15:2", { setHtml2: "16:18" }); _assert_hoist(setHtml2); return 0; } @@ -57,7 +57,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $Child_scope3 = _peek_scope_id(); let setHtml3 = _dynamic_tag($scope4_id, "#text/0", 1 && child_default, {}); _var($scope4_id, "#scopeOffset/1", $Child_scope3, "__tests__/template.marko_4_setHtml3#2/var"); - writeScope($scope4_id, { setHtml3 }, "__tests__/template.marko", "24:2", { setHtml3: "25:18" }); + _scope($scope4_id, { setHtml3 }, "__tests__/template.marko", "24:2", { setHtml3: "25:18" }); _assert_hoist(setHtml3); return 0; } @@ -65,8 +65,8 @@ var template_default = _template("__tests__/template.marko", (input) => { if (true) { const $scope5_id = _scope_id(); _script($scope5_id, "__tests__/template.marko_5"); - writeScope($scope5_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "28:2"); + _scope($scope5_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "28:2"); } _script($scope0_id, "__tests__/template.marko_0"); - $si__input_show && writeScope($scope0_id, { input_show: input.show }, "__tests__/template.marko", 0, { input_show: ["input.show"] }); + $si__input_show && _scope($scope0_id, { input_show: input.show }, "__tests__/template.marko", 0, { input_show: ["input.show"] }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/html.bundle.js index 9add0456eec..5ad133b36c9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-dynamic-tag-var/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); const $return = _resume(() => (html) => ((el) => el())(_el_read_error).innerHTML = html, "b0", $scope0_id); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); return $return; }); @@ -13,7 +13,7 @@ var thing_default = _template("c", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "c0"); - writeScope($scope0_id, { c: input.value }); + _scope($scope0_id, { c: input.value }); }); // template.marko @@ -30,11 +30,11 @@ var template_default = _template("a", (input) => { const $Child_scope = _peek_scope_id(); let setHtml = _dynamic_tag($scope2_id, "a", child_default, {}); _var($scope2_id, "b", $Child_scope, "a1"); - writeScope($scope2_id, { c: setHtml }); + _scope($scope2_id, { c: setHtml }); return 0; } }, $scope1_id, "a", 1, $sg__input_show, $sg__input_show); - writeScope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", 1, $sg__input_show, $sg__input_show); @@ -45,7 +45,7 @@ var template_default = _template("a", (input) => { const $Child_scope2 = _peek_scope_id(); let setHtml2 = _dynamic_tag($scope3_id, "a", child_default, {}); _var($scope3_id, "b", $Child_scope2, "a2"); - writeScope($scope3_id, { c: setHtml2 }); + _scope($scope3_id, { c: setHtml2 }); return 0; } }, $scope0_id, "c", 1, 0, $sg__input_show); @@ -55,15 +55,15 @@ var template_default = _template("a", (input) => { const $Child_scope3 = _peek_scope_id(); let setHtml3 = _dynamic_tag($scope4_id, "a", child_default, {}); _var($scope4_id, "b", $Child_scope3, "a3"); - writeScope($scope4_id, { c: setHtml3 }); + _scope($scope4_id, { c: setHtml3 }); return 0; } }, $scope0_id, "d", 1, 0, $sg__input_show); { const $scope5_id = _scope_id(); _script($scope5_id, "a4"); - writeScope($scope5_id, { _: _scope_with_id($scope0_id) }); + _scope($scope5_id, { _: _scope_with_id($scope0_id) }); } _script($scope0_id, "a5"); - $si__input_show && writeScope($scope0_id, { h: input.show }); + $si__input_show && _scope($scope0_id, { h: input.show }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-in-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-in-function/__snapshots__/html.bundle.debug.js index f20163d8e3b..a45facf8137 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-in-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-in-function/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", typeof input.fn, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -13,6 +13,6 @@ var template_default = _template("__tests__/template.marko", (input) => { child_default({ fn: () => ((x) => x())(_hoist_read_error) }); const x = 1; _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "5:8" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "5:8" }); _assert_hoist(x); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/html.bundle.debug.js index 3906d13bbe1..5efe35cf6af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/html.bundle.js index 85edb689d1d..35f062cb263 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-script-read/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js index 365389d81c0..33c67ba532a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, $sg__input_content); _dynamic_tag($scope0_id, "#text/1", input.content, {}, 0, 0, $sg__input_content); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#span/0")}`); - _subscribe($child_content__subscribers, writeScope($scope1_id, {}, "__tests__/template.marko", "3:2")); + _subscribe($child_content__subscribers, _scope($scope1_id, {}, "__tests__/template.marko", "3:2")); }, $scope0_id) }); _dynamic_tag($scope0_id, "#text/1", input.show ? child_default : null, {}, _content_resume("__tests__/template.marko_2*content", () => { const $scope2_id = _scope_id(); @@ -31,10 +31,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope3_id = _scope_id(); _html(`
    ${_el_resume($scope3_id, "#div/0")}`); - _subscribe($child_content2__subscribers, writeScope($scope3_id, {}, "__tests__/template.marko", "16:4")); + _subscribe($child_content2__subscribers, _scope($scope3_id, {}, "__tests__/template.marko", "16:4")); }, $scope2_id) }); _script($scope2_id, "__tests__/template.marko_2"); - _subscribe($inputshowChildnull_content__subscribers, writeScope($scope2_id, { + _subscribe($inputshowChildnull_content__subscribers, _scope($scope2_id, { _: _scope_with_id($scope0_id), "ClosureScopes:3": $child_content2__subscribers }, "__tests__/template.marko", "15:4")); @@ -43,10 +43,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope4_id = _scope_id(); _scope_reason(); _html(`

    ${_el_resume($scope4_id, "#p/0")}`); - _subscribe($inputshowsectionnull_content__subscribers, writeScope($scope4_id, {}, "__tests__/template.marko", "34:4")); + _subscribe($inputshowsectionnull_content__subscribers, _scope($scope4_id, {}, "__tests__/template.marko", "34:4")); }, $scope0_id), 0, $sg__input_show); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { "ClosureScopes:1": $child_content__subscribers, "ClosureScopes:2": $inputshowChildnull_content__subscribers, "ClosureScopes:4": $inputshowsectionnull_content__subscribers diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/html.bundle.js index 926377f0282..2a91c709bb9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-from-dynamic/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, $sg__input_content); _dynamic_tag($scope0_id, "b", input.content, {}, 0, 0, $sg__input_content); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); - _subscribe($child_content__subscribers, writeScope($scope1_id, {})); + _subscribe($child_content__subscribers, _scope($scope1_id, {})); }, $scope0_id) }); _dynamic_tag($scope0_id, "b", input.show ? child_default : null, {}, _content_resume("a5", () => { const $scope2_id = _scope_id(); @@ -31,10 +31,10 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope3_id = _scope_id(); _html(`
    ${_el_resume($scope3_id, "a")}`); - _subscribe($child_content2__subscribers, writeScope($scope3_id, {})); + _subscribe($child_content2__subscribers, _scope($scope3_id, {})); }, $scope2_id) }); _script($scope2_id, "a6"); - _subscribe($inputshowChildnull_content__subscribers, writeScope($scope2_id, { + _subscribe($inputshowChildnull_content__subscribers, _scope($scope2_id, { _: _scope_with_id($scope0_id), B3: $child_content2__subscribers })); @@ -43,10 +43,10 @@ var template_default = _template("a", (input) => { const $scope4_id = _scope_id(); _scope_reason(); _html(`

    ${_el_resume($scope4_id, "a")}`); - _subscribe($inputshowsectionnull_content__subscribers, writeScope($scope4_id, {})); + _subscribe($inputshowsectionnull_content__subscribers, _scope($scope4_id, {})); }, $scope0_id), 0, $sg__input_show); _script($scope0_id, "a8"); - writeScope($scope0_id, { + _scope($scope0_id, { B1: $child_content__subscribers, B2: $inputshowChildnull_content__subscribers, B4: $inputshowsectionnull_content__subscribers diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/html.bundle.debug.js index 3da544cc99d..f12f085aece 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/html.bundle.debug.js @@ -6,14 +6,14 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_to(5, 0, 1, () => { const $scope1_id = _scope_id(); _html(`
    ${_el_resume($scope1_id, "#div/0")}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, 0, $scope0_id, "#text/0", 1, 0, 0, 0, 1); let to = 3; _html("
    "); _for_to(to, 0, 1, () => { const $scope2_id = _scope_id(); _html(`
    ${_el_resume($scope2_id, "#div/0")}`); - writeScope($scope2_id, {}, "__tests__/template.marko", "15:2"); + _scope($scope2_id, {}, "__tests__/template.marko", "15:2"); }, 0, $scope0_id, "#text/1", 1, 0, 0, 0, 1); _html("
    "); _for_to(3, 0, 1, (i) => { @@ -22,10 +22,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_to(3, 0, 1, (j) => { const $scope4_id = _scope_id(); _html(`${_el_resume($scope4_id, "#li/0")}`); - writeScope($scope4_id, {}, "__tests__/template.marko", "30:4"); + _scope($scope4_id, {}, "__tests__/template.marko", "30:4"); }, 0, $scope3_id, "#ul/0", 1, 0, 0, 0, 1); _html(""); - writeScope($scope3_id, {}, "__tests__/template.marko", "28:2"); + _scope($scope3_id, {}, "__tests__/template.marko", "28:2"); }, 0, $scope0_id, "#text/2", 1, 0, 0, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/html.bundle.js index bc16df1318c..2d2ec16f491 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-many/__snapshots__/html.bundle.js @@ -6,14 +6,14 @@ var template_default = _template("a", (input) => { _for_to(5, 0, 1, () => { const $scope1_id = _scope_id(); _html(`
    ${_el_resume($scope1_id, "a")}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", 1, 0, 0, 0, 1); let to = 3; _html("
    "); _for_to(to, 0, 1, () => { const $scope2_id = _scope_id(); _html(`
    ${_el_resume($scope2_id, "a")}`); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); }, 0, $scope0_id, "b", 1, 0, 0, 0, 1); _html("
    "); _for_to(3, 0, 1, (i) => { @@ -22,10 +22,10 @@ var template_default = _template("a", (input) => { _for_to(3, 0, 1, (j) => { const $scope4_id = _scope_id(); _html(`${_el_resume($scope4_id, "a")}`); - writeScope($scope4_id, {}); + _scope($scope4_id, {}); }, 0, $scope3_id, "a", 1, 0, 0, 0, 1); _html(""); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }, 0, $scope0_id, "c", 1, 0, 0, 0, 1); _script($scope0_id, "a1"); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/html.bundle.debug.js index 0931e5294b8..3fbceac6e7e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/html.bundle.debug.js @@ -12,11 +12,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $for_content2__$el_getter = _hoist($scope2_id, "__tests__/template.marko_2_#div#0/hoist"); _html(`${_el_resume($scope2_id, "#div/0")}`); _script($scope2_id, "__tests__/template.marko_2"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4"); }, 0, $scope1_id, "#text/0", 1, 0, 0, 0, 1); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2"); }, 0, $scope0_id, "#text/3", 1, 0, 0); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/html.bundle.js index aa133e20ca6..7e96e38fb4c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-minimum-scope/__snapshots__/html.bundle.js @@ -12,11 +12,11 @@ var template_default = _template("a", (input) => { _hoist($scope2_id, "a2"); _html(`${_el_resume($scope2_id, "a")}`); _script($scope2_id, "a3"); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); }, 0, $scope1_id, "a", 1, 0, 0, 0, 1); _script($scope1_id, "a4"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, 0, $scope0_id, "d", 1, 0, 0); _script($scope0_id, "a5"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/html.bundle.debug.js index 8ccb6331d7b..13b72dc15c7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "__tests__/tags/child.marko_0_input#1"); - writeScope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); + _scope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); }); // template.marko @@ -18,5 +18,5 @@ var template_default = _template("__tests__/template.marko", (input) => { (($el) => $el())(_el_read_error).classList.add("child2"); }, "__tests__/template.marko_0/action2", $scope0_id) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/html.bundle.js index 5c8049686aa..7894371eebc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope-calls-only/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "b0"); - writeScope($scope0_id, { b: input }); + _scope($scope0_id, { b: input }); }); // template.marko @@ -18,5 +18,5 @@ var template_default = _template("a", (input) => { (($el) => $el())(_el_read_error).classList.add("child2"); }, "a1", $scope0_id) }); _script($scope0_id, "a2"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/html.bundle.debug.js index 6a567f532fc..343c4fe8105 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "__tests__/tags/child.marko_0_input#1"); - writeScope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); + _scope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); }); // template.marko @@ -14,5 +14,5 @@ var template_default = _template("__tests__/template.marko", (input) => { child_default({ value: $el_getter }); _html(`
    ${_el_resume($scope0_id, "#div/1")}`); child_default({ value: $el_getter }); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/html.bundle.js index cf886ce369b..7de93e40f77 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var-same-scope/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "b0"); - writeScope($scope0_id, { b: input }); + _scope($scope0_id, { b: input }); }); // template.marko @@ -14,5 +14,5 @@ var template_default = _template("a", (input) => { child_default({ value: $el_getter }); _html(`
    ${_el_resume($scope0_id, "b")}`); child_default({ value: $el_getter }); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/html.bundle.debug.js index ff0f8cb4399..3f02b026176 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "__tests__/tags/child.marko_0_input#1"); - writeScope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); + _scope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); }); // template.marko @@ -21,11 +21,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $el = _el($scope2_id, "__tests__/template.marko_2_#div#0"); _html(`
    ${_el_resume($scope2_id, "#div/0")}`); child_default({ value: $el }); - writeScope($scope2_id, {}, "__tests__/template.marko", "2:4"); + _scope($scope2_id, {}, "__tests__/template.marko", "2:4"); return 0; } }, $scope1_id, "#text/0", 1, $sg__input_show, $sg__input_show, 0, 1); - writeScope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2"); + _scope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2"); return 0; } }, $scope0_id, "#text/0", 1, $sg__input_show, $sg__input_show); @@ -35,10 +35,10 @@ var template_default = _template("__tests__/template.marko", (input) => { if (true) { const $scope3_id = _scope_id(); _html(`
    ${_el_resume($scope3_id, "#div/0")}`); - writeScope($scope3_id, {}, "__tests__/template.marko", "19:2"); + _scope($scope3_id, {}, "__tests__/template.marko", "19:2"); return 0; } }, $scope0_id, "#text/2", 1, 0, $sg__input_show, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - $si__input_show && writeScope($scope0_id, { input_show: input.show }, "__tests__/template.marko", 0, { input_show: ["input.show"] }); + $si__input_show && _scope($scope0_id, { input_show: input.show }, "__tests__/template.marko", 0, { input_show: ["input.show"] }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/html.bundle.js index 76932613055..ad1caf8def2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-native-tag-var/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _script($scope0_id, "b0"); - writeScope($scope0_id, { b: input }); + _scope($scope0_id, { b: input }); }); // template.marko @@ -20,11 +20,11 @@ var template_default = _template("a", (input) => { const $el = _el($scope2_id, "a1"); _html(`
    ${_el_resume($scope2_id, "a")}`); child_default({ value: $el }); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); return 0; } }, $scope1_id, "a", 1, $sg__input_show, $sg__input_show, 0, 1); - writeScope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: $si__input_show && _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", 1, $sg__input_show, $sg__input_show); @@ -34,10 +34,10 @@ var template_default = _template("a", (input) => { { const $scope3_id = _scope_id(); _html(`
    ${_el_resume($scope3_id, "a")}`); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); return 0; } }, $scope0_id, "c", 1, 0, $sg__input_show, 0, 1); _script($scope0_id, "a2"); - $si__input_show && writeScope($scope0_id, { f: input.show }); + $si__input_show && _scope($scope0_id, { f: input.show }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/html.bundle.debug.js index 40f65f718b8..307d1e43164 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/html.bundle.debug.js @@ -17,7 +17,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $if_content2__hoist3_getter = _hoist($scope2_id, "__tests__/template.marko_2_hoist3#0/hoist"); const z = $if_content2__hoist3_getter; const hoist3 = _resume(() => input.value, "__tests__/template.marko_2/hoist2", $scope2_id); - _subscribe($si__input_value && $input_value__closures, writeScope($scope2_id, { + _subscribe($si__input_value && $input_value__closures, _scope($scope2_id, { hoist3, _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "8:4", { hoist3: "10:12" })); @@ -25,11 +25,11 @@ var template_default = _template("__tests__/template.marko", (input) => { return 0; } }, $scope1_id, "#text/0", 1, 0, 0); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); return 0; } }, $scope0_id, "#text/0", 1, 0, 0); - writeScope($scope0_id, { + _scope($scope0_id, { input_value: input.value, hoist1, "ClosureScopes:input_value": $si__input_value && $input_value__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/html.bundle.js index 4c6df5c5708..428f8f35049 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-only/__snapshots__/html.bundle.js @@ -13,18 +13,18 @@ var template_default = _template("a", (input) => { const $scope2_id = _scope_id(); _hoist($scope2_id, "a3"); const hoist3 = _resume(() => input.value, "a1", $scope2_id); - _subscribe($si__input_value && $input_value__closures, writeScope($scope2_id, { + _subscribe($si__input_value && $input_value__closures, _scope($scope2_id, { a: hoist3, _: _scope_with_id($scope1_id) })); return 0; } }, $scope1_id, "a", 1, 0, 0); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", 1, 0, 0); - writeScope($scope0_id, { + _scope($scope0_id, { d: input.value, e: hoist1, f: $si__input_value && $input_value__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/html.bundle.debug.js index 33f97c19eb8..882e0b26d6d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/tags/child.marko_0_input#2"); - writeScope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); + _scope($scope0_id, { input }, "__tests__/tags/child.marko", 0, { input: 0 }); }); // tags/source.marko @@ -22,6 +22,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const $x_getter = _hoist($scope0_id, "__tests__/template.marko_0_x#3/hoist"); child_default({ y: $x_getter }); let x = source_default({}); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "2:9" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "2:9" }); _assert_hoist(x); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/html.bundle.js index da070a0307b..84321d78fc1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { c: input }); + _scope($scope0_id, { c: input }); }); // tags/source.marko @@ -19,5 +19,5 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope0_id = _scope_id(); child_default({ y: _hoist($scope0_id, "a0") }); - writeScope($scope0_id, { d: source_default({}) }); + _scope($scope0_id, { d: source_default({}) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/hoist-throws-in-render/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/hoist-throws-in-render/__snapshots__/html.bundle.debug.js index 080b032f148..e3979b9164c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/hoist-throws-in-render/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/hoist-throws-in-render/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { if (1) { const $scope1_id = _scope_id(); const x = 1; - writeScope($scope1_id, { x }, "__tests__/template.marko", "1:2", { x: "2:10" }); + _scope($scope1_id, { x }, "__tests__/template.marko", "1:2", { x: "2:10" }); _assert_hoist(x); return 0; } diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/html.bundle.debug.js index d57b49f8d75..8779367f5fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`
    ${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#comment/2")}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "2:8" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/html.bundle.js index 7b65aa723c6..1811e3ba25b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-comment-counter/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 0; _html(`
    ${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "c")}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: count }); + _scope($scope0_id, { d: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-comment-empty-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/html-comment-empty-dynamic/__snapshots__/html.bundle.debug.js index 097cab5a7fb..cbe527bda27 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-comment-empty-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-comment-empty-dynamic/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let raw = ""; _html(`${_el_resume($scope0_id, "#comment/0")}${_el_resume($scope0_id, "#comment/1")}${_el_resume($scope0_id, "#comment/2")}${_el_resume($scope0_id, "#comment/3")}${_el_resume($scope0_id, "#button/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { text, raw }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-comment-empty-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-comment-empty-dynamic/__snapshots__/html.bundle.js index 2803ca8290a..500fedead01 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-comment-empty-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-comment-empty-dynamic/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { let raw = ""; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: text, g: raw }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/html.bundle.debug.js index 0fc1d267c44..833c83c7e5f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var parent_el_default = _template("__tests__/tags/parent-el.marko", (input) => { _html(`${_el_resume($scope0_id, "#comment/0")}`); const $return = tagName; _script($scope0_id, "__tests__/tags/parent-el.marko_0"); - writeScope($scope0_id, {}, "__tests__/tags/parent-el.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/parent-el.marko", 0); _resume_branch($scope0_id); return $return; }); @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let spanName = parent_el_default({}); _var($scope0_id, "#scopeOffset/4", $childScope2, "__tests__/template.marko_0_spanName#7/var"); _html(`${_text_resume($scope0_id, "#text/5", spanName)}`); - writeScope($scope0_id, { + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope), "#childScope/3": _existing_scope($childScope2) }, "__tests__/template.marko", 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/html.bundle.js index 9f9d2515824..e86e4eb0706 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-comment-var/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var parent_el_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }); @@ -21,7 +21,7 @@ var template_default = _template("a", (input) => { let spanName = parent_el_default({}); _var($scope0_id, "e", $childScope2, "a1"); _html(`${_text_resume($scope0_id, "f", spanName)}`); - writeScope($scope0_id, { + _scope($scope0_id, { a: _existing_scope($childScope), d: _existing_scope($childScope2) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-marked-end-tag-order/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/html-marked-end-tag-order/__snapshots__/html.bundle.debug.js index a4d96d347c0..63920c8e933 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-marked-end-tag-order/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-marked-end-tag-order/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 0; _html(`t${_flush_head()}${_el_resume($scope0_id, "#button/1")}`), _trailers(`${_el_resume($scope0_id, "#html/0", _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "6:10" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "6:10" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-marked-end-tag-order/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-marked-end-tag-order/__snapshots__/html.bundle.js index c8aa4f87eb6..ea0fb53d181 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-marked-end-tag-order/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-marked-end-tag-order/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 0; _html(`t${_flush_head()}${_el_resume($scope0_id, "b")}`), _trailers(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { g: n }); + _scope($scope0_id, { g: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/html.bundle.debug.js index e9e2fe653b3..80a670115d0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/html.bundle.debug.js @@ -21,12 +21,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(` D <\/script>`); - writeScope($scope1_id, {}, "__tests__/template.marko", "17:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "17:2"); return 0; } }, $scope0_id, "#text/2", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_spreadAttrs#3"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "EventAttributes:#script/1": ["...spreadAttrs", "11:30"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "EventAttributes:#script/1": ["...spreadAttrs", "11:30"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/html.bundle.js index 835298fa9d0..6ef915397f0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-script-nonce/__snapshots__/html.bundle.js @@ -16,6 +16,6 @@ var template_default = _template("a", (input) => { _if(() => {}, $scope0_id, "c", 1, 1, 1, 0, 1); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/html.bundle.debug.js index 56b900f5d1e..2fc1fed0655 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/html.bundle.debug.js @@ -11,6 +11,6 @@ var template_default = _template("__tests__/template.marko", (input) => { } `)}<\/script>${_el_resume($scope0_id, "#script/0")}
    ${_text_resume($scope0_id, "#text/1", count)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/html.bundle.js index 0a79d8f5c54..abebb52c098 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-script/__snapshots__/html.bundle.js @@ -11,6 +11,6 @@ var template_default = _template("a", (input) => { } `)}<\/script>${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", count)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/html.bundle.debug.js index e885bd1c8a8..d90d6f9b34d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/html.bundle.debug.js @@ -20,12 +20,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(` D {} `); - writeScope($scope1_id, {}, "__tests__/template.marko", "17:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "17:2"); return 0; } }, $scope0_id, "#text/2", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_spreadAttrs#3"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "EventAttributes:#style/1": ["...spreadAttrs", "11:16"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "EventAttributes:#style/1": ["...spreadAttrs", "11:16"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/html.bundle.js index 0b97456331b..8dce6ba654d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-style-nonce/__snapshots__/html.bundle.js @@ -15,6 +15,6 @@ var template_default = _template("a", (input) => { _if(() => {}, $scope0_id, "c", 1, 1, 1, 0, 1); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/html.bundle.debug.js index ad931335bce..458a7157ce7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/html.bundle.debug.js @@ -9,6 +9,6 @@ var template_default = _template("__tests__/template.marko", (input) => { } `)}${_el_resume($scope0_id, "#style/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/html.bundle.js index 4451edb7906..953e2cfd233 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/html-style/__snapshots__/html.bundle.js @@ -9,6 +9,6 @@ var template_default = _template("a", (input) => { } `)}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { b: count }); + _scope($scope0_id, { b: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/html.bundle.debug.js index fe41f8caef5..f81da1a418f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const sometimesBaz = baz || _id(); _html(`${_el_resume($scope0_id, "#button/0")}foobar${_el_resume($scope0_id, "#div/2")}baz${_el_resume($scope0_id, "#div/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { bar, baz }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/html.bundle.js index bff8e7fc450..7de687ccbf5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/id-tag-default/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { const sometimesBaz = baz; _html(`${_el_resume($scope0_id, "a")}foobar${_el_resume($scope0_id, "c")}baz${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: bar, f: baz }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/id-tag-hoist-error/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/id-tag-hoist-error/__snapshots__/html.bundle.debug.js index 26760518252..88cf514864f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/id-tag-hoist-error/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/id-tag-hoist-error/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const x = _id(); const y = _id(); _html(`
    ${_escape(x)}
    ${_escape($y_getter)}`); - writeScope($scope0_id, { y }, "__tests__/template.marko", 0, { y: "3:7" }); + _scope($scope0_id, { y }, "__tests__/template.marko", 0, { y: "3:7" }); _assert_hoist(y); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/id-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/id-tag/__snapshots__/html.bundle.debug.js index 5e1fbda85c8..2a5db26b77b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/id-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/id-tag/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const z = input.z || _id(); const y = _id(); _html(`${_escape(x)} ${_escape(y)} ${_text_resume($scope0_id, "#text/3", z, $sg__input_z * 2)}${_el_resume($scope0_id, "#div/0", $sg__input_z)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/id-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/id-tag/__snapshots__/html.bundle.js index 254215573eb..7ffb4f6d907 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/id-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/id-tag/__snapshots__/html.bundle.js @@ -6,5 +6,5 @@ var template_default = _template("a", (input) => { const z = input.z || _id(); const y = _id(); _html(`${_escape(x)} ${_escape(y)} ${_text_resume($scope0_id, "d", z, $sg__input_z * 2)}${_el_resume($scope0_id, "a", $sg__input_z)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/html.bundle.debug.js index f880ccad1b3..364b9cfcd23 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/html.bundle.debug.js @@ -8,11 +8,11 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _html("hi"); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); return 0; } }, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/html.bundle.js index 14e4232a9ae..a2838e1d78a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-default-false/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _if(() => {}, $scope0_id, "b"); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: show }); + _scope($scope0_id, { c: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-else-chain-only-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-else-chain-only-child/__snapshots__/html.bundle.debug.js index 5dd25de3f2c..719b901b6b4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-else-chain-only-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-else-chain-only-child/__snapshots__/html.bundle.debug.js @@ -8,21 +8,21 @@ var template_default = _template("__tests__/template.marko", (input) => { if (count % 3 === 0) { const $scope1_id = _scope_id(); _html("

    a

    "); - writeScope($scope1_id, {}, "__tests__/template.marko", "7:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "7:4"); return 0; } else if (count % 3 === 1) { const $scope2_id = _scope_id(); _html("b"); - writeScope($scope2_id, {}, "__tests__/template.marko", "10:4"); + _scope($scope2_id, {}, "__tests__/template.marko", "10:4"); return 1; } else { const $scope3_id = _scope_id(); _html("c"); - writeScope($scope3_id, {}, "__tests__/template.marko", "13:4"); + _scope($scope3_id, {}, "__tests__/template.marko", "13:4"); return 2; } }, $scope0_id, "#div/2", 1, 1, 1, "", 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-else-chain-only-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-else-chain-only-child/__snapshots__/html.bundle.js index fd53ba2d00b..ed2041ab153 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-else-chain-only-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-else-chain-only-child/__snapshots__/html.bundle.js @@ -8,11 +8,11 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html("

    a

    "); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c", 1, 1, 1, "", 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: count }); + _scope($scope0_id, { d: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-flatten-else-if-space-syntax/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-flatten-else-if-space-syntax/__snapshots__/html.bundle.debug.js index 59463f13a0a..43b71e79746 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-flatten-else-if-space-syntax/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-flatten-else-if-space-syntax/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.a ? "A" : input.b ? "B" : "C", _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { input_a: _serialize_if($scope0_reason, 2) && input.a, input_b: _serialize_if($scope0_reason, 1) && input.b }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-flatten-else-if-space-syntax/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-flatten-else-if-space-syntax/__snapshots__/html.bundle.js index 81800dfb624..1c123ad62b4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-flatten-else-if-space-syntax/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-flatten-else-if-space-syntax/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.a ? "A" : input.b ? "B" : "C", _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && input.a, e: _serialize_if($scope0_reason, 1) && input.b }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/html.bundle.debug.js index be64146a2a2..b2732267ffc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/html.bundle.debug.js @@ -10,12 +10,12 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { if (!hide && text.length) { const $scope1_id = _scope_id(); _html(`
    ${_text_resume($scope1_id, "#text/0", text)}
    `); - writeScope($scope1_id, {}, "__tests__/tags/child.marko", "6:4"); + _scope($scope1_id, {}, "__tests__/tags/child.marko", "6:4"); return 0; } }, $scope0_id, "#div/0", 1, 1, 1, "", 1); _script($scope0_id, "__tests__/tags/child.marko_0_id#5"); - writeScope($scope0_id, { + _scope($scope0_id, { hide, text, text_length: text?.length, diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/html.bundle.js index 20051361112..84a78080dc8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var child_default = _template("b", (input) => { _html(``); _if(() => {}, $scope0_id, "a", 1, 1, 1, "", 1); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { b: hide, c: text, d: 0, diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-nested-not-taken/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-nested-not-taken/__snapshots__/html.bundle.debug.js index 3b5f6cbc04b..b3b72ee5731 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-nested-not-taken/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-nested-not-taken/__snapshots__/html.bundle.debug.js @@ -12,15 +12,15 @@ var template_default = _template("__tests__/template.marko", (input) => { if (x > 9) { const $scope2_id = _scope_id(); _html("inner"); - writeScope($scope2_id, {}, "__tests__/template.marko", "5:4"); + _scope($scope2_id, {}, "__tests__/template.marko", "5:4"); return 0; } }, $scope1_id, "#text/0"); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-nested-not-taken/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-nested-not-taken/__snapshots__/html.bundle.js index d16dd64c64a..e79994538e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-nested-not-taken/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-nested-not-taken/__snapshots__/html.bundle.js @@ -9,11 +9,11 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html("outer"); _if(() => {}, $scope1_id, "a"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: x }); + _scope($scope0_id, { d: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/html.bundle.debug.js index c4a2c3d3b32..ded0e8920d7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/html.bundle.debug.js @@ -8,11 +8,11 @@ var template_default = _template("__tests__/template.marko", (input) => { if (!count) { const $scope1_id = _scope_id(); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "5:1"); + _scope($scope1_id, {}, "__tests__/template.marko", "5:1"); return 0; } }, $scope0_id, "#text/3"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:5" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:5" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/html.bundle.js index d400bc6e75a..4cbdef0993b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-no-content-script/__snapshots__/html.bundle.js @@ -8,11 +8,11 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _script($scope1_id, "a0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "d"); _script($scope0_id, "a1"); - writeScope($scope0_id, { e: count }); + _scope($scope0_id, { e: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-not-taken-after-await/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-not-taken-after-await/__snapshots__/html.bundle.debug.js index 069cd65b043..9d0b21e580a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-not-taken-after-await/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-not-taken-after-await/__snapshots__/html.bundle.debug.js @@ -16,15 +16,15 @@ var template_default = _template("__tests__/template.marko", (input) => { if (x > 9) { const $scope3_id = _scope_id(); _html("never"); - writeScope($scope3_id, {}, "__tests__/template.marko", "9:4"); + _scope($scope3_id, {}, "__tests__/template.marko", "9:4"); return 0; } }, $scope1_id, "#text/1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "2:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-not-taken-after-await/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-not-taken-after-await/__snapshots__/html.bundle.js index adb851da01c..02b91f3c9b0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-not-taken-after-await/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-not-taken-after-await/__snapshots__/html.bundle.js @@ -13,11 +13,11 @@ var template_default = _template("a", (input) => { _html(`${_escape(v)}`); }, 0); _if(() => {}, $scope1_id, "b"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: x }); + _scope($scope0_id, { d: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-resume-cleanup-free-branch/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-resume-cleanup-free-branch/__snapshots__/html.bundle.debug.js index d75efb2a1e2..24355ef3a61 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-resume-cleanup-free-branch/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-resume-cleanup-free-branch/__snapshots__/html.bundle.debug.js @@ -7,11 +7,11 @@ var leaf_default = _template("__tests__/tags/leaf.marko", (input) => { if (n) { const $scope1_id = _scope_id(); _html(`
    n is ${_text_resume($scope1_id, "#text/0", n, $sg__input_n * 2)}
    `); - $si__input_n && writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/tags/leaf.marko", "2:2"); + $si__input_n && _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/tags/leaf.marko", "2:2"); return 0; } }, $scope0_id, "#text/0", $sg__input_n, $sg__input_n, $sg__input_n, 0, 1); - $si__input_n && writeScope($scope0_id, { n }, "__tests__/tags/leaf.marko", 0, { n: "1:10" }); + $si__input_n && _scope($scope0_id, { n }, "__tests__/tags/leaf.marko", 0, { n: "1:10" }); }); // template.marko @@ -27,12 +27,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); leaf_default({ n }); - writeScope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "5:2"); + _scope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "5:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { outer, n }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-resume-cleanup-free-branch/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-resume-cleanup-free-branch/__snapshots__/html.bundle.js index 4810a7ac5bb..04890ce778e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-resume-cleanup-free-branch/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-resume-cleanup-free-branch/__snapshots__/html.bundle.js @@ -7,11 +7,11 @@ var leaf_default = _template("b", (input) => { if (n) { const $scope1_id = _scope_id(); _html(`
    n is ${_text_resume($scope1_id, "a", n, $sg__input_n * 2)}
    `); - $si__input_n && writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + $si__input_n && _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", $sg__input_n, $sg__input_n, $sg__input_n, 0, 1); - $si__input_n && writeScope($scope0_id, { d: n }); + $si__input_n && _scope($scope0_id, { d: n }); }); // template.marko @@ -27,12 +27,12 @@ var template_default = _template("a", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); leaf_default({ n }); - writeScope($scope1_id, { a: _existing_scope($childScope) }); + _scope($scope1_id, { a: _existing_scope($childScope) }); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: outer, e: n }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-resume-link-via-nested-component-cleanup/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-resume-link-via-nested-component-cleanup/__snapshots__/html.bundle.debug.js index 5ca36450a61..084d32f0496 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-resume-link-via-nested-component-cleanup/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-resume-link-via-nested-component-cleanup/__snapshots__/html.bundle.debug.js @@ -16,11 +16,11 @@ var wrapper_default = _template("__tests__/tags/wrapper.marko", (input) => { if (show) { const $scope1_id = _scope_id(); leaf_default({}); - $si__input_show && writeScope($scope1_id, {}, "__tests__/tags/wrapper.marko", "2:2"); + $si__input_show && _scope($scope1_id, {}, "__tests__/tags/wrapper.marko", "2:2"); return 0; } }, $scope0_id, "#text/0", $sg__input_show, $sg__input_show, $sg__input_show, 0, 1); - $si__input_show && writeScope($scope0_id, {}, "__tests__/tags/wrapper.marko", 0); + $si__input_show && _scope($scope0_id, {}, "__tests__/tags/wrapper.marko", 0); }); // template.marko @@ -36,12 +36,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); wrapper_default({ show }); - writeScope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); + _scope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { outer, show }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-resume-link-via-nested-component-cleanup/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-resume-link-via-nested-component-cleanup/__snapshots__/html.bundle.js index e45d929baea..97cfae2e08a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-resume-link-via-nested-component-cleanup/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-resume-link-via-nested-component-cleanup/__snapshots__/html.bundle.js @@ -16,11 +16,11 @@ var wrapper_default = _template("c", (input) => { if (show) { const $scope1_id = _scope_id(); leaf_default({}); - $si__input_show && writeScope($scope1_id, {}); + $si__input_show && _scope($scope1_id, {}); return 0; } }, $scope0_id, "a", $sg__input_show, $sg__input_show, $sg__input_show, 0, 1); - $si__input_show && writeScope($scope0_id, {}); + $si__input_show && _scope($scope0_id, {}); }); // template.marko @@ -36,12 +36,12 @@ var template_default = _template("a", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); wrapper_default({ show }); - writeScope($scope1_id, { a: _existing_scope($childScope) }); + _scope($scope1_id, { a: _existing_scope($childScope) }); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: outer, e: show }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js index d48031b6c38..d6ad1556b30 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-resume-owns-branch-cleanup/__snapshots__/html.bundle.debug.js @@ -8,11 +8,11 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope1_id = _scope_id(); _html("

    inner

    "); _script($scope1_id, "__tests__/tags/child.marko_1"); - $si__input_show && writeScope($scope1_id, {}, "__tests__/tags/child.marko", "2:2"); + $si__input_show && _scope($scope1_id, {}, "__tests__/tags/child.marko", "2:2"); return 0; } }, $scope0_id, "#text/0", $sg__input_show, $sg__input_show, $sg__input_show, 0, 1); - $si__input_show && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + $si__input_show && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -28,12 +28,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); child_default({ show }); - writeScope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); + _scope($scope1_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { outer, show }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-resume-owns-branch-cleanup/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-resume-owns-branch-cleanup/__snapshots__/html.bundle.js index b8e6ec5e465..eb81def5594 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-resume-owns-branch-cleanup/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-resume-owns-branch-cleanup/__snapshots__/html.bundle.js @@ -8,11 +8,11 @@ var child_default = _template("b", (input) => { const $scope1_id = _scope_id(); _html("

    inner

    "); _script($scope1_id, "b0"); - $si__input_show && writeScope($scope1_id, {}); + $si__input_show && _scope($scope1_id, {}); return 0; } }, $scope0_id, "a", $sg__input_show, $sg__input_show, $sg__input_show, 0, 1); - $si__input_show && writeScope($scope0_id, {}); + $si__input_show && _scope($scope0_id, {}); }); // template.marko @@ -28,12 +28,12 @@ var template_default = _template("a", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); child_default({ show }); - writeScope($scope1_id, { a: _existing_scope($childScope) }); + _scope($scope1_id, { a: _existing_scope($childScope) }); return 0; } }, $scope0_id, "c"); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: outer, e: show }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-show-value-attr/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-show-value-attr/__snapshots__/html.bundle.debug.js index 666050a9ae2..396563ae930 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-show-value-attr/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-show-value-attr/__snapshots__/html.bundle.debug.js @@ -8,17 +8,17 @@ var template_default = _template("__tests__/template.marko", (input) => { if (n % 3 === 0) { const $scope1_id = _scope_id(); _html("
    zero
    "); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); return 0; } else if (n % 3 === 1) { const $scope2_id = _scope_id(); _html("
    one
    "); - writeScope($scope2_id, {}, "__tests__/template.marko", "6:2"); + _scope($scope2_id, {}, "__tests__/template.marko", "6:2"); return 1; } else { const $scope3_id = _scope_id(); _html("
    two
    "); - writeScope($scope3_id, {}, "__tests__/template.marko", "9:2"); + _scope($scope3_id, {}, "__tests__/template.marko", "9:2"); return 2; } }, $scope0_id, "#text/1", 1, 1, 1, 0, 1); @@ -27,6 +27,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("shown"); _show_end($scope0_id, "#text/3", $show, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-show-value-attr/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-show-value-attr/__snapshots__/html.bundle.js index 22132f382d3..5558eab8d17 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-show-value-attr/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-show-value-attr/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html("
    zero
    "); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b", 1, 1, 1, 0, 1); @@ -17,6 +17,6 @@ var template_default = _template("a", (input) => { _html("shown"); _show_end($scope0_id, "d", $show, 1, 1, 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: n }); + _scope($scope0_id, { e: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-swap-before-await-resume/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-swap-before-await-resume/__snapshots__/html.bundle.debug.js index f1d864dfeac..8c25b953b9e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-swap-before-await-resume/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-swap-before-await-resume/__snapshots__/html.bundle.debug.js @@ -40,15 +40,15 @@ var template_default = _template("__tests__/template.marko", (input) => { if (!hasHydrate) { const $scope3_id = _scope_id(); _html("Go"); - writeScope($scope3_id, {}, "__tests__/template.marko", "13:6"); + _scope($scope3_id, {}, "__tests__/template.marko", "13:6"); return 0; } else { const $scope4_id = _scope_id(); _html(""); - writeScope($scope4_id, {}, "__tests__/template.marko", "14:6"); + _scope($scope4_id, {}, "__tests__/template.marko", "14:6"); return 1; } }, $scope0_id, "#text/3", 1, 1, 1, 0, 1); _html(""); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-swap-before-await-resume/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-swap-before-await-resume/__snapshots__/html.bundle.js index f34a1f95ecc..6e4f1082237 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-swap-before-await-resume/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-swap-before-await-resume/__snapshots__/html.bundle.js @@ -33,15 +33,15 @@ var template_default = _template("a", (input) => { if (!hasHydrate) { const $scope3_id = _scope_id(); _html("Go"); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); return 0; } else { const $scope4_id = _scope_id(); _html(""); - writeScope($scope4_id, {}); + _scope($scope4_id, {}); return 1; } }, $scope0_id, "d", 1, 1, 1, 0, 1); _html(""); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/if-tag/__snapshots__/html.bundle.debug.js index 1645f26bbac..15a37694bff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-tag/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { if (input.a + input.b) { const $scope1_id = _scope_id(); _html("Hello"); - $si__input_a__OR__input_b && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + $si__input_a__OR__input_b && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); return 0; } }, $scope0_id, "#text/0", $sg__input_a__OR__input_b, $sg__input_a__OR__input_b, $sg__input_a__OR__input_b); @@ -14,12 +14,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (input.a, input.b) { const $scope2_id = _scope_id(); _html("World"); - $si__input_a__OR__input_b && writeScope($scope2_id, {}, "__tests__/template.marko", "5:2"); + $si__input_a__OR__input_b && _scope($scope2_id, {}, "__tests__/template.marko", "5:2"); return 0; } }, $scope0_id, "#text/1", $sg__input_a__OR__input_b, $sg__input_a__OR__input_b, $sg__input_a__OR__input_b); _html(`
    ${_text_resume($scope0_id, "#text/2", input.x ? "A" : input.y ? "B" : "C", _serialize_guard($scope0_reason, 1))}
    `); - _serialize_if($scope0_reason, 2) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 2) && _scope($scope0_id, { input_a: _serialize_if($scope0_reason, 4) && input.a, input_b: _serialize_if($scope0_reason, 3) && input.b, input_x: _serialize_if($scope0_reason, 6) && input.x, diff --git a/packages/runtime-tags/src/__tests__/fixtures/if-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/if-tag/__snapshots__/html.bundle.js index 5327fee2545..1d04f8b9db9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/if-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/if-tag/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { if (input.a + input.b) { const $scope1_id = _scope_id(); _html("Hello"); - $si__input_a__OR__input_b && writeScope($scope1_id, {}); + $si__input_a__OR__input_b && _scope($scope1_id, {}); return 0; } }, $scope0_id, "a", $sg__input_a__OR__input_b, $sg__input_a__OR__input_b, $sg__input_a__OR__input_b); @@ -14,12 +14,12 @@ var template_default = _template("a", (input) => { if (input.a, input.b) { const $scope2_id = _scope_id(); _html("World"); - $si__input_a__OR__input_b && writeScope($scope2_id, {}); + $si__input_a__OR__input_b && _scope($scope2_id, {}); return 0; } }, $scope0_id, "b", $sg__input_a__OR__input_b, $sg__input_a__OR__input_b, $sg__input_a__OR__input_b); _html(`
    ${_text_resume($scope0_id, "c", input.x ? "A" : input.y ? "B" : "C", _serialize_guard($scope0_reason, 1))}
    `); - _serialize_if($scope0_reason, 2) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 2) && _scope($scope0_id, { f: _serialize_if($scope0_reason, 4) && input.a, g: _serialize_if($scope0_reason, 3) && input.b, i: _serialize_if($scope0_reason, 6) && input.x, diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-aliased-exported-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/import-aliased-exported-registered-function/__snapshots__/html.bundle.debug.js index 4930710f2be..f16747ce34d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-aliased-exported-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-aliased-exported-registered-function/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var greeting_default = _template("__tests__/tags/greeting.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/greeting.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/greeting.marko", 0); }); // template.marko @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); greeting_default({ message }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { loud, quiet, message, diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-aliased-exported-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/import-aliased-exported-registered-function/__snapshots__/html.bundle.js index ed5b53bc873..3460c747fe6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-aliased-exported-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-aliased-exported-registered-function/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var greeting_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -24,7 +24,7 @@ var template_default = _template("a", (input) => { const $childScope = _peek_scope_id(); greeting_default({ message }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: loud, e: quiet, f: message, diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-barrel-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/import-barrel-registered-function/__snapshots__/html.bundle.debug.js index f717554374a..4f9582cbdb5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-barrel-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-barrel-registered-function/__snapshots__/html.bundle.debug.js @@ -36,7 +36,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let message = "start"; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", message)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { first, second, message diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-barrel-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/import-barrel-registered-function/__snapshots__/html.bundle.js index da228e8b436..e0c16866ca4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-barrel-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-barrel-registered-function/__snapshots__/html.bundle.js @@ -33,7 +33,7 @@ var template_default = _template("a", (input) => { let message = "start"; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", message)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: first, d: second, e: message diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-circular-re-exported-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/import-circular-re-exported-registered-function/__snapshots__/html.bundle.debug.js index 1ab63d719c1..97fbcdb0d0c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-circular-re-exported-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-circular-re-exported-registered-function/__snapshots__/html.bundle.debug.js @@ -29,7 +29,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let message = "start"; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", message)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { first, second, message diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-circular-re-exported-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/import-circular-re-exported-registered-function/__snapshots__/html.bundle.js index 7ef82054108..6dc980037a1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-circular-re-exported-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-circular-re-exported-registered-function/__snapshots__/html.bundle.js @@ -29,7 +29,7 @@ var template_default = _template("a", (input) => { let message = "start"; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", message)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: first, d: second, e: message diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-exported-function-specifiers/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/import-exported-function-specifiers/__snapshots__/html.bundle.debug.js index d89b776d5ad..99fcaeaa380 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-exported-function-specifiers/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-exported-function-specifiers/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var handlers_default = _template("__tests__/tags/handlers.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/handlers.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/handlers.marko", 0); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); _dynamic_tag($scope0_id, "#text/2", handlers_default, { message }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { loud, quiet, message diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-exported-function-specifiers/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/import-exported-function-specifiers/__snapshots__/html.bundle.js index 891b247b769..612b8784261 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-exported-function-specifiers/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-exported-function-specifiers/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var handlers_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _dynamic_tag($scope0_id, "c", handlers_default, { message }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: loud, e: quiet, f: message diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-exported-non-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/import-exported-non-registered-function/__snapshots__/html.bundle.debug.js index f93161155c3..118d1e937b2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-exported-non-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-exported-non-registered-function/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var greeting_default = _template("__tests__/tags/greeting.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/greeting.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/greeting.marko", 0); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); greeting_default({ message: shout(message) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { message, "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0, { message: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-exported-non-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/import-exported-non-registered-function/__snapshots__/html.bundle.js index 9b3760d163b..59a81e53e7c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-exported-non-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-exported-non-registered-function/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var greeting_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("a", (input) => { const $childScope = _peek_scope_id(); greeting_default({ message: shout(message) }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: message, b: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-shared/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-shared/__snapshots__/html.bundle.debug.js index 35727975ccd..43ba34e05d6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-shared/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-shared/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var greeting_default = _template("__tests__/tags/greeting.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/greeting.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/greeting.marko", 0); }); // tags/panel.marko @@ -21,7 +21,7 @@ var panel_default = _template("__tests__/tags/panel.marko", (input) => { const $childScope = _peek_scope_id(); greeting_default({ message }); _script($scope0_id, "__tests__/tags/panel.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { format, message, "#childScope/1": _existing_scope($childScope) @@ -45,7 +45,7 @@ var template_default = _template("__tests__/template.marko", (input) => { greeting_default({ message }); panel_default({}); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { format, message, "#childScope/1": _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-shared/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-shared/__snapshots__/html.bundle.js index f8dfdf8ba23..7523388b231 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-shared/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-shared/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var greeting_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/panel.marko @@ -21,7 +21,7 @@ var panel_default = _template("c", (input) => { const $childScope = _peek_scope_id(); greeting_default({ message }); _script($scope0_id, "c0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: format, d: message, b: _existing_scope($childScope) @@ -42,7 +42,7 @@ var template_default = _template("a", (input) => { greeting_default({ message }); panel_default({}); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: format, e: message, b: _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-tag-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-tag-input/__snapshots__/html.bundle.debug.js index baf3c775387..709ddab02d5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-tag-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-tag-input/__snapshots__/html.bundle.debug.js @@ -14,7 +14,7 @@ var press_default = _template("__tests__/tags/press.marko", (input) => { let label = "quiet"; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", label)}
    `); _script($scope0_id, "__tests__/tags/press.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input, label }, "__tests__/tags/press.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-tag-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-tag-input/__snapshots__/html.bundle.js index 7bf21d2e644..ab948d31d0f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-tag-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function-tag-input/__snapshots__/html.bundle.js @@ -14,7 +14,7 @@ var press_default = _template("c", (input) => { let label = "quiet"; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", label)}
    `); _script($scope0_id, "c0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: input, e: label }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function/__snapshots__/html.bundle.debug.js index cb860506673..162929783eb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var greeting_default = _template("__tests__/tags/greeting.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/greeting.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/greeting.marko", 0); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); greeting_default({ message }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { format, message, "#childScope/1": _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function/__snapshots__/html.bundle.js index 4140a3e67a8..79d396457a2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-exported-registered-function/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var greeting_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("a", (input) => { const $childScope = _peek_scope_id(); greeting_default({ message }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: format, d: message, b: _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-re-exported-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/import-re-exported-registered-function/__snapshots__/html.bundle.debug.js index 7ebcb4f8d18..b0229aab806 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-re-exported-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-re-exported-registered-function/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var greeting_default = _template("__tests__/tags/greeting.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/greeting.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/greeting.marko", 0); }); // tags/greetings.marko @@ -28,7 +28,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); greeting_default({ message }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { format, message, "#childScope/1": _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/import-re-exported-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/import-re-exported-registered-function/__snapshots__/html.bundle.js index 83edb85464c..10311654004 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/import-re-exported-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/import-re-exported-registered-function/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var greeting_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.message, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/greetings.marko @@ -28,7 +28,7 @@ var template_default = _template("a", (input) => { const $childScope = _peek_scope_id(); greeting_default({ message }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: format, d: message, b: _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/html.bundle.debug.js index a82b0e396f5..bb01c6e3807 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/html.bundle.debug.js @@ -7,12 +7,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_until(3, 0, 1, (i) => { const $scope1_id = _scope_id(); _html(`${_escape(i)}${_el_resume($scope1_id, "#span/0")}`); - writeScope($scope1_id, { + _scope($scope1_id, { "#LoopKey": i, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:3", { "#LoopKey": "3:7" }); }, 0, $scope0_id, "#div/0", 1, 1, 0, "", 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { selected }, "__tests__/template.marko", 0, { selected: "1:5" }); + _scope($scope0_id, { selected }, "__tests__/template.marko", 0, { selected: "1:5" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/html.bundle.js index f478e89c71e..584f02d7d79 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-event/__snapshots__/html.bundle.js @@ -7,12 +7,12 @@ var template_default = _template("a", (input) => { _for_until(3, 0, 1, (i) => { const $scope1_id = _scope_id(); _html(`${_escape(i)}${_el_resume($scope1_id, "a")}`); - writeScope($scope1_id, { + _scope($scope1_id, { M: i, _: _scope_with_id($scope0_id) }); }, 0, $scope0_id, "a", 1, 1, 0, "", 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { b: selected }); + _scope($scope0_id, { b: selected }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/html.bundle.debug.js index 235fff2a73f..f6f3b0f761c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/html.bundle.debug.js @@ -7,12 +7,12 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_until(3, 0, 1, (i) => { const $scope1_id = _scope_id(); _html(`${_escape(i)}${_el_resume($scope1_id, "#option/0")}`); - writeScope($scope1_id, { + _scope($scope1_id, { "#LoopKey": i, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:3", { "#LoopKey": "3:7" }); }, 0, $scope0_id, "#select/0", 1, 1, 0, "", 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/html.bundle.js index 0ff078abcde..8061e237bae 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-control-flow-only-child-select-event/__snapshots__/html.bundle.js @@ -7,12 +7,12 @@ var template_default = _template("a", (input) => { _for_until(3, 0, 1, (i) => { const $scope1_id = _scope_id(); _html(`${_escape(i)}${_el_resume($scope1_id, "a")}`); - writeScope($scope1_id, { + _scope($scope1_id, { M: i, _: _scope_with_id($scope0_id) }); }, 0, $scope0_id, "a", 1, 1, 0, "", 1); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/html.bundle.debug.js index a2074eaf375..7941acb915c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/html.bundle.debug.js @@ -7,12 +7,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (input.show) { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", value)); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2"); return 0; } }, $scope0_id, "#text/0", 1, $sg__input_show, $sg__input_show, 0, 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { value: _serialize_if($scope0_reason, 0) && value }, "__tests__/template.marko", 0, { value: "1:6" }); + _scope($scope0_id, { value: _serialize_if($scope0_reason, 0) && value }, "__tests__/template.marko", 0, { value: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/html.bundle.js index 71056047650..3a125910f5f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/html.bundle.js @@ -7,12 +7,12 @@ var template_default = _template("a", (input) => { if (input.show) { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", value)); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", 1, $sg__input_show, $sg__input_show, 0, 1); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { f: _serialize_if($scope0_reason, 0) && value }); + _scope($scope0_id, { f: _serialize_if($scope0_reason, 0) && value }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/html.bundle.debug.js index a2074eaf375..7941acb915c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/html.bundle.debug.js @@ -7,12 +7,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (input.show) { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", value)); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2"); return 0; } }, $scope0_id, "#text/0", 1, $sg__input_show, $sg__input_show, 0, 1); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { value: _serialize_if($scope0_reason, 0) && value }, "__tests__/template.marko", 0, { value: "1:6" }); + _scope($scope0_id, { value: _serialize_if($scope0_reason, 0) && value }, "__tests__/template.marko", 0, { value: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/html.bundle.js index 71056047650..3a125910f5f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-inactive/__snapshots__/html.bundle.js @@ -7,12 +7,12 @@ var template_default = _template("a", (input) => { if (input.show) { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", value)); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", 1, $sg__input_show, $sg__input_show, 0, 1); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { f: _serialize_if($scope0_reason, 0) && value }); + _scope($scope0_id, { f: _serialize_if($scope0_reason, 0) && value }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-params-no-serialize/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/inert-params-no-serialize/__snapshots__/html.bundle.debug.js index 77543e8affb..790cf4e6c8c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-params-no-serialize/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-params-no-serialize/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, [input.value], 0, 1, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { input_content: _serialize_if($scope0_reason, 2) && input.content, input_value: _serialize_if($scope0_reason, 1) && input.value }, "__tests__/tags/child.marko", 0, { @@ -22,7 +22,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", x, _serialize_guard($scope1_reason, 0))); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-params-no-serialize/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-params-no-serialize/__snapshots__/html.bundle.js index 90a018ba1b2..ef23c70e794 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-params-no-serialize/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-params-no-serialize/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, [input.value], 0, 1, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && input.content, e: _serialize_if($scope0_reason, 1) && input.value }); @@ -18,7 +18,7 @@ var template_default = _template("a", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", x, _serialize_guard($scope1_reason, 0))); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, _scope_id()) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-root-interactive-leaf/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/inert-root-interactive-leaf/__snapshots__/html.bundle.debug.js index 2d9fc8c91d5..c8d708668fa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-root-interactive-leaf/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-root-interactive-leaf/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var counter_default = _template("__tests__/counter.marko", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/counter.marko_0"); - writeScope($scope0_id, { n }, "__tests__/counter.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/counter.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/inert-root-interactive-leaf/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/inert-root-interactive-leaf/__snapshots__/html.bundle.js index 19dbc2eba93..471cf605e67 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/inert-root-interactive-leaf/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/inert-root-interactive-leaf/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var counter_default = _template("a", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-checked-controlled-spread-value/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/input-checked-controlled-spread-value/__snapshots__/html.bundle.debug.js index 73d3c1e4381..5079136c8ea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-checked-controlled-spread-value/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-checked-controlled-spread-value/__snapshots__/html.bundle.debug.js @@ -13,7 +13,7 @@ var template_default = _template("__tests__/template.marko", (input) => { ...input.rest }, "#input/0", $scope0_id, "input")}>${_el_resume($scope0_id, "#input/0")}`); _script($scope0_id, "__tests__/template.marko_0_input_rest#3_checked#4"); - writeScope($scope0_id, { + _scope($scope0_id, { input_rest: input.rest, checked }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-checked-controlled-spread-value/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/input-checked-controlled-spread-value/__snapshots__/html.bundle.js index 981c1d3324f..0f0052b0435 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-checked-controlled-spread-value/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-checked-controlled-spread-value/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var template_default = _template("a", (input) => { ...input.rest }, "a", $scope0_id, "input")}>${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: input.rest, e: checked }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-destructure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/input-destructure/__snapshots__/html.bundle.debug.js index 56471eb58ac..bf050886f27 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-destructure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-destructure/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); const { a, b } = input; _html(`${_text_resume($scope0_id, "#text/0", a, _serialize_guard($scope0_reason, 1) * 2)} ${_text_resume($scope0_id, "#text/1", b, _serialize_guard($scope0_reason, 2) * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-destructure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/input-destructure/__snapshots__/html.bundle.js index 339c4e2f2e2..80d44e81409 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-destructure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-destructure/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); const { a, b } = input; _html(`${_text_resume($scope0_id, "a", a, _serialize_guard($scope0_reason, 1) * 2)} ${_text_resume($scope0_id, "b", b, _serialize_guard($scope0_reason, 2) * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-integer-reference/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/input-integer-reference/__snapshots__/html.bundle.debug.js index d3bc11725ab..084e5a974b8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-integer-reference/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-integer-reference/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0) * 2)} ${_text_resume($scope0_id, "#text/1", input.value[0], _serialize_guard($scope0_reason, 1) * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-integer-reference/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/input-integer-reference/__snapshots__/html.bundle.js index 3cb531957e1..7af7cc9032e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-integer-reference/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-integer-reference/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0) * 2)} ${_text_resume($scope0_id, "b", input.value[0], _serialize_guard($scope0_reason, 1) * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/html.bundle.debug.js index 5c72368f9c9..1fdc6733180 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/html.bundle.debug.js @@ -14,13 +14,13 @@ var template_default = _template("__tests__/template.marko", (input) => { if (true) { const $scope3_id = _scope_id(); _html(`
    ${_text_resume($scope3_id, "#text/0", input.name || "Fallback", _serialize_guard($scope1_reason, 2))}
    `); - $si__input_count__OR__input_name && _subscribe($si__input_name && $Child_content__input_name__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }, "__tests__/template.marko", "8:6")); + $si__input_count__OR__input_name && _subscribe($si__input_name && $Child_content__input_name__closures, _scope($scope3_id, { _: _scope_with_id($scope2_id) }, "__tests__/template.marko", "8:6")); } - $si__input_count__OR__input_name && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4"); + $si__input_count__OR__input_name && _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4"); return 0; } }, $scope1_id, "#text/0", $sg__input_count, $sg__input_count, $sg__input_count); - $si__input_count__OR__input_name && writeScope($scope1_id, { + $si__input_count__OR__input_name && _scope($scope1_id, { input_name: _serialize_if($scope1_reason, 1) && input.name, "ClosureScopes:input_name": $si__input_name && $Child_content__input_name__closures }, "__tests__/template.marko", "6:2", { input_name: ["input.name", "6:15"] }); @@ -29,7 +29,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); Child.content({ count }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { count: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/html.bundle.js index 5807e30c827..c9373d87dc9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-missing-property/__snapshots__/html.bundle.js @@ -14,13 +14,13 @@ var template_default = _template("a", (input) => { { const $scope3_id = _scope_id(); _html(`
    ${_text_resume($scope3_id, "a", input.name || "Fallback", _serialize_guard($scope1_reason, 2))}
    `); - $si__input_count__OR__input_name && _subscribe($si__input_name && $Child_content__input_name__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) })); + $si__input_count__OR__input_name && _subscribe($si__input_name && $Child_content__input_name__closures, _scope($scope3_id, { _: _scope_with_id($scope2_id) })); } - $si__input_count__OR__input_name && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + $si__input_count__OR__input_name && _scope($scope2_id, { _: _scope_with_id($scope1_id) }); return 0; } }, $scope1_id, "a", $sg__input_count, $sg__input_count, $sg__input_count); - $si__input_count__OR__input_name && writeScope($scope1_id, { + $si__input_count__OR__input_name && _scope($scope1_id, { e: _serialize_if($scope1_reason, 1) && input.name, f: $si__input_name && $Child_content__input_name__closures }); @@ -29,7 +29,7 @@ var template_default = _template("a", (input) => { const $childScope = _peek_scope_id(); Child.content({ count }); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: count, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-property-alias-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/input-property-alias-closure/__snapshots__/html.bundle.debug.js index 4680e8e8414..801df21eedb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-property-alias-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-property-alias-closure/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); _html(`${_text_resume($scope1_id, "#text/0", input.text, _serialize_guard($scope1_reason, 1))} and `); _dynamic_tag($scope1_id, "#text/1", input.content, {}, 0, 0, _serialize_guard($scope1_reason, 2)); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:1"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:1"); }, $scope0_id) }; const { text } = input; _set_serialize_reason({ @@ -22,11 +22,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "#text/0", text, $sg__input_text)); - $si__input_text && _subscribe($input_text__closures, writeScope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:1")); + $si__input_text && _subscribe($input_text__closures, _scope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:1")); _resume_branch($scope2_id); }, $scope0_id) }); - $si__input_text && writeScope($scope0_id, { + $si__input_text && _scope($scope0_id, { "ClosureScopes:input_text": $input_text__closures, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-property-alias-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/input-property-alias-closure/__snapshots__/html.bundle.js index cd6eee8f3f4..60da639816f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-property-alias-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-property-alias-closure/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { const $scope1_reason = _scope_reason(); _html(`${_text_resume($scope1_id, "a", input.text, _serialize_guard($scope1_reason, 1))} and `); _dynamic_tag($scope1_id, "b", input.content, {}, 0, 0, _serialize_guard($scope1_reason, 2)); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; const { text } = input; _set_serialize_reason({ @@ -22,11 +22,11 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "a", text, $sg__input_text)); - $si__input_text && _subscribe($input_text__closures, writeScope($scope2_id, { _: _scope_with_id($scope0_id) })); + $si__input_text && _subscribe($input_text__closures, _scope($scope2_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope2_id); }, $scope0_id) }); - $si__input_text && writeScope($scope0_id, { + $si__input_text && _scope($scope0_id, { e: $input_text__closures, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-spread-value-also-read/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/input-spread-value-also-read/__snapshots__/html.bundle.debug.js index da1c8af377c..7aea1833ffd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-spread-value-also-read/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-spread-value-also-read/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var my_input_default = _template("__tests__/tags/my-input.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0")}${_text_resume($scope0_id, "#text/1", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/tags/my-input.marko_0_input#3"); - writeScope($scope0_id, { input: { + _scope($scope0_id, { input: { ...input, checked: undefined, checkedValue: undefined @@ -28,6 +28,6 @@ var template_default = _template("__tests__/template.marko", (input) => { value = _new_value; }, "__tests__/template.marko_0/valueChange", $scope0_id) }); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/input-spread-value-also-read/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/input-spread-value-also-read/__snapshots__/html.bundle.js index 140ef41f8b4..941b9bfc97e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/input-spread-value-also-read/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/input-spread-value-also-read/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var my_input_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { d: { + _scope($scope0_id, { d: { ...input, checked: void 0, checkedValue: void 0 @@ -24,6 +24,6 @@ var template_default = _template("a", (input) => { value = _new_value; }, "a0", $scope0_id) }); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-derived-only/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-derived-only/__snapshots__/html.bundle.debug.js index 02cc0951988..784515b38aa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-derived-only/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-derived-only/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const tripled = count * 3; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", doubled + tripled)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-derived-only/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-derived-only/__snapshots__/html.bundle.js index f96e9e8a9ef..01f04c463d4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-derived-only/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-derived-only/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 1; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", 5)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-chain/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-chain/__snapshots__/html.bundle.debug.js index 7d6cdd7d9b9..1dc42d8adda 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-chain/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-chain/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const sum = y + z; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", sum)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-chain/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-chain/__snapshots__/html.bundle.js index f96e9e8a9ef..01f04c463d4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-chain/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-chain/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 1; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", 5)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-dup/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-dup/__snapshots__/html.bundle.debug.js index cd4b250e054..0f5f4e7e205 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-dup/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-dup/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const tripled = count * 3; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", doubled * tripled + doubled)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-dup/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-dup/__snapshots__/html.bundle.js index bf919681263..c5b7e2f297d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-dup/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-dup/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 1; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", 8)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-effect/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-effect/__snapshots__/html.bundle.debug.js index e7c271ee7d9..2a418fec731 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-effect/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-effect/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_y#2_z#3"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, y, z diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-effect/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-effect/__snapshots__/html.bundle.js index a1fb9075154..d4b4b536365 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-effect/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-effect/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { b: count, c: y, d: z diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-mixed/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-mixed/__snapshots__/html.bundle.debug.js index e3c870f4804..b9078ad33bf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-mixed/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-mixed/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const once = count * 3; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", shared)} | ${_text_resume($scope0_id, "#text/2", shared + once, 2)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-mixed/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-mixed/__snapshots__/html.bundle.js index 4a59b63d4c7..2154cc9e1ac 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-mixed/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-mixed/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { const shared = count * 2; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", shared)} | ${_text_resume($scope0_id, "c", 5, 2)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: count }); + _scope($scope0_id, { d: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-prop/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-prop/__snapshots__/html.bundle.debug.js index 1905cbace78..cf18254418b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-prop/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-prop/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const scale = count * 10; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", pos.x + scale)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-prop/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-prop/__snapshots__/html.bundle.js index 42865222275..fc4c5f882cc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-prop/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-prop/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { const scale = count * 10; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", pos.x + scale)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-input-param/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-input-param/__snapshots__/html.bundle.debug.js index d101afe128a..5d69d843e1c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-input-param/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-input-param/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const doubled = input.n * 2; const tripled = input.n * 3; _html(`
    ${_text_resume($scope0_id, "#text/0", doubled + tripled, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -18,7 +18,7 @@ var template_default = _template("__tests__/template.marko", (input) => { child_default({ n }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { n: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-input-param/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-input-param/__snapshots__/html.bundle.js index 14c33124105..c47f56f629f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-input-param/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-input-param/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.n * 2 + input.n * 3, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -16,7 +16,7 @@ var template_default = _template("a", (input) => { child_default({ n }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: n, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-nullable-prop/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-nullable-prop/__snapshots__/html.bundle.debug.js index 57e45c0b0c5..e12c77dc365 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-nullable-prop/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-nullable-prop/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const n = show ? 1 : 2; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", (obj?.label ?? "none") + n)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-nullable-prop/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-nullable-prop/__snapshots__/html.bundle.js index f7298230e86..1d353b6a892 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-nullable-prop/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-nullable-prop/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { const obj = show; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", (obj.label ?? "none") + 2)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: show }); + _scope($scope0_id, { c: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-single-state-source/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-single-state-source/__snapshots__/html.bundle.debug.js index 40db4a557b6..65ef9fee507 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-single-state-source/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-single-state-source/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const tripled = count * 3; _html(`${_el_resume($scope0_id, "#button/0")}
    -- ${_text_resume($scope0_id, "#text/1", count, 2)} -- ${_text_resume($scope0_id, "#text/2", doubled, 2)} -- ${_text_resume($scope0_id, "#text/3", tripled, 2)} -- ${_text_resume($scope0_id, "#text/4", doubled + tripled, 2)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intersection-single-state-source/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/intersection-single-state-source/__snapshots__/html.bundle.js index 625d51e5d23..53312162889 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intersection-single-state-source/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intersection-single-state-source/__snapshots__/html.bundle.js @@ -7,6 +7,6 @@ var template_default = _template("a", (input) => { const tripled = count * 3; _html(`${_el_resume($scope0_id, "a")}
    -- ${_text_resume($scope0_id, "b", count, 2)} -- ${_text_resume($scope0_id, "c", doubled, 2)} -- ${_text_resume($scope0_id, "d", tripled, 2)} -- ${_text_resume($scope0_id, "e", 5, 2)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { f: count }); + _scope($scope0_id, { f: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/intl-formatters-resumed/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/intl-formatters-resumed/__snapshots__/html.bundle.debug.js index 7ab2408c0c6..1e6bed03575 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intl-formatters-resumed/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intl-formatters-resumed/__snapshots__/html.bundle.debug.js @@ -13,7 +13,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, money, day diff --git a/packages/runtime-tags/src/__tests__/fixtures/intl-formatters-resumed/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/intl-formatters-resumed/__snapshots__/html.bundle.js index 08bce5dc7be..8fb90cce939 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/intl-formatters-resumed/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/intl-formatters-resumed/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: n, e: money, g: day diff --git a/packages/runtime-tags/src/__tests__/fixtures/isolated-known-tag-param-serialize-groups/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/isolated-known-tag-param-serialize-groups/__snapshots__/html.bundle.debug.js index 744947cd99e..7241de3be4a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/isolated-known-tag-param-serialize-groups/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/isolated-known-tag-param-serialize-groups/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.a, _serialize_guard($scope0_reason, 1))}
    ${_text_resume($scope0_id, "#text/1", input.b, _serialize_guard($scope0_reason, 2))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "#text/0", input.a, _serialize_guard($scope1_reason, 1))}
    ${_text_resume($scope1_id, "#text/1", input.b, _serialize_guard($scope1_reason, 2))}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); }, $scope0_id) }; _set_serialize_reason({ 0: $sg__input_a__OR__input_b, @@ -36,7 +36,7 @@ var template_default = _template("__tests__/template.marko", (input) => { a: input.a, b: input.b }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope), "#childScope/1": _existing_scope($childScope2) }, "__tests__/template.marko", 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/isolated-known-tag-param-serialize-groups/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/isolated-known-tag-param-serialize-groups/__snapshots__/html.bundle.js index 87bf34709dd..8cfb37ec9e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/isolated-known-tag-param-serialize-groups/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/isolated-known-tag-param-serialize-groups/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.a, _serialize_guard($scope0_reason, 1))}
    ${_text_resume($scope0_id, "b", input.b, _serialize_guard($scope0_reason, 2))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -24,7 +24,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "a", input.a, _serialize_guard($scope1_reason, 1))}
    ${_text_resume($scope1_id, "b", input.b, _serialize_guard($scope1_reason, 2))}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; _set_serialize_reason({ 0: $sg__input_a__OR__input_b, @@ -36,7 +36,7 @@ var template_default = _template("a", (input) => { a: input.a, b: input.b }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope), b: _existing_scope($childScope2) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/html.bundle.debug.js index 9c09420b17e..ca371680e38 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/html.bundle.debug.js @@ -10,14 +10,14 @@ var test_default = _template("__tests__/tags/test.marko", (input) => { if (input.x) { const $scope2_id = _scope_id(); _html(`
    ${_escape(count)}
    `); - $si__input_x && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/test.marko", "3:4"); + $si__input_x && _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/test.marko", "3:4"); return 0; } }, $scope1_id, "#text/0", $sg__input_x, $sg__input_x, $sg__input_x, 0, 1); - $si__input_x && writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/tags/test.marko", "2:2"); + $si__input_x && _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/tags/test.marko", "2:2"); }, $scope0_id) }; Tag.content({ x: 1 }); - writeScope($scope0_id, { count }, "__tests__/tags/test.marko", 0, { count: "1:8" }); + _scope($scope0_id, { count }, "__tests__/tags/test.marko", 0, { count: "1:8" }); }); // template.marko @@ -30,12 +30,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (m) { const $scope1_id = _scope_id(); test_default({}); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:4"); return 0; } }, $scope0_id, "#text/0"); _html(""); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/html.bundle.js index b481556dfe1..8a39da4c160 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-closure/__snapshots__/html.bundle.js @@ -10,13 +10,13 @@ var test_default = _template("b", (input) => { if (input.x) { const $scope2_id = _scope_id(); _html(`
    ${_escape(count)}
    `); - $si__input_x && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + $si__input_x && _scope($scope2_id, { _: _scope_with_id($scope1_id) }); return 0; } }, $scope1_id, "a", $sg__input_x, $sg__input_x, $sg__input_x, 0, 1); - $si__input_x && writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + $si__input_x && _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id) }).content({ x: 1 }); - writeScope($scope0_id, { b: count }); + _scope($scope0_id, { b: count }); }); // template.marko @@ -27,6 +27,6 @@ var template_default = _template("a", (input) => { _if(() => {}, $scope0_id, "a"); _html(""); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/html.bundle.debug.js index cb059dfaf97..8f1c403e72d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/html.bundle.debug.js @@ -8,11 +8,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); _html(`${_el_resume($scope1_id, "#button/0")} `); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { input_message: input.message, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2", { input_message: ["input.message", "2:18"] }); }, $scope0_id) }; MyButton.content({ message: "hello" }); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/html.bundle.js index c3907ba0fc1..169b5a4c612 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/html.bundle.js @@ -8,10 +8,10 @@ var template_default = _template("a", (input) => { _scope_reason(); _html(`${_el_resume($scope1_id, "a")} `); _script($scope1_id, "a1"); - writeScope($scope1_id, { + _scope($scope1_id, { d: input.message, _: _scope_with_id($scope0_id) }); }, $scope0_id) }).content({ message: "hello" }); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/html.bundle.debug.js index a95f36a7eb7..52a13a2237d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/html.bundle.debug.js @@ -10,14 +10,14 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { if (button) { const $scope2_id = _scope_id(); _dynamic_tag($scope2_id, "#text/0", button, {}, 0, 0, $sg__input_button); - $si__input_button && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/child.marko", "4:8"); + $si__input_button && _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/child.marko", "4:8"); return 0; } }, $scope1_id, "#text/0", $sg__input_button, $sg__input_button, $sg__input_button); - $si__input_button && writeScope($scope1_id, { button }, "__tests__/tags/child.marko", "3:4", { button: "3:8" }); + $si__input_button && _scope($scope1_id, { button }, "__tests__/tags/child.marko", "3:4", { button: "3:8" }); }, 0, $scope0_id, "#div/0", $sg__input_button, 1, $sg__input_button, ""); _script($scope0_id, "__tests__/tags/child.marko_0_htmlInput#4"); - writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0, { "EventAttributes:#div/0": ["...htmlInput", "2:9"] }); + _scope($scope0_id, {}, "__tests__/tags/child.marko", 0, { "EventAttributes:#div/0": ["...htmlInput", "2:9"] }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/html.bundle.js index b3a7b969aaf..63eab4b0e16 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-rest-attr-tag/__snapshots__/html.bundle.js @@ -10,14 +10,14 @@ var child_default = _template("b", (input) => { if (button) { const $scope2_id = _scope_id(); _dynamic_tag($scope2_id, "a", button, {}, 0, 0, $sg__input_button); - $si__input_button && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + $si__input_button && _scope($scope2_id, { _: _scope_with_id($scope1_id) }); return 0; } }, $scope1_id, "a", $sg__input_button, $sg__input_button, $sg__input_button); - $si__input_button && writeScope($scope1_id, { c: button }); + $si__input_button && _scope($scope1_id, { c: button }); }, 0, $scope0_id, "a", $sg__input_button, 1, $sg__input_button, ""); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-args-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-args-spread/__snapshots__/html.bundle.debug.js index a28809cef3f..95142820622 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-args-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-args-spread/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "#text/0", a, _serialize_guard($scope1_reason, 1))}|${_text_resume($scope1_id, "#text/1", b, _serialize_guard($scope1_reason, 2) * 2)}|${_text_resume($scope1_id, "#text/2", JSON.stringify(input), _serialize_guard($scope0_reason, 0) * 2)}
    `); - (_serialize_if($scope0_reason, 0) || _serialize_if($scope1_reason, 0)) && _subscribe($si__input && $input__closures, writeScope($scope1_id, { _: $si__input && _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2")); + (_serialize_if($scope0_reason, 0) || _serialize_if($scope1_reason, 0)) && _subscribe($si__input && $input__closures, _scope($scope1_id, { _: $si__input && _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2")); _resume_branch($scope1_id); }, $scope0_id) }; _set_serialize_reason(1); @@ -30,7 +30,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, "ClosureScopes:input": $si__input && $input__closures, "#childScope/0": _existing_scope($childScope), diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-args-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-args-spread/__snapshots__/html.bundle.js index 8d220429395..326322b9861 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-args-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-args-spread/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(`
    ${_text_resume($scope1_id, "a", a, _serialize_guard($scope1_reason, 1))}|${_text_resume($scope1_id, "b", b, _serialize_guard($scope1_reason, 2) * 2)}|${_text_resume($scope1_id, "c", JSON.stringify(input), _serialize_guard($scope0_reason, 0) * 2)}
    `); - (_serialize_if($scope0_reason, 0) || _serialize_if($scope1_reason, 0)) && _subscribe($si__input && $input__closures, writeScope($scope1_id, { _: $si__input && _scope_with_id($scope0_id) })); + (_serialize_if($scope0_reason, 0) || _serialize_if($scope1_reason, 0)) && _subscribe($si__input && $input__closures, _scope($scope1_id, { _: $si__input && _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }; _set_serialize_reason(1); @@ -26,7 +26,7 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { h: x, j: $si__input && $input__closures, a: _existing_scope($childScope), diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest-order/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest-order/__snapshots__/html.bundle.debug.js index 8cd6e145242..11bcc00d091 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest-order/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest-order/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child/index.marko", (input) => { const $scope0_id = _scope_id(); const { first, ...rest } = input; _html(`
    ${_text_resume($scope0_id, "#text/0", first, _serialize_guard($scope0_reason, 1))}:${_text_resume($scope0_id, "#text/1", Object.keys(rest).join(","), _serialize_guard($scope0_reason, 2) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child/index.marko", 0); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("__tests__/template.marko", (input) => { other: attrTag({ y: 2 }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { n: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest-order/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest-order/__snapshots__/html.bundle.js index c6345d5fa6c..8ad6bb12285 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest-order/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest-order/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); const { first, ...rest } = input; _html(`
    ${_text_resume($scope0_id, "a", first, _serialize_guard($scope0_reason, 1))}:${_text_resume($scope0_id, "b", Object.keys(rest).join(","), _serialize_guard($scope0_reason, 2) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("a", (input) => { other: attrTag({ y: 2 }) }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: n, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest/__snapshots__/html.bundle.debug.js index a83aeefd773..eec7d6f1848 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest/__snapshots__/html.bundle.debug.js @@ -5,10 +5,10 @@ var inner_default = _template("__tests__/tags/inner/index.marko", (input) => { _for_of(input.stuff.row, (row) => { const $scope1_id = _scope_id(); _html(`
    row ${_text_resume($scope1_id, "#text/0", row.x, $sg__input_stuff_row * 2)}
    `); - _serialize_if($scope0_reason, 1) && writeScope($scope1_id, {}, "__tests__/tags/inner/index.marko", "1:2"); + _serialize_if($scope0_reason, 1) && _scope($scope1_id, {}, "__tests__/tags/inner/index.marko", "1:2"); }, 0, $scope0_id, "#text/0", $sg__input_stuff_row, $sg__input_stuff_row, $sg__input_stuff_row, 0, 1); _html(`
    other ${_text_resume($scope0_id, "#text/1", input.stuff.other.y, _serialize_guard($scope0_reason, 2) * 2)}
    cond ${_text_resume($scope0_id, "#text/2", input.stuff.cond.a, _serialize_guard($scope0_reason, 3) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/inner/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/inner/index.marko", 0); }); // tags/child/index.marko @@ -25,7 +25,7 @@ var child_default = _template("__tests__/tags/child/index.marko", (input) => { }); const $childScope = _peek_scope_id(); inner_default({ stuff: rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _serialize_if($scope0_reason, 2) && _existing_scope($childScope) }, "__tests__/tags/child/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _serialize_if($scope0_reason, 2) && _existing_scope($childScope) }, "__tests__/tags/child/index.marko", 0); }); // template.marko @@ -49,7 +49,7 @@ var template_default = _template("__tests__/template.marko", (input) => { other: attrTag({ y: 1 }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { cond, "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0, { cond: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest/__snapshots__/html.bundle.js index fc753d599c1..a5618263636 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-rest/__snapshots__/html.bundle.js @@ -5,10 +5,10 @@ var inner_default = _template("c", (input) => { _for_of(input.stuff.row, (row) => { const $scope1_id = _scope_id(); _html(`
    row ${_text_resume($scope1_id, "a", row.x, $sg__input_stuff_row * 2)}
    `); - _serialize_if($scope0_reason, 1) && writeScope($scope1_id, {}); + _serialize_if($scope0_reason, 1) && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_stuff_row, $sg__input_stuff_row, $sg__input_stuff_row, 0, 1); _html(`
    other ${_text_resume($scope0_id, "b", input.stuff.other.y, _serialize_guard($scope0_reason, 2) * 2)}
    cond ${_text_resume($scope0_id, "c", input.stuff.cond.a, _serialize_guard($scope0_reason, 3) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/child/index.marko @@ -25,7 +25,7 @@ var child_default = _template("b", (input) => { }); const $childScope = _peek_scope_id(); inner_default({ stuff: rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _serialize_if($scope0_reason, 2) && _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _serialize_if($scope0_reason, 2) && _existing_scope($childScope) }); }); // template.marko @@ -45,7 +45,7 @@ var template_default = _template("a", (input) => { other: attrTag({ y: 1 }) }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: cond, b: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-unused/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-unused/__snapshots__/html.bundle.debug.js index febb2896d24..aecfee1e43d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-unused/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-unused/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child/index.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.a, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child/index.marko", 0); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("__tests__/template.marko", (input) => { junk3: attrTag({ baz: 6 }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { n: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-unused/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-unused/__snapshots__/html.bundle.js index c80280ae891..38af1564e57 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-unused/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-unused/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.a, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("a", (input) => { junk3: attrTag({ baz: 6 }) }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: n, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-nested-rest/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-nested-rest/__snapshots__/html.bundle.debug.js index 9f6fca646a7..933756409ae 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-nested-rest/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-nested-rest/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var leaf_default = _template("__tests__/tags/leaf.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    val ${_text_resume($scope0_id, "#text/0", input.data.val, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/leaf.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/leaf.marko", 0); }); // tags/mid.marko @@ -15,7 +15,7 @@ var mid_default = _template("__tests__/tags/mid.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 3)); const $childScope = _peek_scope_id(); leaf_default({ data: rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/2": _serialize_if($scope0_reason, 3) && _existing_scope($childScope) }, "__tests__/tags/mid.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/2": _serialize_if($scope0_reason, 3) && _existing_scope($childScope) }, "__tests__/tags/mid.marko", 0); }); // template.marko @@ -34,7 +34,7 @@ var template_default = _template("__tests__/template.marko", (input) => { } }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { n: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-nested-rest/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-nested-rest/__snapshots__/html.bundle.js index a7d7096ffa8..39e5e0c1d98 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-nested-rest/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-nested-rest/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var leaf_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    val ${_text_resume($scope0_id, "a", input.data.val, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/mid.marko @@ -15,7 +15,7 @@ var mid_default = _template("c", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 3)); const $childScope = _peek_scope_id(); leaf_default({ data: rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { c: _serialize_if($scope0_reason, 3) && _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { c: _serialize_if($scope0_reason, 3) && _existing_scope($childScope) }); }); // template.marko @@ -34,7 +34,7 @@ var template_default = _template("a", (input) => { } }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: n, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/html.bundle.debug.js index d67508397c4..3530a461e2e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`
    ${_text_resume($scope1_id, "#text/0", a, _serialize_guard($scope1_reason, 0))}
    ${_text_resume($scope1_id, "#text/1", b, _serialize_guard($scope1_reason, 1))}
    `); _script($scope1_id, "__tests__/template.marko_1_input_a#4"); _script($scope1_id, "__tests__/template.marko_1_a#8"); - writeScope($scope1_id, { input_a: input.a }, "__tests__/template.marko", "1:2", { input_a: ["input.a", "1:15"] }); + _scope($scope1_id, { input_a: input.a }, "__tests__/template.marko", "1:2", { input_a: ["input.a", "1:15"] }); }, $scope0_id) }; _set_serialize_reason({ 0: _serialize_guard($scope0_reason, 1), @@ -20,5 +20,5 @@ var template_default = _template("__tests__/template.marko", (input) => { a: input.a, b: input.b }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/html.bundle.js index 3bd1701ff17..cc9916b3742 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-param-serialize-alias/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { _html(`
    ${_text_resume($scope1_id, "a", a, _serialize_guard($scope1_reason, 0))}
    ${_text_resume($scope1_id, "b", b, _serialize_guard($scope1_reason, 1))}
    `); _script($scope1_id, "a1"); _script($scope1_id, "a2"); - writeScope($scope1_id, { e: input.a }); + _scope($scope1_id, { e: input.a }); }, $scope0_id) }; _set_serialize_reason({ 0: _serialize_guard($scope0_reason, 1), @@ -20,5 +20,5 @@ var template_default = _template("a", (input) => { a: input.a, b: input.b }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-dropped-refs/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-dropped-refs/__snapshots__/html.bundle.debug.js index 56547d9716f..bc579963006 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-dropped-refs/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-dropped-refs/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_b_default = _template("__tests__/tags/child-b/index.marko", (input) => const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.a, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child-b/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child-b/index.marko", 0); }); // template.marko @@ -22,7 +22,7 @@ var template_default = _template("__tests__/template.marko", (input) => { a: n }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { n: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-dropped-refs/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-dropped-refs/__snapshots__/html.bundle.js index fdaa349daa8..3e6f74ad5c7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-dropped-refs/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-dropped-refs/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_b_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.a, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -22,7 +22,7 @@ var template_default = _template("a", (input) => { a: n }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: n, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-unused/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-unused/__snapshots__/html.bundle.debug.js index a8cdc400b40..8264ddd1e11 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-unused/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-unused/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(_text_resume($scope1_id, "#text/0", input.foo || "fallback", _serialize_guard($scope1_reason, 0))); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }; const Bar = { content: _content("__tests__/template.marko_2*content", (input) => { const $scope2_id = _scope_id(); @@ -14,7 +14,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope2_reason, 0)); const $childScope = _peek_scope_id(); Foo.content(input); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "5:2"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "5:2"); }, $scope0_id) }; Bar.content({}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-unused/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-unused/__snapshots__/html.bundle.js index 2d145970e59..a2059db25e1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-unused/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread-unused/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(_text_resume($scope1_id, "a", input.foo || "fallback", _serialize_guard($scope1_reason, 0))); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; ({ content: _content("a1", (input) => { const $scope2_id = _scope_id(); @@ -14,6 +14,6 @@ var template_default = _template("a", (input) => { _set_serialize_reason(_serialize_guard($scope2_reason, 0)); const $childScope = _peek_scope_id(); Foo.content(input); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, { a: _existing_scope($childScope) }); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, { a: _existing_scope($childScope) }); }, $scope0_id) }).content({}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread/__snapshots__/html.bundle.debug.js index c79e29e2a6c..ed96278379c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_a_default = _template("__tests__/tags/child-a/index.marko", (input) => const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.a, _serialize_guard($scope0_reason, 1))} ${_text_resume($scope0_id, "#text/1", input.b, _serialize_guard($scope0_reason, 2) * 2)} ${_text_resume($scope0_id, "#text/2", input.c, _serialize_guard($scope0_reason, 3) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child-a/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child-a/index.marko", 0); }); // tags/child-c/index.marko @@ -11,7 +11,7 @@ var child_c_default = _template("__tests__/tags/child-c/index.marko", (input) => const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.a, _serialize_guard($scope0_reason, 1))} ${_text_resume($scope0_id, "#text/1", input.b, _serialize_guard($scope0_reason, 2) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child-c/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child-c/index.marko", 0); }); // template.marko @@ -44,7 +44,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope3 = _peek_scope_id(); child_c_default(input.settings); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { extras, n, "#childScope/2": _existing_scope($childScope), diff --git a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread/__snapshots__/html.bundle.js index 8f1908c0943..b19cff76ceb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/known-tag-spread/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_a_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.a, _serialize_guard($scope0_reason, 1))} ${_text_resume($scope0_id, "b", input.b, _serialize_guard($scope0_reason, 2) * 2)} ${_text_resume($scope0_id, "c", input.c, _serialize_guard($scope0_reason, 3) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/child-c/index.marko @@ -11,7 +11,7 @@ var child_c_default = _template("c", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.a, _serialize_guard($scope0_reason, 1))} ${_text_resume($scope0_id, "b", input.b, _serialize_guard($scope0_reason, 2) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -44,7 +44,7 @@ var template_default = _template("a", (input) => { const $childScope3 = _peek_scope_id(); child_c_default(input.settings); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { i: extras, j: n, c: _existing_scope($childScope), diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-chained/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-chained/__snapshots__/html.bundle.debug.js index 6a1549106b8..2f81aa9d07e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-chained/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-chained/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = input.value; _html(`${_text_resume($scope0_id, "#text/1", count)}${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); @@ -26,7 +26,7 @@ var template_default = _template("__tests__/template.marko", (input) => { id: "async", value }); - $si__input_value && writeScope($scope1_id, { "#childScope/1": _existing_scope($childScope2) }, "__tests__/template.marko", "5:2"); + $si__input_value && _scope($scope1_id, { "#childScope/1": _existing_scope($childScope2) }, "__tests__/template.marko", "5:2"); }, _serialize_guard($scope0_reason, 0)); - $si__input_value && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + $si__input_value && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-chained/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-chained/__snapshots__/html.bundle.js index 88eb68367de..14dfae29b42 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-chained/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-chained/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { let count = input.value; _html(`${_text_resume($scope0_id, "b", count)}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { g: count }); + _scope($scope0_id, { g: count }); _resume_branch($scope0_id); }); @@ -26,7 +26,7 @@ var template_default = _template("b", (input) => { id: "async", value }); - $si__input_value && writeScope($scope1_id, { b: _existing_scope($childScope2) }); + $si__input_value && _scope($scope1_id, { b: _existing_scope($childScope2) }); }, _serialize_guard($scope0_reason, 0)); - $si__input_value && writeScope($scope0_id, { b: _existing_scope($childScope) }); + $si__input_value && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-in-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-in-child/__snapshots__/html.bundle.debug.js index 359274a8012..01515076ca2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-in-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-in-child/__snapshots__/html.bundle.debug.js @@ -8,10 +8,10 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/child.marko_1"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/child.marko", "4:2")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/child.marko", "4:2")); _resume_branch($scope1_id); }); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/child.marko", 0, { count: "3:6" }); @@ -27,5 +27,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _html("
    after
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-in-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-in-child/__snapshots__/html.bundle.js index 06b21e8dc5c..3879d473ca7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-in-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-in-child/__snapshots__/html.bundle.js @@ -8,10 +8,10 @@ var child_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }); - writeScope($scope0_id, { + _scope($scope0_id, { e: count, f: $count__closures }); @@ -27,5 +27,5 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _html("
    after
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-attrs-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-attrs-update/__snapshots__/html.bundle.debug.js index 93bf180eaa6..fc011af8b87 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-attrs-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-attrs-update/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -18,7 +18,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { value: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-attrs-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-attrs-update/__snapshots__/html.bundle.js index 0d0edeec4b9..f80cbba2856 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-attrs-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-attrs-update/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -18,7 +18,7 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: value, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-inert/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-inert/__snapshots__/html.bundle.debug.js index 17519a9e0cc..1df09faadd5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-inert/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-inert/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.label, _serialize_guard($scope0_reason, 1))}: ${_text_resume($scope0_id, "#text/1", input.value, _serialize_guard($scope0_reason, 2) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -22,11 +22,11 @@ var template_default = _template("__tests__/template.marko", (input) => { label: "x", value: count }); - writeScope($scope1_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "10:2"); + _scope($scope1_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "10:2"); return 0; } }, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "3:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "3:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-inert/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-inert/__snapshots__/html.bundle.js index 6e6b1bdbe7f..72da07168b8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-inert/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-inert/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.label, _serialize_guard($scope0_reason, 1))}: ${_text_resume($scope0_id, "b", input.value, _serialize_guard($scope0_reason, 2) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -22,11 +22,11 @@ var template_default = _template("b", (input) => { label: "x", value: count }); - writeScope($scope1_id, { b: _existing_scope($childScope) }); + _scope($scope1_id, { b: _existing_scope($childScope) }); return 0; } }, $scope0_id, "b"); _script($scope0_id, "b0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-state/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-state/__snapshots__/html.bundle.debug.js index 63c31700e48..02d1c77547d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-state/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-state/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = input.value; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); @@ -25,11 +25,11 @@ var template_default = _template("__tests__/template.marko", (input) => { label: "child", value }); - writeScope($scope1_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "11:2"); + _scope($scope1_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "11:2"); return 0; } }, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { value }, "__tests__/template.marko", 0, { value: "4:6" }); + _scope($scope0_id, { value }, "__tests__/template.marko", 0, { value: "4:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-state/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-state/__snapshots__/html.bundle.js index 9c79b71fc55..5b8cb4c332f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-state/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-conditional-child-state/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { let count = input.value; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { h: count }); + _scope($scope0_id, { h: count }); _resume_branch($scope0_id); }); @@ -24,11 +24,11 @@ var template_default = _template("b", (input) => { label: "child", value }); - writeScope($scope1_id, { b: _existing_scope($childScope) }); + _scope($scope1_id, { b: _existing_scope($childScope) }); return 0; } }, $scope0_id, "b"); _script($scope0_id, "b0"); - writeScope($scope0_id, { c: value }); + _scope($scope0_id, { c: value }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-placeholder/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-placeholder/__snapshots__/html.bundle.debug.js index 51aed5595c7..e08f069fa0d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-placeholder/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-placeholder/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.label, _serialize_guard($scope0_reason, 1))}: ${_text_resume($scope0_id, "#text/1", input.value, _serialize_guard($scope0_reason, 2) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -23,7 +23,7 @@ var template_default = _template("__tests__/template.marko", (input) => { label: "x", value }); - _subscribe($value__closures, _subscribe($show__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:2"))); + _subscribe($value__closures, _subscribe($show__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:2"))); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_2*content", () => { _scope_reason(); @@ -31,7 +31,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("loading..."); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, value, "ClosureScopes:show": $show__closures, diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-placeholder/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-placeholder/__snapshots__/html.bundle.js index 254851c6149..5b957ea3578 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-placeholder/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-placeholder/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.label, _serialize_guard($scope0_reason, 1))}: ${_text_resume($scope0_id, "b", input.value, _serialize_guard($scope0_reason, 2) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -23,7 +23,7 @@ var template_default = _template("b", (input) => { label: "x", value }); - _subscribe($value__closures, _subscribe($show__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }))); + _subscribe($value__closures, _subscribe($show__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }))); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("b0", () => { _scope_reason(); @@ -31,7 +31,7 @@ var template_default = _template("b", (input) => { _html("loading..."); }, $scope0_id) }) }); _script($scope0_id, "b2"); - writeScope($scope0_id, { + _scope($scope0_id, { d: show, e: value, f: $show__closures, diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-unmount-before-load/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-unmount-before-load/__snapshots__/html.bundle.debug.js index b53909bec41..d4013af9f37 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-unmount-before-load/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-unmount-before-load/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -22,17 +22,17 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); _script($scope2_id, "__tests__/template.marko_2_show#2/pending"); _dynamic_tag($scope2_id, "#text/0", show ? $Child_withLoadAssets : null, { value: 1 }); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4"); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:2"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_3*content", () => { _scope_reason(); const $scope3_id = _scope_id(); _html("Loading..."); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, "ClosureScopes:show": $show__closures }, "__tests__/template.marko", 0, { show: "4:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-unmount-before-load/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-unmount-before-load/__snapshots__/html.bundle.js index 13cfd8e304e..3ab92e7c4dd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-unmount-before-load/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic-unmount-before-load/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -22,17 +22,17 @@ var template_default = _template("b", (input) => { const $scope2_id = _scope_id(); _script($scope2_id, "b0"); _dynamic_tag($scope2_id, "a", $Child_withLoadAssets, { value: 1 }); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("b1", () => { _scope_reason(); _scope_id(); _html("Loading..."); }, $scope0_id) }) }); _script($scope0_id, "b3"); - writeScope($scope0_id, { + _scope($scope0_id, { c: show, d: $show__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic/__snapshots__/html.bundle.debug.js index 34cbfdd2b4f..b4f20fcf963 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.label, _serialize_guard($scope0_reason, 1))}: ${_text_resume($scope0_id, "#text/1", input.value, _serialize_guard($scope0_reason, 2) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("__tests__/template.marko", (input) => { value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, value }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic/__snapshots__/html.bundle.js index 94d17e94ce7..00671f06b13 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-dynamic/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.label, _serialize_guard($scope0_reason, 1))}: ${_text_resume($scope0_id, "b", input.value, _serialize_guard($scope0_reason, 2) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("b", (input) => { value }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: show, e: value }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-attrs-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-attrs-update/__snapshots__/html.bundle.debug.js index e4d277b08f5..e2e6af16c62 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-attrs-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-attrs-update/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { value: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-attrs-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-attrs-update/__snapshots__/html.bundle.js index f2cca2c6f37..47d0c44db40 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-attrs-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-attrs-update/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: value, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-auto/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-auto/__snapshots__/html.bundle.debug.js index dea46238959..fc29dbcc642 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-auto/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-auto/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -18,5 +18,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-class/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-class/__snapshots__/html.bundle.debug.js index ba639027865..7f2400e5e2f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-class/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-class/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -19,5 +19,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _html(""); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-class/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-class/__snapshots__/html.bundle.js index 26764e88500..ee82fb5169a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-class/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-class/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -19,5 +19,5 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _html(""); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-id/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-id/__snapshots__/html.bundle.debug.js index a4d66268e58..bc851b96fad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-id/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-id/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -19,5 +19,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _html(""); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-id/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-id/__snapshots__/html.bundle.js index e81a90bd4a8..1514e8817fa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-id/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-selector-id/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -19,5 +19,5 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _html(""); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-unmount-before-load/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-unmount-before-load/__snapshots__/html.bundle.debug.js index d0823f8b75f..6b9b8f7cdff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-unmount-before-load/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-unmount-before-load/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -24,13 +24,13 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); - writeScope($scope1_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); + _scope($scope1_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/1"); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, value }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-unmount-before-load/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-unmount-before-load/__snapshots__/html.bundle.js index 96ea25246c7..d7f98729c43 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-unmount-before-load/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event-unmount-before-load/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -24,13 +24,13 @@ var template_default = _template("b", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); - writeScope($scope1_id, { b: _existing_scope($childScope) }); + _scope($scope1_id, { b: _existing_scope($childScope) }); return 0; } }, $scope0_id, "b"); _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: show, e: value }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event/__snapshots__/html.bundle.debug.js index 0c1292cb29d..807f2934906 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -18,5 +18,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event/__snapshots__/html.bundle.js index 8d9a532c82c..2c52872fc20 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-event/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -18,5 +18,5 @@ var template_default = _template("b", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-head/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-head/__snapshots__/html.bundle.debug.js index 0090ab7f831..f1947db528d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-head/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-head/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -16,5 +16,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _trailers(""); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-head/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-head/__snapshots__/html.bundle.js index e8ebc00b022..0153a84c6b4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-head/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-head/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -16,5 +16,5 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _trailers(""); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-attrs-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-attrs-update/__snapshots__/html.bundle.debug.js index b57b5c92a28..ed72338b7f9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-attrs-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-attrs-update/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { value: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-attrs-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-attrs-update/__snapshots__/html.bundle.js index e44bc8f53ec..a5562e1f009 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-attrs-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-attrs-update/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: value, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-unmount-before-load/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-unmount-before-load/__snapshots__/html.bundle.debug.js index 86a693f5431..4b89c45fefe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-unmount-before-load/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-unmount-before-load/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -24,13 +24,13 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); - writeScope($scope1_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); + _scope($scope1_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/1"); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, value }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-unmount-before-load/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-unmount-before-load/__snapshots__/html.bundle.js index bab9b7acd5e..1c37f3d57d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-unmount-before-load/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle-unmount-before-load/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -24,13 +24,13 @@ var template_default = _template("b", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); - writeScope($scope1_id, { b: _existing_scope($childScope) }); + _scope($scope1_id, { b: _existing_scope($childScope) }); return 0; } }, $scope0_id, "b"); _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: show, e: value }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle/__snapshots__/html.bundle.debug.js index 1de92c92eeb..c4a30afda18 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -18,5 +18,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle/__snapshots__/html.bundle.js index cb38f47d8a3..a1d97a32de7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-idle/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -18,5 +18,5 @@ var template_default = _template("b", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-chunk-load-error/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-chunk-load-error/__snapshots__/html.bundle.debug.js index 2f04206f501..92c5b3599a9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-chunk-load-error/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-chunk-load-error/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -21,11 +21,11 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope4_id = _scope_id(); $Child_withLoadAssets({ value: 1 }); - writeScope($scope4_id, {}, "__tests__/template.marko", "6:4"); + _scope($scope4_id, {}, "__tests__/template.marko", "6:4"); return 0; } }, $scope1_id, "#text/0"); - _subscribe($show__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2")); + _subscribe($show__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2")); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_2*content", () => { @@ -37,10 +37,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope3_reason = _scope_reason(); const $scope3_id = _scope_id(); _html(`
    ${_text_resume($scope3_id, "#text/0", err.message, _serialize_guard($scope3_reason, 0))}
    `); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, {}, "__tests__/template.marko", "12:4"); + _serialize_if($scope3_reason, 0) && _scope($scope3_id, {}, "__tests__/template.marko", "12:4"); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "ClosureScopes:show": $show__closures }, "__tests__/template.marko", 0); + _scope($scope0_id, { "ClosureScopes:show": $show__closures }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-chunk-load-error/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-chunk-load-error/__snapshots__/html.bundle.js index b5b801802da..4040f362f45 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-chunk-load-error/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-chunk-load-error/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -17,7 +17,7 @@ var template_default = _template("b", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _if(() => {}, $scope1_id, "a"); - _subscribe($show__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($show__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("b0", () => { @@ -29,10 +29,10 @@ var template_default = _template("b", (input) => { const $scope3_reason = _scope_reason(); const $scope3_id = _scope_id(); _html(`
    ${_text_resume($scope3_id, "a", err.message, _serialize_guard($scope3_reason, 0))}
    `); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, {}); + _serialize_if($scope3_reason, 0) && _scope($scope3_id, {}); }, $scope0_id) }) }); _script($scope0_id, "b3"); - writeScope($scope0_id, { d: $show__closures }); + _scope($scope0_id, { d: $show__closures }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-event-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-event-handler/__snapshots__/html.bundle.debug.js index c7b41b98c51..65917c664a3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-event-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-event-handler/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let verified = "?"; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input, data }, "__tests__/child.marko", 0, { @@ -31,7 +31,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/report", $scope0_id) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { shared, count }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-event-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-event-handler/__snapshots__/html.bundle.js index d045fe1ebba..d3f1c9eaba0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-event-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-input-event-handler/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { let data = input.data; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: input, f: data }); @@ -27,7 +27,7 @@ var template_default = _template("b", (input) => { }, "b0", $scope0_id) }); _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: shared, f: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-entry-error/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-entry-error/__snapshots__/html.bundle.debug.js index c8de24cd054..27854ca3291 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-entry-error/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-entry-error/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); @@ -25,7 +25,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ label: input.label }); - $si__input_label && _subscribe($input_label__closures, writeScope($scope1_id, { + $si__input_label && _subscribe($input_label__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "4:4")); @@ -36,5 +36,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("
    failed
    "); }, $scope0_id) }) }); _html(""); - $si__input_label && writeScope($scope0_id, { "ClosureScopes:input_label": $input_label__closures }, "__tests__/template.marko", 0); + $si__input_label && _scope($scope0_id, { "ClosureScopes:input_label": $input_label__closures }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-entry-error/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-entry-error/__snapshots__/html.bundle.js index 60bd641e253..ace3d650157 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-entry-error/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-entry-error/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { g: count }); + _scope($scope0_id, { g: count }); _resume_branch($scope0_id); }); @@ -25,7 +25,7 @@ var template_default = _template("b", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ label: input.label }); - $si__input_label && _subscribe($input_label__closures, writeScope($scope1_id, { + $si__input_label && _subscribe($input_label__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), b: _existing_scope($childScope) })); @@ -36,5 +36,5 @@ var template_default = _template("b", (input) => { _html("
    failed
    "); }, $scope0_id) }) }); _html(""); - $si__input_label && writeScope($scope0_id, { e: $input_label__closures }); + $si__input_label && _scope($scope0_id, { e: $input_label__closures }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error-nested-placeholder/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error-nested-placeholder/__snapshots__/html.bundle.debug.js index 6effe559bbd..4a6fb5f8fbf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error-nested-placeholder/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error-nested-placeholder/__snapshots__/html.bundle.debug.js @@ -21,7 +21,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope4_reason = _scope_reason(); const $scope4_id = _scope_id(); _html(`caught: ${_text_resume($scope4_id, "#text/0", err.message, _serialize_guard($scope4_reason, 0) * 2)}`); - _serialize_if($scope4_reason, 0) && writeScope($scope4_id, {}, "__tests__/template.marko", "7:6"); + _serialize_if($scope4_reason, 0) && _scope($scope4_id, {}, "__tests__/template.marko", "7:6"); }, $scope1_id) }) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_2*content", () => { _scope_reason(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error-nested-placeholder/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error-nested-placeholder/__snapshots__/html.bundle.js index 8862833a999..01551c654f4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error-nested-placeholder/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error-nested-placeholder/__snapshots__/html.bundle.js @@ -21,7 +21,7 @@ var template_default = _template("b", (input) => { const $scope4_reason = _scope_reason(); const $scope4_id = _scope_id(); _html(`caught: ${_text_resume($scope4_id, "a", err.message, _serialize_guard($scope4_reason, 0) * 2)}`); - _serialize_if($scope4_reason, 0) && writeScope($scope4_id, {}); + _serialize_if($scope4_reason, 0) && _scope($scope4_id, {}); }, $scope1_id) }) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("b2", () => { _scope_reason(); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error/__snapshots__/html.bundle.debug.js index 2f04206f501..92c5b3599a9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -21,11 +21,11 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope4_id = _scope_id(); $Child_withLoadAssets({ value: 1 }); - writeScope($scope4_id, {}, "__tests__/template.marko", "6:4"); + _scope($scope4_id, {}, "__tests__/template.marko", "6:4"); return 0; } }, $scope1_id, "#text/0"); - _subscribe($show__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2")); + _subscribe($show__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2")); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_2*content", () => { @@ -37,10 +37,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope3_reason = _scope_reason(); const $scope3_id = _scope_id(); _html(`
    ${_text_resume($scope3_id, "#text/0", err.message, _serialize_guard($scope3_reason, 0))}
    `); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, {}, "__tests__/template.marko", "12:4"); + _serialize_if($scope3_reason, 0) && _scope($scope3_id, {}, "__tests__/template.marko", "12:4"); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "ClosureScopes:show": $show__closures }, "__tests__/template.marko", 0); + _scope($scope0_id, { "ClosureScopes:show": $show__closures }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error/__snapshots__/html.bundle.js index b5b801802da..4040f362f45 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-error/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -17,7 +17,7 @@ var template_default = _template("b", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _if(() => {}, $scope1_id, "a"); - _subscribe($show__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($show__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("b0", () => { @@ -29,10 +29,10 @@ var template_default = _template("b", (input) => { const $scope3_reason = _scope_reason(); const $scope3_id = _scope_id(); _html(`
    ${_text_resume($scope3_id, "a", err.message, _serialize_guard($scope3_reason, 0))}
    `); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, {}); + _serialize_if($scope3_reason, 0) && _scope($scope3_id, {}); }, $scope0_id) }) }); _script($scope0_id, "b3"); - writeScope($scope0_id, { d: $show__closures }); + _scope($scope0_id, { d: $show__closures }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-script-error/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-script-error/__snapshots__/html.bundle.debug.js index c8de24cd054..27854ca3291 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-script-error/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-script-error/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); @@ -25,7 +25,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ label: input.label }); - $si__input_label && _subscribe($input_label__closures, writeScope($scope1_id, { + $si__input_label && _subscribe($input_label__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "4:4")); @@ -36,5 +36,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("
    failed
    "); }, $scope0_id) }) }); _html(""); - $si__input_label && writeScope($scope0_id, { "ClosureScopes:input_label": $input_label__closures }, "__tests__/template.marko", 0); + $si__input_label && _scope($scope0_id, { "ClosureScopes:input_label": $input_label__closures }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-script-error/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-script-error/__snapshots__/html.bundle.js index 60bd641e253..ace3d650157 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-script-error/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-load-script-error/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { g: count }); + _scope($scope0_id, { g: count }); _resume_branch($scope0_id); }); @@ -25,7 +25,7 @@ var template_default = _template("b", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ label: input.label }); - $si__input_label && _subscribe($input_label__closures, writeScope($scope1_id, { + $si__input_label && _subscribe($input_label__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), b: _existing_scope($childScope) })); @@ -36,5 +36,5 @@ var template_default = _template("b", (input) => { _html("
    failed
    "); }, $scope0_id) }) }); _html(""); - $si__input_label && writeScope($scope0_id, { e: $input_label__closures }); + $si__input_label && _scope($scope0_id, { e: $input_label__closures }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-marker-walk-offset/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-marker-walk-offset/__snapshots__/html.bundle.debug.js index d7cdf27fe7a..9d3f7b7c66b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-marker-walk-offset/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-marker-walk-offset/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -17,7 +17,7 @@ var template_default = _template("__tests__/template.marko", (input) => { $Child_withLoadAssets({ value }); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0, { value: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-marker-walk-offset/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-marker-walk-offset/__snapshots__/html.bundle.js index 4d346ce1e1a..821ad220c18 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-marker-walk-offset/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-marker-walk-offset/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -17,7 +17,7 @@ var template_default = _template("b", (input) => { $Child_withLoadAssets({ value }); _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: value, b: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-media/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-media/__snapshots__/html.bundle.debug.js index a7f764c6916..df4db80c0bc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-media/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-media/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -18,5 +18,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-media/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-media/__snapshots__/html.bundle.js index f0afe139d41..43b048cae74 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-media/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-media/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -18,5 +18,5 @@ var template_default = _template("b", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-mixed-known-and-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-mixed-known-and-dynamic/__snapshots__/html.bundle.debug.js index b0d580f5bf6..e99c25f9091 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-mixed-known-and-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-mixed-known-and-dynamic/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("__tests__/template.marko", (input) => { $Child_withLoadAssets({ value }); _dynamic_tag($scope0_id, "#text/4", show ? $Child_withLoadAssets : null, { value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, value, "#childScope/3": _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-mixed-known-and-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-mixed-known-and-dynamic/__snapshots__/html.bundle.js index 726567b8073..9a3a2e82c79 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-mixed-known-and-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-mixed-known-and-dynamic/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("b", (input) => { $Child_withLoadAssets({ value }); _dynamic_tag($scope0_id, "e", $Child_withLoadAssets, { value }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: show, g: value, d: _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-attrs-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-attrs-update/__snapshots__/html.bundle.debug.js index 886c79c5b3d..c1d786ba7a4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-attrs-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-attrs-update/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -23,7 +23,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { value: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-attrs-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-attrs-update/__snapshots__/html.bundle.js index a827d542efa..df15d7e3160 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-attrs-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-attrs-update/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -23,7 +23,7 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: value, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-fallback/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-fallback/__snapshots__/html.bundle.debug.js index 8685a961653..ffce7fc6ece 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-fallback/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-fallback/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -21,5 +21,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-fallback/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-fallback/__snapshots__/html.bundle.js index 48e5511d9b6..2b879283e40 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-fallback/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-fallback/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -21,5 +21,5 @@ var template_default = _template("b", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-visible-wins/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-visible-wins/__snapshots__/html.bundle.debug.js index af2928c5ac5..8bda67f243e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-visible-wins/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-visible-wins/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -23,7 +23,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { value: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-visible-wins/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-visible-wins/__snapshots__/html.bundle.js index c08e43632d4..8619c7c0015 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-visible-wins/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger-visible-wins/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -23,7 +23,7 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: value, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger/__snapshots__/html.bundle.debug.js index 05de53fcf88..cb7ccc8ce30 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -21,5 +21,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger/__snapshots__/html.bundle.js index 62d827f317f..35719fa79d0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multi-trigger/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -21,5 +21,5 @@ var template_default = _template("b", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multiple/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multiple/__snapshots__/html.bundle.debug.js index 5f7f2d65d79..f62dabcc2da 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multiple/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multiple/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_a_default = _template("__tests__/child-a.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child-a.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child-a.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child-a.marko", 0); }); // child-b.marko @@ -13,7 +13,7 @@ var child_b_default = _template("__tests__/child-b.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value * 2, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child-b.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child-b.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child-b.marko", 0); }); // template.marko @@ -31,7 +31,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope2 = _peek_scope_id(); $ChildB_withLoadAssets({ value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "#childScope/2": _existing_scope($childScope), "#childScope/4": _existing_scope($childScope2) diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multiple/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multiple/__snapshots__/html.bundle.js index 4ec965f38ec..aeaa6ede052 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multiple/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-multiple/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_a_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // child-b.marko @@ -13,7 +13,7 @@ var child_b_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value * 2, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "b0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -31,7 +31,7 @@ var template_default = _template("c", (input) => { const $childScope2 = _peek_scope_id(); $ChildB_withLoadAssets({ value }); _script($scope0_id, "c0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: value, c: _existing_scope($childScope), e: _existing_scope($childScope2) diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/__snapshots__/html.bundle.debug.js index 34e1b169c50..07439f4057d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var grand_child_default = _template("__tests__/grand-child.marko", (input) => { _html(`${_escape(v)}`); }, 0); _script($scope0_id, "__tests__/grand-child.marko_0"); - writeScope($scope0_id, { n }, "__tests__/grand-child.marko", 0, { n: "3:6" }); + _scope($scope0_id, { n }, "__tests__/grand-child.marko", 0, { n: "3:6" }); _resume_branch($scope0_id); }); @@ -27,14 +27,14 @@ var child_default = _template("__tests__/child.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); $GrandChild_withLoadAssets({ value: count }); - _subscribe($count__closures, writeScope($scope1_id, { + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), "#childScope/2": _existing_scope($childScope) }, "__tests__/child.marko", "6:2")); _resume_branch($scope1_id); }); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/child.marko", 0, { count: "4:6" }); @@ -50,5 +50,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _html("
    after
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/__snapshots__/html.bundle.js index 8859d4ed4ec..ba4dc32e379 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var grand_child_default = _template("b", (input) => { _html(`${_escape(v)}`); }, 0); _script($scope0_id, "b0"); - writeScope($scope0_id, { h: n }); + _scope($scope0_id, { h: n }); _resume_branch($scope0_id); }); @@ -27,14 +27,14 @@ var child_default = _template("a", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); $GrandChild_withLoadAssets({ value: count }); - _subscribe($count__closures, writeScope($scope1_id, { + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), c: _existing_scope($childScope) })); _resume_branch($scope1_id); }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { g: count, h: $count__closures }); @@ -50,5 +50,5 @@ var template_default = _template("c", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _html("
    after
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared-reversed/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared-reversed/__snapshots__/html.bundle.debug.js index 4cf9fdcc682..4f8cf890c88 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared-reversed/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared-reversed/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var grand_child_default = _template("__tests__/grand-child.marko", (input) => { let copy = input.obj; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/grand-child.marko_0"); - writeScope($scope0_id, { copy }, "__tests__/grand-child.marko", 0, { copy: "1:6" }); + _scope($scope0_id, { copy }, "__tests__/grand-child.marko", 0, { copy: "1:6" }); _resume_branch($scope0_id); }); @@ -19,7 +19,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $childScope = _peek_scope_id(); $GrandChild_withLoadAssets({ obj }); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { obj, "#childScope/3": _existing_scope($childScope) }, "__tests__/child.marko", 0, { obj: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared-reversed/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared-reversed/__snapshots__/html.bundle.js index 82646459c3d..7e34348c0ad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared-reversed/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared-reversed/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var grand_child_default = _template("b", (input) => { let copy = input.obj; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { f: copy }); + _scope($scope0_id, { f: copy }); _resume_branch($scope0_id); }); @@ -19,7 +19,7 @@ var child_default = _template("a", (input) => { const $childScope = _peek_scope_id(); $GrandChild_withLoadAssets({ obj }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: obj, d: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared/__snapshots__/html.bundle.debug.js index 4cf9fdcc682..4f8cf890c88 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var grand_child_default = _template("__tests__/grand-child.marko", (input) => { let copy = input.obj; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/grand-child.marko_0"); - writeScope($scope0_id, { copy }, "__tests__/grand-child.marko", 0, { copy: "1:6" }); + _scope($scope0_id, { copy }, "__tests__/grand-child.marko", 0, { copy: "1:6" }); _resume_branch($scope0_id); }); @@ -19,7 +19,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $childScope = _peek_scope_id(); $GrandChild_withLoadAssets({ obj }); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { obj, "#childScope/3": _existing_scope($childScope) }, "__tests__/child.marko", 0, { obj: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared/__snapshots__/html.bundle.js index 82646459c3d..7e34348c0ad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-shared/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var grand_child_default = _template("b", (input) => { let copy = input.obj; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { f: copy }); + _scope($scope0_id, { f: copy }); _resume_branch($scope0_id); }); @@ -19,7 +19,7 @@ var child_default = _template("a", (input) => { const $childScope = _peek_scope_id(); $GrandChild_withLoadAssets({ obj }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: obj, d: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-visible-parent/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-visible-parent/__snapshots__/html.bundle.debug.js index 84177972e45..5fa3dfedaf6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-visible-parent/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-visible-parent/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var grand_child_default = _template("__tests__/grand-child.marko", (input) => { let copy = input.obj; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/grand-child.marko_0"); - writeScope($scope0_id, { copy }, "__tests__/grand-child.marko", 0, { copy: "1:6" }); + _scope($scope0_id, { copy }, "__tests__/grand-child.marko", 0, { copy: "1:6" }); _resume_branch($scope0_id); }); @@ -19,7 +19,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $childScope = _peek_scope_id(); $GrandChild_withLoadAssets({ obj }); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { obj, "#childScope/3": _existing_scope($childScope) }, "__tests__/child.marko", 0, { obj: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-visible-parent/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-visible-parent/__snapshots__/html.bundle.js index 68921109816..916bf50e47b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-visible-parent/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-visible-parent/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var grand_child_default = _template("b", (input) => { let copy = input.obj; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { f: copy }); + _scope($scope0_id, { f: copy }); _resume_branch($scope0_id); }); @@ -19,7 +19,7 @@ var child_default = _template("a", (input) => { const $childScope = _peek_scope_id(); $GrandChild_withLoadAssets({ obj }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: obj, d: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested/__snapshots__/html.bundle.debug.js index ca5790e815b..b4f05647fa1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var grand_child_default = _template("__tests__/grand-child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/grand-child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/grand-child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/grand-child.marko", 0); }); // child.marko @@ -15,7 +15,7 @@ var child_default = _template("__tests__/child.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $GrandChild_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/child.marko", 0); }); // template.marko @@ -26,5 +26,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested/__snapshots__/html.bundle.js index a455758c3ed..7554f17ad1d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var grand_child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "b0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // child.marko @@ -15,7 +15,7 @@ var child_default = _template("a", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $GrandChild_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }); // template.marko @@ -26,5 +26,5 @@ var template_default = _template("c", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-parent-scope-child-state/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-parent-scope-child-state/__snapshots__/html.bundle.debug.js index 8d253758a47..c0fc4532751 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-parent-scope-child-state/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-parent-scope-child-state/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = input.value; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); @@ -20,7 +20,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "#childScope/3": _existing_scope($childScope) }, "__tests__/template.marko", 0, { value: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-parent-scope-child-state/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-parent-scope-child-state/__snapshots__/html.bundle.js index 686bca7b2b8..41ad7c39fd8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-parent-scope-child-state/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-parent-scope-child-state/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { let count = input.value; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { g: count }); + _scope($scope0_id, { g: count }); _resume_branch($scope0_id); }); @@ -20,7 +20,7 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: value, d: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder-script-runs-after-insert/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder-script-runs-after-insert/__snapshots__/html.bundle.debug.js index 57250d43a61..4e8f2ddca34 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder-script-runs-after-insert/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder-script-runs-after-insert/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/1", input.value, _serialize_guard($scope0_reason, 0))}${_el_resume($scope0_id, "#span/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder-script-runs-after-insert/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder-script-runs-after-insert/__snapshots__/html.bundle.js index 4eb20376056..321ac3a150b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder-script-runs-after-insert/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder-script-runs-after-insert/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "b", input.value, _serialize_guard($scope0_reason, 0))}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder/__snapshots__/html.bundle.debug.js index 1c2f2ef246b..1d6ab010262 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: count }); - _subscribe($count__closures, writeScope($scope1_id, { + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", "4:2")); @@ -31,7 +31,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id) }) }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/template.marko", 0, { count: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder/__snapshots__/html.bundle.js index 3152d66ed47..48f49f1221a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-placeholder/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -19,7 +19,7 @@ var template_default = _template("b", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: count }); - _subscribe($count__closures, writeScope($scope1_id, { + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), b: _existing_scope($childScope) })); @@ -31,7 +31,7 @@ var template_default = _template("b", (input) => { }, $scope0_id) }) }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "b2"); - writeScope($scope0_id, { + _scope($scope0_id, { f: count, g: $count__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-reorder-stream-order/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-reorder-stream-order/__snapshots__/html.bundle.debug.js index 42990b8a835..e91dd3604fe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-reorder-stream-order/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-reorder-stream-order/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = 0; _html(`${_text_resume($scope0_id, "#text/1", input.label, _serialize_guard($scope0_reason, 0))}:${_text_resume($scope0_id, "#text/2", count, 2)}${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_label: input.label, shared, count diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-reorder-stream-order/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-reorder-stream-order/__snapshots__/html.bundle.js index f8c78760a54..465c115deba 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-reorder-stream-order/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-reorder-stream-order/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var child_default = _template("a", (input) => { let count = 0; _html(`${_text_resume($scope0_id, "b", input.label, _serialize_guard($scope0_reason, 0))}:${_text_resume($scope0_id, "c", count, 2)}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { g: input.label, h: shared, i: count diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-runtime-id/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-runtime-id/__snapshots__/html.bundle.debug.js index 239e5357c33..7191238b178 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-runtime-id/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-runtime-id/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = input.value; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-runtime-id/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-runtime-id/__snapshots__/html.bundle.js index bea5efefc91..2ebe30f6cb1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-runtime-id/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-runtime-id/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { let count = input.value; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { f: count }); + _scope($scope0_id, { f: count }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-script-runs-after-insert/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-script-runs-after-insert/__snapshots__/html.bundle.debug.js index cd02ca845bc..9483e4c7c66 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-script-runs-after-insert/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-script-runs-after-insert/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/1", input.value, _serialize_guard($scope0_reason, 0))}${_el_resume($scope0_id, "#span/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-script-runs-after-insert/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-script-runs-after-insert/__snapshots__/html.bundle.js index f46fd90cab4..73bfb2eacfd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-script-runs-after-insert/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-script-runs-after-insert/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "b", input.value, _serialize_guard($scope0_reason, 0))}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialize-promise/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialize-promise/__snapshots__/html.bundle.debug.js index 807e39e68ca..0d7d4af8794 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialize-promise/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialize-promise/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const promise = Promise.resolve("hello"); _html("
    0
    "); _script($scope0_id, "__tests__/child.marko_0_promise#0"); - writeScope($scope0_id, { promise }, "__tests__/child.marko", 0, { promise: "1:8" }); + _scope($scope0_id, { promise }, "__tests__/child.marko", 0, { promise: "1:8" }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialize-promise/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialize-promise/__snapshots__/html.bundle.js index 0fbbfb2c87e..fea4956bf68 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialize-promise/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialize-promise/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { const promise = Promise.resolve("hello"); _html("
    0
    "); _script($scope0_id, "a0"); - writeScope($scope0_id, { a: promise }); + _scope($scope0_id, { a: promise }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialized-globals/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialized-globals/__snapshots__/html.bundle.debug.js index d79fea3f4a0..5ec6d1c1c16 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialized-globals/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialized-globals/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialized-globals/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialized-globals/__snapshots__/html.bundle.js index 0270933c2a8..632db23ac99 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialized-globals/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-serialized-globals/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var child_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent-conflicting-triggers/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent-conflicting-triggers/__snapshots__/html.bundle.debug.js index ffe53c22c32..0397f560c31 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent-conflicting-triggers/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent-conflicting-triggers/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/tags/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/parent-a.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent-conflicting-triggers/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent-conflicting-triggers/__snapshots__/html.bundle.js index 64cf3206447..eb3b4106701 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent-conflicting-triggers/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent-conflicting-triggers/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "b0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/parent-a.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent/__snapshots__/html.bundle.debug.js index facfe75cfcb..44ab7a6a7c5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/tags/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/parent-a.marko @@ -15,7 +15,7 @@ var parent_a_default = _template("__tests__/tags/parent-a.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets$1({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/tags/parent-a.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/tags/parent-a.marko", 0); }); // tags/parent-b.marko @@ -26,7 +26,7 @@ var parent_b_default = _template("__tests__/tags/parent-b.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value * 2 }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/tags/parent-b.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/tags/parent-b.marko", 0); }); // template.marko @@ -42,7 +42,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope2 = _peek_scope_id(); parent_b_default({ value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "#childScope/1": _existing_scope($childScope), "#childScope/2": _existing_scope($childScope2) diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent/__snapshots__/html.bundle.js index dfe4a81b578..6f0cd604d64 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-parent/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "b0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/parent-a.marko @@ -15,7 +15,7 @@ var parent_a_default = _template("c", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets$1({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }); // tags/parent-b.marko @@ -26,7 +26,7 @@ var parent_b_default = _template("d", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value * 2 }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }); // template.marko @@ -42,7 +42,7 @@ var template_default = _template("a", (input) => { const $childScope2 = _peek_scope_id(); parent_b_default({ value }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: value, b: _existing_scope($childScope), c: _existing_scope($childScope2) diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-with-eager/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-with-eager/__snapshots__/html.bundle.debug.js index fd4a98f3330..8a22ca7a9f6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-with-eager/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-with-eager/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var shared_default = _template("__tests__/shared.marko", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/shared.marko_0"); - writeScope($scope0_id, { n }, "__tests__/shared.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/shared.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-with-eager/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-with-eager/__snapshots__/html.bundle.js index d2ad4329f01..1e19d7db7c7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-with-eager/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-shared-with-eager/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var shared_default = _template("d", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "d0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-sibling-binding/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-sibling-binding/__snapshots__/html.bundle.debug.js index 1d3eb7f0059..f379161ae81 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-sibling-binding/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-sibling-binding/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var child_s_default = _template("__tests__/child-s.marko", (input) => { let verified = "?"; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child-s.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { isShared, holder }, "__tests__/child-s.marko", 0, { @@ -26,7 +26,7 @@ var child_b_default = _template("__tests__/child-b.marko", (input) => { let verified = "?"; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child-b.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { isInner, inner }, "__tests__/child-b.marko", 0, { @@ -58,7 +58,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/isInner", $scope0_id) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { shared, count }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-sibling-binding/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-sibling-binding/__snapshots__/html.bundle.js index ca2754e4d42..da245e2d979 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-sibling-binding/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-sibling-binding/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var child_s_default = _template("b", (input) => { let holder = input.holder; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { g: isShared, h: holder }); @@ -21,7 +21,7 @@ var child_b_default = _template("a", (input) => { let inner = input.inner; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { g: isInner, h: inner }); @@ -50,7 +50,7 @@ var template_default = _template("c", (input) => { }, "c1", $scope0_id) }); _script($scope0_id, "c2"); - writeScope($scope0_id, { + _scope($scope0_id, { g: shared, i: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-twice/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-twice/__snapshots__/html.bundle.debug.js index 72a72c05459..6eff552e765 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-twice/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-twice/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = input.value; _html(`${_text_resume($scope0_id, "#text/1", count)}${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { id: "b", value: input.value * 10 }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope), "#childScope/3": _existing_scope($childScope2) }, "__tests__/template.marko", 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-twice/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-twice/__snapshots__/html.bundle.js index 5a6c9851f70..75296050a5a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-twice/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-twice/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { let count = input.value; _html(`${_text_resume($scope0_id, "b", count)}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { g: count }); + _scope($scope0_id, { g: count }); _resume_branch($scope0_id); }); @@ -24,7 +24,7 @@ var template_default = _template("b", (input) => { id: "b", value: input.value * 10 }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope), d: _existing_scope($childScope2) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-unmount-before-load/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-unmount-before-load/__snapshots__/html.bundle.debug.js index 96c9916cc28..a16cf4ad50c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-unmount-before-load/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-unmount-before-load/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -29,11 +29,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope3_id = _scope_id(); _html("loading"); }, $scope1_id) }) }); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:2"); return 0; } }, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "4:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "4:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-unmount-before-load/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-unmount-before-load/__snapshots__/html.bundle.js index 3e8b52e7872..6f9c003b9ae 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-unmount-before-load/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-unmount-before-load/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -29,11 +29,11 @@ var template_default = _template("b", (input) => { _scope_id(); _html("loading"); }, $scope1_id) }) }); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b"); _script($scope0_id, "b2"); - writeScope($scope0_id, { c: show }); + _scope($scope0_id, { c: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-attrs-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-attrs-update/__snapshots__/html.bundle.debug.js index 5ee86e82a0f..434bf380104 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-attrs-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-attrs-update/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { value, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { value: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-attrs-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-attrs-update/__snapshots__/html.bundle.js index 7fe1e2a68fb..885b0bc3a11 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-attrs-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-attrs-update/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: value, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-auto/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-auto/__snapshots__/html.bundle.debug.js index 2058ed7b002..18a6ea3311b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-auto/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-auto/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -18,5 +18,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-parent-resume/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-parent-resume/__snapshots__/html.bundle.debug.js index 9bb1e233231..ac588e44f85 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-parent-resume/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-parent-resume/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = input.value; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); @@ -23,7 +23,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "#childScope/3": _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }, "__tests__/template.marko", 0, { count: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-parent-resume/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-parent-resume/__snapshots__/html.bundle.js index dfbbb1a6ae9..aba8a348823 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-parent-resume/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-parent-resume/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { let count = input.value; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { f: count }); + _scope($scope0_id, { f: count }); _resume_branch($scope0_id); }); @@ -23,7 +23,7 @@ var template_default = _template("b", (input) => { const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { h: count, d: _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-target-after-flush/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-target-after-flush/__snapshots__/html.bundle.debug.js index 29fc1e3f88a..38d28c3df18 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-target-after-flush/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-target-after-flush/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); const { value } = input; _html(`
    child ${_text_resume($scope0_id, "#text/0", value, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -30,5 +30,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); _html("loading..."); }, $scope0_id) }) }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-target-after-flush/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-target-after-flush/__snapshots__/html.bundle.js index 3c1e8e2e1f0..0c3fadca167 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-target-after-flush/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-target-after-flush/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); const { value } = input; _html(`
    child ${_text_resume($scope0_id, "a", value, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -30,5 +30,5 @@ var template_default = _template("b", (input) => { _scope_id(); _html("loading..."); }, $scope0_id) }) }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible/__snapshots__/html.bundle.debug.js index 71f15e3a98f..8fcddfa3557 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/child.marko_0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/child.marko", 0); }); // template.marko @@ -19,5 +19,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible/__snapshots__/html.bundle.js index 46f880b1252..e64e429fe9a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.value, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "a0"); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -19,5 +19,5 @@ var template_default = _template("b", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); $Child_withLoadAssets({ value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag/__snapshots__/html.bundle.debug.js index 6b9ef215f1d..f42ece410b5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/child.marko", (input) => { let count = input.value; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/child.marko_0"); - writeScope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/child.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }); @@ -19,5 +19,5 @@ var template_default = _template("__tests__/template.marko", (input) => { label: "x", value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag/__snapshots__/html.bundle.js index 061e5ddb7e3..acc9c82f3c0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lazy-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lazy-tag/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("a", (input) => { let count = input.value; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { h: count }); + _scope($scope0_id, { h: count }); _resume_branch($scope0_id); }); @@ -19,5 +19,5 @@ var template_default = _template("b", (input) => { label: "x", value: input.value }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { b: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/html.bundle.debug.js index d3e80433897..cab5ca9ff90 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let user = index !== -1 && { id: index }; _html(`
    ${_escape(user?.id)}
    ${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { index }, "__tests__/template.marko", 0, { index: "1:5" }); + _scope($scope0_id, { index }, "__tests__/template.marko", 0, { index: "1:5" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/html.bundle.js index 985833603b0..3ebe88a3e94 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-basic-member-expression-never-update/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let index = -1; _html(`
    ${_escape(false.id)}
    ${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: index }); + _scope($scope0_id, { c: index }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/html.bundle.debug.js index 7a8e796135d..217b47740d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/html.bundle.debug.js @@ -27,10 +27,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(list, (item) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "#text/0", item)}
  • `); - writeScope($scope1_id, {}, "__tests__/template.marko", "10:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "10:4"); }, 0, $scope0_id, "#ul/3", 1, 1, 1, "", 1); _script($scope0_id, "__tests__/template.marko_0_store_clear#8"); - writeScope($scope0_id, { + _scope($scope0_id, { store_clear: store?.clear, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { store_clear: ["store.clear", "1:8"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/html.bundle.js index 101c1406e78..58f1b6e232e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-bind-stateful-upstream-alias/__snapshots__/html.bundle.js @@ -26,10 +26,10 @@ var template_default = _template("a", (input) => { _for_of(list, (item) => { const $scope1_id = _scope_id(); _html(`
  • ${_text_resume($scope1_id, "a", item)}
  • `); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "d", 1, 1, 1, "", 1); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { i: store?.clear, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-bind-to-undefined/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-bind-to-undefined/__snapshots__/html.bundle.debug.js index 6cb52c838cc..2f6ee6264dd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-bind-to-undefined/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-bind-to-undefined/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); let local = input.value; _html(`
    ${_text_resume($scope0_id, "#text/0", local == null ? "none" : local, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { input_value: _serialize_if($scope0_reason, 2) && input.value, input_valueChange: _serialize_if($scope0_reason, 1) && input.valueChange }, "__tests__/tags/child.marko", 0, { @@ -29,6 +29,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-bind-to-undefined/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-bind-to-undefined/__snapshots__/html.bundle.js index c7a2f8533f5..464bbcbe928 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-bind-to-undefined/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-bind-to-undefined/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); let local = input.value; _html(`
    ${_text_resume($scope0_id, "a", local == null ? "none" : local, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && input.value, e: _serialize_if($scope0_reason, 1) && input.valueChange }); @@ -26,6 +26,6 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-change-handler-unassigned/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-change-handler-unassigned/__snapshots__/html.bundle.debug.js index 90cf50f533d..cc7937a2bb1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-change-handler-unassigned/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-change-handler-unassigned/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const { initial, onValue } = input; let value = initial; _html(`${_text_resume($scope0_id, "#text/0", value, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { initial: _serialize_if($scope0_reason, 2) && initial, onValue: _serialize_if($scope0_reason, 1) && onValue }, "__tests__/tags/child.marko", 0, { @@ -28,7 +28,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { initial, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { initial: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-change-handler-unassigned/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-change-handler-unassigned/__snapshots__/html.bundle.js index d1fa00d5326..1c0b012021b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-change-handler-unassigned/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-change-handler-unassigned/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); const { initial, onValue } = input; _html(`${_text_resume($scope0_id, "a", initial, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && initial, e: _serialize_if($scope0_reason, 1) && onValue }); @@ -24,7 +24,7 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: initial, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-input-attr-tag-scope-collision/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-input-attr-tag-scope-collision/__snapshots__/html.bundle.debug.js index 580b2225346..68317cafe41 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-input-attr-tag-scope-collision/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-input-attr-tag-scope-collision/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_tag_default = _template("__tests__/tags/child-tag/index.marko", (input _html("
    "); _dynamic_tag($scope0_id, "#text/0", input.footer, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child-tag/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child-tag/index.marko", 0); }); // template.marko @@ -19,10 +19,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/1", input.label, _serialize_guard($scope0_reason, 4))}`); - _serialize_if($scope0_reason, 0) && _subscribe($si__input_label && $input_label__closures, _subscribe($si__input_submitLabel && $input_submitLabel__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:4"))); + _serialize_if($scope0_reason, 0) && _subscribe($si__input_label && $input_label__closures, _subscribe($si__input_submitLabel && $input_submitLabel__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:4"))); _resume_branch($scope1_id); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { input_open: _serialize_if($scope0_reason, 2) && input.open, input_openChange: _serialize_if($scope0_reason, 1) && input.openChange, "TagVariableChange:open": input.openChange || void 0, diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-input-attr-tag-scope-collision/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-input-attr-tag-scope-collision/__snapshots__/html.bundle.js index f0454087a59..5517701bf7a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-input-attr-tag-scope-collision/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-input-attr-tag-scope-collision/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_tag_default = _template("b", (input) => { _html("
    "); _dynamic_tag($scope0_id, "a", input.footer, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -19,10 +19,10 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "b", input.label, _serialize_guard($scope0_reason, 4))}`); - _serialize_if($scope0_reason, 0) && _subscribe($si__input_label && $input_label__closures, _subscribe($si__input_submitLabel && $input_submitLabel__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }))); + _serialize_if($scope0_reason, 0) && _subscribe($si__input_label && $input_label__closures, _subscribe($si__input_submitLabel && $input_submitLabel__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }))); _resume_branch($scope1_id); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { d: _serialize_if($scope0_reason, 2) && input.open, e: _serialize_if($scope0_reason, 1) && input.openChange, j: input.openChange || void 0, diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/html.bundle.debug.js index 800b18c8a28..a438017f166 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var let_global_default = _template("__tests__/tags/let-global.marko", (input) => let value = $global$1[input.value]; const $return = value; _script($scope0_id, "__tests__/tags/let-global.marko_0_input_value#2"); - writeScope($scope0_id, { + _scope($scope0_id, { input_value: input.value, "#TagVariableChange": _resume(function(next) { $global$1[input.value] = next; @@ -28,7 +28,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let b = a + 1; _html(`
    ${_text_resume($scope0_id, "#text/2", a)}
    ${_text_resume($scope0_id, "#text/3", b)}
    ${_el_resume($scope0_id, "#button/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { a, b, "#childScope/0": _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/html.bundle.js index dcc8525fea6..f1fe22c37c8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-custom-tag/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var let_global_default = _template("c", (input) => { const $global$1 = $global(); const $return = $global$1[input.value]; _script($scope0_id, "c1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: input.value, U: _resume(function(next) { $global$1[input.value] = next; @@ -27,7 +27,7 @@ var template_default = _template("a", (input) => { let b = a + 1; _html(`
    ${_text_resume($scope0_id, "c", a)}
    ${_text_resume($scope0_id, "d", b)}
    ${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { g: a, h: b, a: _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/html.bundle.debug.js index 0cee8844cbb..0694a173cfe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); let internal = 0; const $return = internal; - writeScope($scope1_id, { "#TagVariableChange": _resume((_new_internal) => { + _scope($scope1_id, { "#TagVariableChange": _resume((_new_internal) => { internal = _new_internal; }, "__tests__/template.marko_1/valueChange", $scope1_id) || void 0 }, "__tests__/template.marko", "1:2"); _resume_branch($scope1_id); @@ -19,7 +19,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let b = 0; _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { a, b, "#childScope/0": _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/html.bundle.js index 80c48bc0164..b3ba69de112 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-intersection-child-var-define/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var template_default = _template("a", (input) => { _scope_reason(); let internal = 0; const $return = internal; - writeScope($scope1_id, { U: _resume((_new_internal) => { + _scope($scope1_id, { U: _resume((_new_internal) => { internal = _new_internal; }, "a0", $scope1_id) || void 0 }); _resume_branch($scope1_id); @@ -19,7 +19,7 @@ var template_default = _template("a", (input) => { let b = 0; _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a3"); - writeScope($scope0_id, { + _scope($scope0_id, { e: a, f: b, a: _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/html.bundle.debug.js index 6ceaafff367..7a4c6a6a94a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { let thirdState = input.value; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/3")}${_el_resume($scope0_id, "#button/6")}`); _script($scope0_id, "__tests__/tags/child.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_value: _serialize_if($scope0_reason, 1) && input.value, input_valueChange: _serialize_if($scope0_reason, 0) && input.valueChange, state, @@ -43,6 +43,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/valueChange", $scope0_id) }); _html(`source=${_text_resume($scope0_id, "#text/1", source, 2)}`); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/html.bundle.js index b5be10bf47e..bfa86297441 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-child/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var child_default = _template("b", (input) => { let thirdState = input.value; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "d")}${_el_resume($scope0_id, "g")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { l: _serialize_if($scope0_reason, 1) && input.value, m: _serialize_if($scope0_reason, 0) && input.valueChange, o: state, @@ -34,6 +34,6 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }); _html(`source=${_text_resume($scope0_id, "b", source, 2)}`); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/html.bundle.debug.js index 9c67ae63c35..eaa7e24a39d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let y = x; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/3")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, yChange, y, diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/html.bundle.js index 8709e207ecb..243a0472a73 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-dynamic-change-handler/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { let y = x; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "d")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: x, f: yChange, h: y, diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/html.bundle.debug.js index 8073accf4ea..0f9f300aca8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let y = x; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { handler, y, "TagVariableChange:y": handler || void 0 diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/html.bundle.js index cd12a4f3549..b21964bfabb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-id/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { let y = x; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: handler, g: y, h: handler || void 0 diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/html.bundle.debug.js index d5f7ff9175d..047968a43b3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let y = x; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { y, "TagVariableChange:y": _resume(function(newValue) { x = newValue + 1; diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/html.bundle.js index 2f5755e2534..e6c41a2354f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-controllable-static/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { let y = x; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: y, f: _resume(function(newValue) { x = newValue + 1; diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/html.bundle.debug.js index 34ef8b96fa3..a6991049918 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let b = a * 2; _html(`${_el_resume($scope0_id, "#button/0")}${_text_resume($scope0_id, "#text/1", a, _serialize_guard($scope0_reason, 0))} ${_text_resume($scope0_id, "#text/2", b, 2)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { b }, "__tests__/template.marko", 0, { b: "2:6" }); + _scope($scope0_id, { b }, "__tests__/template.marko", 0, { b: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/html.bundle.js index fa4d1873348..bf0d7dbd1d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-derived/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { let b = a * 2; _html(`${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", a, _serialize_guard($scope0_reason, 0))} ${_text_resume($scope0_id, "c", b, 2)}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { g: b }); + _scope($scope0_id, { g: b }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/html.bundle.debug.js index 2eb9e3af7a8..924aae58948 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let y = 0; _html(`${_text_resume($scope0_id, "#text/0", x)}${_text_resume($scope0_id, "#text/1", y)}`); _script($scope0_id, "__tests__/template.marko_0_x#2"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/html.bundle.js index 429c63b388c..5d42ec9c502 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-set-in-effect/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let x = 1; _html(`${_text_resume($scope0_id, "a", x)}${_text_resume($scope0_id, "b", 0)}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: x }); + _scope($scope0_id, { c: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/html.bundle.debug.js index a06a6472683..972946d11dd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const a = y + z; _html(`${_el_resume($scope0_id, "#button/0")}${_text_resume($scope0_id, "#text/2", y)} ${_text_resume($scope0_id, "#text/3", z, 2)} ${_text_resume($scope0_id, "#text/4", a, 2)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/html.bundle.js index 5532f510937..65862986d2b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag-with-intersection/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let x = 1; _html(`${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "c", 2)} ${_text_resume($scope0_id, "d", 3, 2)} ${_text_resume($scope0_id, "e", 5, 2)}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { f: x }); + _scope($scope0_id, { f: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/html.bundle.debug.js index 4b6ab16f355..d22b664b29b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let y = 1; _html(`${_el_resume($scope0_id, "#button/0")}${_text_resume($scope0_id, "#text/2", y)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, y, "TagVariableChange:y": false || void 0 diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/html.bundle.js index f04a1308cd7..406ae646c19 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-tag/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { let y = 1; _html(`${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "c", y)}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: x, e: y, f: void 0 diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/html.bundle.debug.js index 7beeacc1f0e..4c82852ba42 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let x = undefined; _html(`
    ${_text_resume($scope0_id, "#text/0", x)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/html.bundle.js index 4b7e410239e..3f8bbe8e4fa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-undefined-until-dom/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", void 0)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/html.bundle.debug.js index 13dde5e04c3..d4a40aaa2a1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#ul/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/html.bundle.js index 0bf526c43bd..4124d6b417c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/let-without-assignments/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/html.bundle.debug.js index 499bfaa34cb..1bbbd09eb2c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`
    x=${_text_resume($scope0_id, "#text/0", x)}, was=${_text_resume($scope0_id, "#text/1", prev, 2)}
    ${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_x#3"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/html.bundle.js index 6c328003661..d451fbee537 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-assignment/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { _html(`
    x=${_text_resume($scope0_id, "a", x)}, was=${_text_resume($scope0_id, "b", false, 2)}
    ${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: x }); + _scope($scope0_id, { d: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional-child-cleanup/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional-child-cleanup/__snapshots__/html.bundle.debug.js index 17a6f7a8df6..a5edfd80514 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional-child-cleanup/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional-child-cleanup/__snapshots__/html.bundle.debug.js @@ -17,11 +17,11 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); child_default({}); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:2"); return 0; } }, $scope0_id, "#text/1", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional-child-cleanup/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional-child-cleanup/__snapshots__/html.bundle.js index 5f2f701c01c..0d7124f95c2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional-child-cleanup/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional-child-cleanup/__snapshots__/html.bundle.js @@ -17,11 +17,11 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); child_default({}); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b", 1, 1, 1, 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: show }); + _scope($scope0_id, { c: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/html.bundle.debug.js index 192e5f355ee..8a9717a562c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/html.bundle.debug.js @@ -8,13 +8,13 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _script($scope1_id, "__tests__/template.marko_1_x#3"); - writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); return 0; } }, $scope0_id, "#text/0"); _html(`
    ${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { x, show }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/html.bundle.js index 2ee0ee9743a..451ae8056a9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-conditional/__snapshots__/html.bundle.js @@ -8,13 +8,13 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _script($scope1_id, "a0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "a"); _html(`
    ${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: x, e: show }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-return-init/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-return-init/__snapshots__/html.bundle.debug.js index 875aa40ddff..a057c1ad28d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-return-init/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-return-init/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`
    ${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_x#1"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-return-init/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-return-init/__snapshots__/html.bundle.js index deff6370589..89cebc5ce17 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-return-init/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-return-init/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { _html(`
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { b: x }); + _scope($scope0_id, { b: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/html.bundle.debug.js index 29a8084a15a..3dded33d282 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let x = 0; _html(`
    ${_text_resume($scope0_id, "#text/0", x)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/html.bundle.js index 83eb9d2619b..3bbdbb9540c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this-attrs/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", 0)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/html.bundle.debug.js index 875aa40ddff..a057c1ad28d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`
    ${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_x#1"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/html.bundle.js index deff6370589..89cebc5ce17 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag-this/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { _html(`
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { b: x }); + _scope($scope0_id, { b: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/html.bundle.debug.js index 875aa40ddff..a057c1ad28d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`
    ${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_x#1"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/html.bundle.js index deff6370589..89cebc5ce17 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/lifecycle-tag/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { _html(`
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { b: x }); + _scope($scope0_id, { b: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/html.bundle.debug.js index 3fa20a5b97d..9dd0e886073 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/html.bundle.debug.js @@ -5,9 +5,9 @@ var list_default = _template("__tests__/tags/list/index.marko", (input) => { _for_of(input.item, (item) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "#text/0", item.content, {}, 0, 0, $sg__input_item); - $si__input_item && writeScope($scope1_id, {}, "__tests__/tags/list/index.marko", "1:1"); + $si__input_item && _scope($scope1_id, {}, "__tests__/tags/list/index.marko", "1:1"); }, 0, $scope0_id, "#text/0", $sg__input_item, $sg__input_item, $sg__input_item); - $si__input_item && writeScope($scope0_id, {}, "__tests__/tags/list/index.marko", 0); + $si__input_item && _scope($scope0_id, {}, "__tests__/tags/list/index.marko", 0); }); // template.marko @@ -25,9 +25,9 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`
    ${_el_resume($scope1_id, "#div/0")}`); _script($scope1_id, "__tests__/template.marko_1_item#2"); - writeScope($scope1_id, { item }, "__tests__/template.marko", "3:5", { item: "2:7" }); + _scope($scope1_id, { item }, "__tests__/template.marko", "3:5", { item: "2:7" }); }, $scope0_id) }); }); list_default({ item: $item }); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/html.bundle.js index 30f53e8a7a9..8a9606a3453 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/local-closure-script/__snapshots__/html.bundle.js @@ -5,9 +5,9 @@ var list_default = _template("b", (input) => { _for_of(input.item, (item) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "a", item.content, {}, 0, 0, $sg__input_item); - $si__input_item && writeScope($scope1_id, {}); + $si__input_item && _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_item, $sg__input_item, $sg__input_item); - $si__input_item && writeScope($scope0_id, {}); + $si__input_item && _scope($scope0_id, {}); }); // template.marko @@ -25,9 +25,9 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`
    ${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { c: item }); + _scope($scope1_id, { c: item }); }, $scope0_id) }); }); list_default({ item: $item }); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/logical-assign-to-let/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/logical-assign-to-let/__snapshots__/html.bundle.debug.js index f999d31d971..e4f22315e84 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/logical-assign-to-let/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/logical-assign-to-let/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let x = value; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}
    value=${_text_resume($scope0_id, "#text/3", value, 2)} changes=${_text_resume($scope0_id, "#text/4", changes, 2)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { changes, value, x, diff --git a/packages/runtime-tags/src/__tests__/fixtures/logical-assign-to-let/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/logical-assign-to-let/__snapshots__/html.bundle.js index 30cbe68b024..054587e7757 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/logical-assign-to-let/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/logical-assign-to-let/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var template_default = _template("a", (input) => { let x = value; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}
    value=${_text_resume($scope0_id, "d", value, 2)} changes=${_text_resume($scope0_id, "e", changes, 2)}
    `); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { f: changes, g: value, i: x, diff --git a/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/html.bundle.debug.js index f3ca25de840..4e0234a5229 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(_text_resume($scope1_id, "#text/0", value, _serialize_guard($scope1_reason, 0))); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:1"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:1"); }, $scope0_id) }; const B = { content: _content("__tests__/template.marko_2*content", ({ value }) => { const $scope2_id = _scope_id(); @@ -14,13 +14,13 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(_serialize_guard($scope2_reason, 0)); const $childScope = _peek_scope_id(); A.content({ value: value.length }); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "4:1"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "4:1"); }, $scope0_id) }; let value = ""; _set_serialize_reason(1); const $childScope2 = _peek_scope_id(); B.content({ value }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope2) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope2) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/html.bundle.js index 722d00765bb..76c7edccd96 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/merged-define-tag-templates/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(_text_resume($scope1_id, "a", value, _serialize_guard($scope1_reason, 0))); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; const B = { content: _content("a1", ({ value }) => { const $scope2_id = _scope_id(); @@ -14,13 +14,13 @@ var template_default = _template("a", (input) => { _set_serialize_reason(_serialize_guard($scope2_reason, 0)); const $childScope = _peek_scope_id(); A.content({ value: value.length }); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, { a: _existing_scope($childScope) }); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, { a: _existing_scope($childScope) }); }, $scope0_id) }; let value = ""; _set_serialize_reason(1); const $childScope2 = _peek_scope_id(); B.content({ value }); _script($scope0_id, "a2"); - writeScope($scope0_id, { a: _existing_scope($childScope2) }); + _scope($scope0_id, { a: _existing_scope($childScope2) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/html.bundle.debug.js index ec53b2dfeeb..2fa4a23a3a5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let x = 1; _html(`
    ${_text_resume($scope0_id, "#text/0", x)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/html.bundle.js index 481b78c9714..a223ab38aad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/migrate-effect-tag/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", 1)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/migrate-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/migrate-input/__snapshots__/html.bundle.debug.js index 47e97e5fbca..6116f9a094d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/migrate-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/migrate-input/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.x, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/migrate-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/migrate-input/__snapshots__/html.bundle.js index 4452db0006e..bc97b689ea3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/migrate-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/migrate-input/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.x, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-children/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-children/__snapshots__/html.bundle.debug.js index 3929ae9ef02..2af46d88316 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-children/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-children/__snapshots__/html.bundle.debug.js @@ -7,9 +7,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(children, (child) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", child.text, $sg__input_children)); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "3:4"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "3:4"); }, function(c) { return c.id; }, $scope0_id, "#div/0", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-children/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-children/__snapshots__/html.bundle.js index dcfe36bda8b..0b7de27c6c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-children/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-children/__snapshots__/html.bundle.js @@ -7,9 +7,9 @@ var template_default = _template("a", (input) => { _for_of(children, (child) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", child.text, $sg__input_children)); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, function(c) { return c.id; }, $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-top-level/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-top-level/__snapshots__/html.bundle.debug.js index 66056a37883..40e8da98da1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-top-level/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-top-level/__snapshots__/html.bundle.debug.js @@ -5,9 +5,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", child.text, $sg__input_children)); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, function(c) { return c.id; }, $scope0_id, "#text/0", $sg__input_children, $sg__input_children, $sg__input_children, 0, 1); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-top-level/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-top-level/__snapshots__/html.bundle.js index 0badf9db6d6..c1f80a547ab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-top-level/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/move-and-clear-top-level/__snapshots__/html.bundle.js @@ -5,9 +5,9 @@ var template_default = _template("a", (input) => { _for_of(input.children, (child) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", child.text, $sg__input_children)); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, function(c) { return c.id; }, $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, 0, 1); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/html.bundle.debug.js index 68de606f71f..982e384aaf0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { "d e f": count % 2 })}>${_text_resume($scope0_id, "#text/1", count)}${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/html.bundle.js index b8670a44018..c8b44b8aa78 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multi-class-toggle/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { "d e f": count % 2 })}>${_text_resume($scope0_id, "b", count)}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/html.bundle.debug.js index 64b50611cbd..0deba12a31b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/valueChange2", $scope0_id); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, $valueChange }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/html.bundle.js index 418a67fea70..1fb29dc6e68 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multiple-binds/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: count, e: $valueChange }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/html.bundle.debug.js index a36812c7e51..70566c1d555 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var _2counters_default = _template("__tests__/tags/2counters.marko", (input) => let count2 = input.count2; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/tags/2counters.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_count1: _serialize_if($scope0_reason, 1) && input.count1, input_count1Change: _serialize_if($scope0_reason, 0) && input.count1Change, input_count2: _serialize_if($scope0_reason, 3) && input.count2, @@ -47,6 +47,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/count2Change", $scope0_id) }); _html(`
    ${_text_resume($scope0_id, "#text/1", count1)} ${_text_resume($scope0_id, "#text/2", count2, 2)}
    `); - writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/html.bundle.js index b21ded13a68..f982e8f0b3e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/multiple-bound-values/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var _2counters_default = _template("b", (input) => { let count2 = input.count2; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { g: _serialize_if($scope0_reason, 1) && input.count1, h: _serialize_if($scope0_reason, 0) && input.count1Change, j: _serialize_if($scope0_reason, 3) && input.count2, @@ -38,6 +38,6 @@ var template_default = _template("a", (input) => { }, "a1", $scope0_id) }); _html(`
    ${_text_resume($scope0_id, "b", count1)} ${_text_resume($scope0_id, "c", count2, 2)}
    `); - writeScope($scope0_id, { a: _existing_scope($childScope) }); + _scope($scope0_id, { a: _existing_scope($childScope) }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/my-for-to/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/my-for-to/__snapshots__/html.bundle.debug.js index cccbb52b050..2d9321fc903 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/my-for-to/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/my-for-to/__snapshots__/html.bundle.debug.js @@ -5,12 +5,12 @@ var my_for_default = _template("__tests__/tags/my-for.marko", (input) => { _for_to(input.to, 0, 1, (...args) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "#text/0", input.content, [...args], 0, 1, $sg__input_to__OR__input_content); - _serialize_if($scope0_reason, 0) && writeScope($scope1_id, { + _serialize_if($scope0_reason, 0) && _scope($scope1_id, { $params2: _serialize_if($scope0_reason, 2) && $params2, _: _scope_with_id($scope0_id) }, "__tests__/tags/my-for.marko", "1:2", { $params2: "1:6" }); }, 0, $scope0_id, "#text/0", $sg__input_to__OR__input_content, $sg__input_to, $sg__input_to); - _serialize_if($scope0_reason, 1) && writeScope($scope0_id, { input_content: input.content }, "__tests__/tags/my-for.marko", 0, { input_content: ["input.content"] }); + _serialize_if($scope0_reason, 1) && _scope($scope0_id, { input_content: input.content }, "__tests__/tags/my-for.marko", 0, { input_content: ["input.content"] }); }); // template.marko @@ -23,7 +23,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", i, _serialize_guard($scope1_reason, 0))); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/my-for-to/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/my-for-to/__snapshots__/html.bundle.js index d7135efbe24..d5b810ebaf6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/my-for-to/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/my-for-to/__snapshots__/html.bundle.js @@ -5,12 +5,12 @@ var my_for_default = _template("b", (input) => { _for_to(input.to, 0, 1, (...args) => { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "a", input.content, [...args], 0, 1, $sg__input_to__OR__input_content); - _serialize_if($scope0_reason, 0) && writeScope($scope1_id, { + _serialize_if($scope0_reason, 0) && _scope($scope1_id, { b: _serialize_if($scope0_reason, 2) && $params2, _: _scope_with_id($scope0_id) }); }, 0, $scope0_id, "a", $sg__input_to__OR__input_content, $sg__input_to, $sg__input_to); - _serialize_if($scope0_reason, 1) && writeScope($scope0_id, { e: input.content }); + _serialize_if($scope0_reason, 1) && _scope($scope0_id, { e: input.content }); }); // template.marko @@ -22,7 +22,7 @@ var template_default = _template("a", (input) => { const $scope1_reason = _scope_reason(); const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", i, _serialize_guard($scope1_reason, 0))); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, _scope_id()) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/html.bundle.debug.js index 12f07db506a..4f0e235c2d0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/html.bundle.debug.js @@ -22,13 +22,13 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _html(_html_resume($scope1_id, "#text/0", input.value, $sg__input_value)); - _subscribe($si__input_value && $input_value__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "12:3")); + _subscribe($si__input_value && $input_value__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "12:3")); _resume_branch($scope1_id); }, $scope0_id)); _html(`${_el_resume($scope0_id, "#button/6")}${_el_resume($scope0_id, "#button/7")}${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0_Parent#11_Child#12"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_value: input.value, Parent, Child, diff --git a/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/html.bundle.js index f47ea95067a..926594123b0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/namespaced-tags/__snapshots__/html.bundle.js @@ -22,13 +22,13 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _scope_reason(); _html(_html_resume($scope1_id, "a", input.value, $sg__input_value)); - _subscribe($si__input_value && $input_value__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($si__input_value && $input_value__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id)); _html(`${_el_resume($scope0_id, "g")}${_el_resume($scope0_id, "h")}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a3"); _script($scope0_id, "a4"); - writeScope($scope0_id, { + _scope($scope0_id, { k: input.value, l: Parent, m: Child, diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-alias/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-alias/__snapshots__/html.bundle.debug.js index 3e63569b191..bebe9527984 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-alias/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-alias/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}
    ${_text_resume($scope0_id, "#text/2", n)}
    ${_text_resume($scope0_id, "#text/3", log)}
    `); _script($scope0_id, "__tests__/template.marko_0_state_tag#6_n#5"); _script($scope0_id, "__tests__/template.marko_0_state_n#5_state_tag#6"); - writeScope($scope0_id, { + _scope($scope0_id, { state_n: state.n, state_tag: state.tag, log diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-alias/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-alias/__snapshots__/html.bundle.js index 7921377d55a..0950cdb8e2e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-alias/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-alias/__snapshots__/html.bundle.js @@ -11,7 +11,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}
    ${_text_resume($scope0_id, "c", n)}
    ${_text_resume($scope0_id, "d", log)}
    `); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { f: state.n, g: state.tag, h: log diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-closure/__snapshots__/html.bundle.debug.js index 6a6115c56e3..826e301c6f8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-closure/__snapshots__/html.bundle.debug.js @@ -12,14 +12,14 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { i, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2", { i: "4:6" }); }); _html(`${_el_resume($scope0_id, "#button/1")}
    ${_text_resume($scope0_id, "#text/2", total)}
    ${_text_resume($scope0_id, "#text/3", seen)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { total, seen }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-closure/__snapshots__/html.bundle.js index ab9a704973f..63aa06e4250 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-closure/__snapshots__/html.bundle.js @@ -12,14 +12,14 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { d: i, _: _scope_with_id($scope0_id) }); }); _html(`${_el_resume($scope0_id, "b")}
    ${_text_resume($scope0_id, "c", total)}
    ${_text_resume($scope0_id, "d", seen)}
    `); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: total, f: seen }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic-spread/__snapshots__/html.bundle.debug.js index 3f780431895..83ed0ebee46 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic-spread/__snapshots__/html.bundle.debug.js @@ -12,7 +12,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/onClick", $scope0_id) }, { class: 1 }, "#button/3", $scope0_id, "button")}>b${_el_resume($scope0_id, "#button/3")}
    ${_text_resume($scope0_id, "#text/4", enabled)}:${_text_resume($scope0_id, "#text/5", count, 2)}
    ${_text_resume($scope0_id, "#text/6", log)}
    `); _script($scope0_id, "__tests__/template.marko_0_enabled#7"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { enabled, count, log diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic-spread/__snapshots__/html.bundle.js index 4ab68ac84c8..d3bc21d43ff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic-spread/__snapshots__/html.bundle.js @@ -12,7 +12,7 @@ var template_default = _template("a", (input) => { }, "a1", $scope0_id) }, { class: 1 }, "d", $scope0_id, "button")}>b${_el_resume($scope0_id, "d")}
    ${_text_resume($scope0_id, "e", enabled)}:${_text_resume($scope0_id, "f", count, 2)}
    ${_text_resume($scope0_id, "g", log)}
    `); _script($scope0_id, "a2"); _script($scope0_id, "a3"); - writeScope($scope0_id, { + _scope($scope0_id, { h: enabled, i: count, j: log diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic/__snapshots__/html.bundle.debug.js index e35f7cd6a20..3976aaaa9b3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#button/2")}
    ${_text_resume($scope0_id, "#text/3", enabled)}:${_text_resume($scope0_id, "#text/4", other, 2)}
    ${_text_resume($scope0_id, "#text/5", log)}
    `); _script($scope0_id, "__tests__/template.marko_0_enabled#6"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { enabled, other, log diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic/__snapshots__/html.bundle.js index 02e90889ac2..6d06212140a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}
    ${_text_resume($scope0_id, "d", enabled)}:${_text_resume($scope0_id, "e", other, 2)}
    ${_text_resume($scope0_id, "f", log)}
    `); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { g: enabled, h: other, i: log diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-iife/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-iife/__snapshots__/html.bundle.debug.js index 3070fdf920b..a2f1d26aa4f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-iife/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-iife/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}
    ${_text_resume($scope0_id, "#text/2", n)}
    ${_text_resume($scope0_id, "#text/3", log)}
    `); _script($scope0_id, "__tests__/template.marko_0_n#4_log#5"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, log }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-iife/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-iife/__snapshots__/html.bundle.js index 1f3b86eea5e..bdd30ee7ecc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-iife/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-iife/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}
    ${_text_resume($scope0_id, "c", n)}
    ${_text_resume($scope0_id, "d", log)}
    `); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: n, f: log }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-only/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-only/__snapshots__/html.bundle.debug.js index f4e2102e1dd..87e9b68bab5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-only/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-only/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let log = ""; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}
    ${_text_resume($scope0_id, "#text/2", log)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, log }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-only/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-only/__snapshots__/html.bundle.js index f31761cf8df..752ec5471c9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-only/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-only/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { let log = ""; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}
    ${_text_resume($scope0_id, "c", log)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: count, e: log }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-param/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-param/__snapshots__/html.bundle.debug.js index 37f7f273774..2e5c04e9108 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-param/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-param/__snapshots__/html.bundle.debug.js @@ -7,12 +7,12 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { label, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2", { label: "3:6" }); }); _html(`
    ${_text_resume($scope0_id, "#text/1", log)}
    `); - writeScope($scope0_id, { log }, "__tests__/template.marko", 0, { log: "2:6" }); + _scope($scope0_id, { log }, "__tests__/template.marko", 0, { log: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-param/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-param/__snapshots__/html.bundle.js index d7c3326c9a4..d94bedaa7c4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-param/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-param/__snapshots__/html.bundle.js @@ -7,12 +7,12 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { + _scope($scope1_id, { c: label, _: _scope_with_id($scope0_id) }); }); _html(`
    ${_text_resume($scope0_id, "b", log)}
    `); - writeScope($scope0_id, { c: log }); + _scope($scope0_id, { c: log }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-spread/__snapshots__/html.bundle.debug.js index 187f81b479e..e3ffd9f4cfd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-spread/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { log = `${log}[${count}]`; }, "__tests__/template.marko_0/onClick", $scope0_id) }, { class: 1 }, "#button/1", $scope0_id, "button")}>act${_el_resume($scope0_id, "#button/1")}
    ${_text_resume($scope0_id, "#text/2", log)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, log }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-spread/__snapshots__/html.bundle.js index 6c605816a43..95f533ff555 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-spread/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { log = `${log}[${count}]`; }, "a0", $scope0_id) }, { class: 1 }, "b", $scope0_id, "button")}>act${_el_resume($scope0_id, "b")}
    ${_text_resume($scope0_id, "c", log)}
    `); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: count, e: log }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read/__snapshots__/html.bundle.debug.js index ddfc9f9075e..527a917814f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let log = ""; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/1")}
    ${_text_resume($scope0_id, "#text/2", message)}
    ${_text_resume($scope0_id, "#text/3", log)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { message, log }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read/__snapshots__/html.bundle.js index f33cc953349..adea95ada03 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { let log = ""; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}
    ${_text_resume($scope0_id, "c", message)}
    ${_text_resume($scope0_id, "d", log)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: message, f: log }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-content-attr-with-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-content-attr-with-body/__snapshots__/html.bundle.debug.js index d0870f6ea07..a082d534112 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-content-attr-with-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-content-attr-with-body/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let message = "hi"; _html(`${_el_resume($scope0_id, "#button/0")}
    static body
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { message }, "__tests__/template.marko", 0, { message: "1:6" }); + _scope($scope0_id, { message }, "__tests__/template.marko", 0, { message: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-content-attr-with-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-content-attr-with-body/__snapshots__/html.bundle.js index 159010e30c9..33693f5ea60 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-content-attr-with-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-content-attr-with-body/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let message = "hi"; _html(`${_el_resume($scope0_id, "a")}
    static body
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { b: message }); + _scope($scope0_id, { b: message }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-duplicate-attrs/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-duplicate-attrs/__snapshots__/html.bundle.debug.js index c7c931a0af5..2083efa87b6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-duplicate-attrs/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-duplicate-attrs/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#button/0")}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-duplicate-attrs/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-duplicate-attrs/__snapshots__/html.bundle.js index 68f73ccdac2..3715adaf2e8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-duplicate-attrs/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-duplicate-attrs/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/html.bundle.debug.js index 61b765ad011..41d0309184d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/html.bundle.debug.js @@ -12,9 +12,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _attrs_content(item, "#div/0", $scope2_id, "div"); _html(`${_el_resume($scope2_id, "#div/0")}`); _script($scope2_id, "__tests__/template.marko_2_item#2"); - writeScope($scope2_id, {}, "__tests__/template.marko", "4:4", { "EventAttributes:#div/0": ["...item", "5:13"] }); + _scope($scope2_id, {}, "__tests__/template.marko", "4:4", { "EventAttributes:#div/0": ["...item", "5:13"] }); }, 0, $scope1_id, "#text/0", $sg__input_item, $sg__input_item, $sg__input_item, 0, 1); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "3:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "3:2"); }, $scope0_id) }; _set_serialize_reason(1); let $item; @@ -23,14 +23,14 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "#text/0", i)); - writeScope($scope3_id, {}, "__tests__/template.marko", "11:6"); + _scope($scope3_id, {}, "__tests__/template.marko", "11:6"); }, $scope0_id) }); }); const $childScope = _peek_scope_id(); Child.content({ item: $item }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { size, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { size: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/html.bundle.js index 7e4471b28c7..99d72c9d618 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-local-closures/__snapshots__/html.bundle.js @@ -12,9 +12,9 @@ var template_default = _template("a", (input) => { _attrs_content(item, "a", $scope2_id, "div"); _html(`${_el_resume($scope2_id, "a")}`); _script($scope2_id, "a0"); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); }, 0, $scope1_id, "a", $sg__input_item, $sg__input_item, $sg__input_item, 0, 1); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; _set_serialize_reason(1); let $item; @@ -23,14 +23,14 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "a", i)); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }, $scope0_id) }); }); const $childScope = _peek_scope_id(); Child.content({ item: $item }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a3"); - writeScope($scope0_id, { + _scope($scope0_id, { c: size, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/html.bundle.debug.js index c0e2d4a7576..c05e5f9a9ed 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`Initial${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/html.bundle.js index dd1a38f82c5..23349e021d5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-and-update/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { _el($scope0_id, "a0"); _html(`Initial${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/html.bundle.debug.js index b905b1b2bcf..51c0d707ecf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { if (true) { const $scope1_id = _scope_id(); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2"); } - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/html.bundle.js index a09d556d671..0b519bdd26d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-downstream-effect/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _script($scope1_id, "a0"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); } - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/html.bundle.debug.js index d476eb10615..aa3b0da0e23 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var hello_setter_default = _template("__tests__/tags/hello-setter.marko", (input const $scope0_id = _scope_id(); const { el } = input; _script($scope0_id, "__tests__/tags/hello-setter.marko_0_el#2"); - writeScope($scope0_id, { el }, "__tests__/tags/hello-setter.marko", 0, { el: "1:10" }); + _scope($scope0_id, { el }, "__tests__/tags/hello-setter.marko", 0, { el: "1:10" }); }); // template.marko @@ -14,5 +14,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const el = _el($scope0_id, "__tests__/template.marko_0_#div#0"); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); hello_setter_default({ el }); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/html.bundle.js index fd39505c4b0..5ed6d3c98e9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect-child/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var hello_setter_default = _template("b", (input) => { const $scope0_id = _scope_id(); const { el } = input; _script($scope0_id, "b0"); - writeScope($scope0_id, { c: el }); + _scope($scope0_id, { c: el }); }); // template.marko @@ -14,5 +14,5 @@ var template_default = _template("a", (input) => { const el = _el($scope0_id, "a0"); _html(`
    ${_el_resume($scope0_id, "a")}`); hello_setter_default({ el }); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/html.bundle.debug.js index 3906d13bbe1..5efe35cf6af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/html.bundle.js index 85edb689d1d..35f062cb263 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-effect/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-throws-in-render/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-throws-in-render/__snapshots__/html.bundle.debug.js index e721f8ec0d2..0d3c27d4785 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-throws-in-render/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-ref-throws-in-render/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}
    ${_escape((($el) => $el())(_el_read_error))}
    `); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag-also-custom/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag-also-custom/__snapshots__/html.bundle.debug.js index a71dbec1256..2d8acbc0268 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag-also-custom/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag-also-custom/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var echo_default = _template("__tests__/tags/echo.marko", (input) => { _html("
    "); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/echo.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/echo.marko", 0); }); // tags/my-box.marko @@ -19,7 +19,7 @@ var my_box_default = _template("__tests__/tags/my-box.marko", (input) => { const $childScope = _peek_scope_id(); echo_default(input.head); _script($scope0_id, "__tests__/tags/my-box.marko_0_input_head#4"); - writeScope($scope0_id, { + _scope($scope0_id, { input_head: input.head, "#childScope/1": _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }, "__tests__/tags/my-box.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag-also-custom/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag-also-custom/__snapshots__/html.bundle.js index ccd89f279f2..775fddf3f82 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag-also-custom/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag-also-custom/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var echo_default = _template("b", (input) => { _html("
    "); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/my-box.marko @@ -19,7 +19,7 @@ var my_box_default = _template("c", (input) => { const $childScope = _peek_scope_id(); echo_default(input.head); _script($scope0_id, "c0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: input.head, b: _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag/__snapshots__/html.bundle.debug.js index 8714476d19e..07c7eef5643 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var my_box_default = _template("__tests__/tags/my-box.marko", (input) => { _html(`${_el_resume($scope0_id, "#footer/1")}`); _script($scope0_id, "__tests__/tags/my-box.marko_0_input_foot#5"); _script($scope0_id, "__tests__/tags/my-box.marko_0_input_head#4"); - writeScope($scope0_id, {}, "__tests__/tags/my-box.marko", 0, { + _scope($scope0_id, {}, "__tests__/tags/my-box.marko", 0, { "EventAttributes:#section/0": ["...input.head", "1:13"], "EventAttributes:#footer/1": ["...input.foot", "2:12"] }); @@ -28,7 +28,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 0; _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { n }, "__tests__/template.marko", "2:4", { n: "3:10" }); + _scope($scope1_id, { n }, "__tests__/template.marko", "2:4", { n: "3:10" }); _resume_branch($scope1_id); }, $scope0_id) }), diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag/__snapshots__/html.bundle.js index 50eefee7f39..914f3b4979c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var my_box_default = _template("b", (input) => { _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "b0"); _script($scope0_id, "b1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -24,7 +24,7 @@ var template_default = _template("a", (input) => { let n = 0; _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { c: n }); + _scope($scope1_id, { c: n }); _resume_branch($scope1_id); }, _scope_id()) }), diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-also-custom/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-also-custom/__snapshots__/html.bundle.debug.js index d7bd4efd762..5f94b10649d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-also-custom/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-also-custom/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var echo_default = _template("__tests__/tags/echo.marko", (input) => { _html("
    "); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/echo.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/echo.marko", 0); }); // tags/my-box.marko @@ -19,7 +19,7 @@ var my_box_default = _template("__tests__/tags/my-box.marko", (input) => { const $childScope = _peek_scope_id(); echo_default(input); _script($scope0_id, "__tests__/tags/my-box.marko_0_input#3"); - writeScope($scope0_id, { + _scope($scope0_id, { input, "#childScope/1": _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }, "__tests__/tags/my-box.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-also-custom/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-also-custom/__snapshots__/html.bundle.js index b615d647dd6..c1d1915b2e2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-also-custom/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-also-custom/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var echo_default = _template("b", (input) => { _html("
    "); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/my-box.marko @@ -19,7 +19,7 @@ var my_box_default = _template("c", (input) => { const $childScope = _peek_scope_id(); echo_default(input); _script($scope0_id, "c0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: input, b: _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-handler-read/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-handler-read/__snapshots__/html.bundle.debug.js index 82573d1687d..f38bdf4d8c2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-handler-read/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-handler-read/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var my_box_default = _template("__tests__/tags/my-box.marko", (input) => { _html(`${_el_resume($scope0_id, "#div/0")}${_el_resume($scope0_id, "#button/1")}
    ${_text_resume($scope0_id, "#text/2", captured)}
    `); _script($scope0_id, "__tests__/tags/my-box.marko_0"); _script($scope0_id, "__tests__/tags/my-box.marko_0_input#4"); - writeScope($scope0_id, { + _scope($scope0_id, { input, input_content: input.content }, "__tests__/tags/my-box.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-handler-read/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-handler-read/__snapshots__/html.bundle.js index 0a2faa5f563..833607736b1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-handler-read/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-handler-read/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var my_box_default = _template("b", (input) => { _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}
    ${_text_resume($scope0_id, "c", captured)}
    `); _script($scope0_id, "b0"); _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: input, f: input.content }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-multi/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-multi/__snapshots__/html.bundle.debug.js index 46ee4e3a76a..3a950754ecd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-multi/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-multi/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var my_box_default = _template("__tests__/tags/my-box.marko", (input) => { }, "#div/0", $scope0_id, "div"); _html(`${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/tags/my-box.marko_0_input#2_extra#3"); - writeScope($scope0_id, {}, "__tests__/tags/my-box.marko", 0); + _scope($scope0_id, {}, "__tests__/tags/my-box.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-multi/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-multi/__snapshots__/html.bundle.js index 970788d2298..1972c91c868 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-multi/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-multi/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var my_box_default = _template("b", (input) => { }, "a", $scope0_id, "div"); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-opaque/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-opaque/__snapshots__/html.bundle.debug.js index 141df5ef3e1..019c1786415 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-opaque/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-opaque/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var render_input_default = _template("__tests__/tags/render-input.marko", (input const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.data.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/render-input.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/render-input.marko", 0); }); // tags/my-box.marko @@ -20,13 +20,13 @@ var my_box_default = _template("__tests__/tags/my-box.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); render_input_default({ data: input }); - writeScope($scope1_id, { "#childScope/0": _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }, "__tests__/tags/my-box.marko", "8:4"); + _scope($scope1_id, { "#childScope/0": _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }, "__tests__/tags/my-box.marko", "8:4"); return 0; } }, $scope0_id, "#div/2", 1, 1, 1, ""); _script($scope0_id, "__tests__/tags/my-box.marko_0"); _script($scope0_id, "__tests__/tags/my-box.marko_0_input#4"); - writeScope($scope0_id, { + _scope($scope0_id, { input, show }, "__tests__/tags/my-box.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-opaque/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-opaque/__snapshots__/html.bundle.js index 7706dba325f..13194215d7e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-opaque/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-opaque/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var render_input_default = _template("c", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.data.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/my-box.marko @@ -17,7 +17,7 @@ var my_box_default = _template("b", (input) => { _if(() => {}, $scope0_id, "c", 1, 1, 1, ""); _script($scope0_id, "b0"); _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: input, f: show }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-stateful/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-stateful/__snapshots__/html.bundle.debug.js index 90935e2dfdd..3516b6faed1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-stateful/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-stateful/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var my_box_default = _template("__tests__/tags/my-box.marko", (input) => { _attrs_content(input, "#div/0", $scope0_id, "div"); _html(`${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/tags/my-box.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/my-box.marko", 0, { "EventAttributes:#div/0": ["...input", "1:9"] }); + _scope($scope0_id, {}, "__tests__/tags/my-box.marko", 0, { "EventAttributes:#div/0": ["...input", "1:9"] }); }); // template.marko @@ -21,7 +21,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`${_el_resume($scope1_id, "#button/0")}${_text_resume($scope1_id, "#text/1", count)}`); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { count }, "__tests__/template.marko", "1:1", { count: "2:8" }); + _scope($scope1_id, { count }, "__tests__/template.marko", "1:1", { count: "2:8" }); _resume_branch($scope1_id); }, $scope0_id) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-stateful/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-stateful/__snapshots__/html.bundle.js index 67f392d7091..f675445b4a3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-stateful/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content-stateful/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var my_box_default = _template("b", (input) => { _attrs_content(input, "a", $scope0_id, "div"); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope1_id, "a")}${_text_resume($scope1_id, "b", count)}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { c: count }); + _scope($scope1_id, { c: count }); _resume_branch($scope1_id); }, _scope_id()) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/html.bundle.debug.js index 8ac65e52862..a66e769b502 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/html.bundle.debug.js @@ -29,7 +29,7 @@ var my_div_default = _template("__tests__/tags/my-div.marko", (input) => { _html(""); _script($scope0_id, "__tests__/tags/my-div.marko_0_input#8_CustomContent_content#10"); _script($scope0_id, "__tests__/tags/my-div.marko_0_input#8"); - writeScope($scope0_id, { CustomContent_content: CustomContent?.content }, "__tests__/tags/my-div.marko", 0, { + _scope($scope0_id, { CustomContent_content: CustomContent?.content }, "__tests__/tags/my-div.marko", 0, { CustomContent_content: ["CustomContent.content", "10:8"], "EventAttributes:#div/0": ["...input", "1:8"], "EventAttributes:#button/1": ["...input", "3:17"], diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/html.bundle.js index 9a84613852b..a03df5db7cc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-content/__snapshots__/html.bundle.js @@ -29,7 +29,7 @@ var my_div_default = _template("b", (input) => { _html(""); _script($scope0_id, "b1"); _script($scope0_id, "b2"); - writeScope($scope0_id, { k: CustomContent?.content }); + _scope($scope0_id, { k: CustomContent?.content }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-void/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-void/__snapshots__/html.bundle.debug.js index 738e2781a56..971120cd6e6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-void/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-void/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var my_img_default = _template("__tests__/tags/my-img.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#img/0")}`); _script($scope0_id, "__tests__/tags/my-img.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/my-img.marko", 0, { "EventAttributes:#img/0": ["...input", "1:9"] }); + _scope($scope0_id, {}, "__tests__/tags/my-img.marko", 0, { "EventAttributes:#img/0": ["...input", "1:9"] }); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("__tests__/template.marko", (input) => { alt: "pic" }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { cls, "#childScope/1": _existing_scope($childScope) }, "__tests__/template.marko", 0, { cls: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-void/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-void/__snapshots__/html.bundle.js index 6a26688ac00..b9b0a2835ed 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-void/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-void/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var my_img_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -20,7 +20,7 @@ var template_default = _template("a", (input) => { alt: "pic" }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: cls, b: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/html.bundle.debug.js index 3906d13bbe1..5efe35cf6af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/html.bundle.js index 85edb689d1d..35f062cb263 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/native-tag-var-in-body/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/html.bundle.debug.js index 038174357bc..f3ce76c38ea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let lastCount2 = 0; _html(`${_el_resume($scope0_id, "#button/0")}used to be ${_text_resume($scope0_id, "#text/2", lastCount)} which should be the same as ${_text_resume($scope0_id, "#text/3", lastCount2)}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "1:6" }); + _scope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/html.bundle.js index b353cbdaf6d..f33f4299c35 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/nested-assignment-expression/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let clickCount = 0; _html(`${_el_resume($scope0_id, "a")}used to be ${_text_resume($scope0_id, "c", 0)} which should be the same as ${_text_resume($scope0_id, "d", 0)}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: clickCount }); + _scope($scope0_id, { e: clickCount }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/html.bundle.debug.js index e71e9d68fd8..7f6f5c02117 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/html.bundle.debug.js @@ -15,17 +15,17 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); _html(`${_el_resume($scope2_id, "#button/0")}`); _script($scope2_id, "__tests__/template.marko_2"); - writeScope($scope2_id, {}, "__tests__/template.marko", "4:4"); + _scope($scope2_id, {}, "__tests__/template.marko", "4:4"); return 0; } else { const $scope3_id = _scope_id(); _html(`${_el_resume($scope3_id, "#button/0")}`); _script($scope3_id, "__tests__/template.marko_3"); - writeScope($scope3_id, {}, "__tests__/template.marko", "12:4"); + _scope($scope3_id, {}, "__tests__/template.marko", "12:4"); return 1; } }, $scope1_id, "#text/0", 1, 1, 1, 0, 1); - writeScope($scope1_id, { + _scope($scope1_id, { count, "#LoopKey": i }, "__tests__/template.marko", "2:2", { @@ -33,6 +33,6 @@ var template_default = _template("__tests__/template.marko", (input) => { "#LoopKey": "2:13" }); }, 0, $scope0_id, "#text/0"); - writeScope($scope0_id, { counts }, "__tests__/template.marko", 0, { counts: "1:6" }); + _scope($scope0_id, { counts }, "__tests__/template.marko", 0, { counts: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/html.bundle.js index 85ee484d6a6..b5ca2f9f4bc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/html.bundle.js @@ -14,15 +14,15 @@ var template_default = _template("a", (input) => { const $scope3_id = _scope_id(); _html(`${_el_resume($scope3_id, "a")}`); _script($scope3_id, "a1"); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); return 1; } }, $scope1_id, "a", 1, 1, 1, 0, 1); - writeScope($scope1_id, { + _scope($scope1_id, { c: count, M: i }); }, 0, $scope0_id, "a"); - writeScope($scope0_id, { b: counts }); + _scope($scope0_id, { b: counts }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/html.bundle.debug.js index 16384dacdca..df4cca4f297 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/html.bundle.debug.js @@ -14,7 +14,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { let x = my_const_default({ value: input.foo }); _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/tags/child.marko_0_x#5/var"); _script($scope0_id, "__tests__/tags/child.marko_0_input#3_x#5"); - writeScope($scope0_id, { + _scope($scope0_id, { input, x, "#childScope/0": _serialize_if($scope0_reason, 0) && _existing_scope($childScope) @@ -36,5 +36,5 @@ var template_default = _template("__tests__/template.marko", (input) => { foo: input.foo, output }); - writeScope($scope0_id, { "#childScope/1": _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }, "__tests__/template.marko", 0); + _scope($scope0_id, { "#childScope/1": _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/html.bundle.js index f6dcdd194a2..e8e81c1d220 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-conditional/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var child_default = _template("b", (input) => { let x = my_const_default({ value: input.foo }); _var($scope0_id, "b", $childScope, "b0"); _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: input, f: x, a: _serialize_if($scope0_reason, 0) && _existing_scope($childScope) @@ -32,5 +32,5 @@ var template_default = _template("a", (input) => { foo: input.foo, output }); - writeScope($scope0_id, { b: _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }); + _scope($scope0_id, { b: _serialize_if($scope0_reason, 0) && _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/html.bundle.debug.js index d66b8a42b9e..8cffba1b037 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/html.bundle.debug.js @@ -14,7 +14,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { let x = my_const_default({ value: input.foo }); _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/tags/child.marko_0_x#5/var"); _script($scope0_id, "__tests__/tags/child.marko_0_input#3_x#5"); - writeScope($scope0_id, { + _scope($scope0_id, { input, x, "#childScope/0": _serialize_if($scope0_reason, 0) && _existing_scope($childScope) @@ -37,9 +37,9 @@ var template_default = _template("__tests__/template.marko", (input) => { foo: "bar", output }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:1"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:1"); return 0; } }, $scope0_id, "#text/1", $sg__input_show, $sg__input_show, $sg__input_show); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/html.bundle.js index 4bba6d9cb9f..b03e67e1771 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/no-render-content-subtree/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var child_default = _template("b", (input) => { let x = my_const_default({ value: input.foo }); _var($scope0_id, "b", $childScope, "b0"); _script($scope0_id, "b1"); - writeScope($scope0_id, { + _scope($scope0_id, { d: input, f: x, a: _serialize_if($scope0_reason, 0) && _existing_scope($childScope) @@ -33,9 +33,9 @@ var template_default = _template("a", (input) => { foo: "bar", output }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "b", $sg__input_show, $sg__input_show, $sg__input_show); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/page-doctype/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/page-doctype/__snapshots__/html.bundle.debug.js index 701ebdc0313..9d133402ffe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/page-doctype/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/page-doctype/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 0; _html(`${_flush_head()}${_el_resume($scope0_id, "#button/0")}`), _trailers(""); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "4:10" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "4:10" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/page-doctype/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/page-doctype/__snapshots__/html.bundle.js index d0d46ca5f65..29c583e92eb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/page-doctype/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/page-doctype/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 0; _html(`${_flush_head()}${_el_resume($scope0_id, "a")}`), _trailers(""); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-default/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-default/__snapshots__/html.bundle.debug.js index 6ebea4eed74..9e41b27ae97 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-default/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-default/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const { bar: $bar } = void 0 !== $foo ? $foo : { bar: 2 }; const bar = void 0 !== $bar ? $bar : 1; _html(`
    ${_text_resume($scope1_id, "#text/0", bar, $sg__foo)} ${_text_resume($scope1_id, "#text/1", typeof foo, $sg__foo * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:1"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:1"); }, $scope0_id) }; ChildA.content({ foo: { bar: 0 } }); ChildA.content({ foo: {} }); @@ -20,7 +20,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const { bar: $bar2 } = void 0 !== $foo2 ? $foo2 : { bar: 2 }; const bar = void 0 !== $bar2 ? $bar2 : 1; _html(`
    ${_text_resume($scope2_id, "#text/0", bar, $sg__foo2)} ${_text_resume($scope2_id, "#text/1", typeof foo, $sg__foo2 * 2)}
    `); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "8:1"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}, "__tests__/template.marko", "8:1"); }, $scope0_id) }; ChildB.content({ foo: { bar: 0 } }); ChildB.content({ foo: {} }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-default/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-default/__snapshots__/html.bundle.js index a38ecc2c10a..c6a18f3daf4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-default/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-default/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var template_default = _template("a", (input) => { const $scope1_reason = _scope_reason(), $sg__foo = _serialize_guard($scope1_reason, 0); const { bar: $bar } = void 0 !== $foo ? $foo : { bar: 2 }; _html(`
    ${_text_resume($scope1_id, "a", void 0 !== $bar ? $bar : 1, $sg__foo)} ${_text_resume($scope1_id, "b", typeof foo, $sg__foo * 2)}
    `); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; ChildA.content({ foo: { bar: 0 } }); ChildA.content({ foo: {} }); @@ -18,7 +18,7 @@ var template_default = _template("a", (input) => { const { foo, foo: $foo2 } = input; const { bar: $bar2 } = void 0 !== $foo2 ? $foo2 : { bar: 2 }; _html(`
    ${_text_resume($scope2_id, "a", void 0 !== $bar2 ? $bar2 : 1, $sg__foo2)} ${_text_resume($scope2_id, "b", typeof foo, $sg__foo2 * 2)}
    `); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}); }, $scope0_id) }; ChildB.content({ foo: { bar: 0 } }); ChildB.content({ foo: {} }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/html.bundle.debug.js index eb48d3ab605..0408c3cc0cd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const { bar: $bar } = void 0 !== $foo ? $foo : { bar: count + 2 }; const bar = void 0 !== $bar ? $bar : count + 1; _html(`${_text_resume($scope1_id, "#text/1", bar)} ${_text_resume($scope1_id, "#text/2", typeof foo, _serialize_guard($scope1_reason, 1) * 2)}${_el_resume($scope1_id, "#div/0", _serialize_guard($scope1_reason, 0))}`); - _subscribe($count__closures, writeScope($scope1_id, { + _subscribe($count__closures, _scope($scope1_id, { foo, _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:1", { foo: "2:21" })); @@ -32,7 +32,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const { bar: $bar2 } = void 0 !== $foo2 ? $foo2 : { bar: count + 2 }; const bar = void 0 !== $bar2 ? $bar2 : count + 1; _html(`${_text_resume($scope2_id, "#text/1", bar)} ${_text_resume($scope2_id, "#text/2", typeof foo, _serialize_guard($scope2_reason, 1) * 2)}${_el_resume($scope2_id, "#div/0", _serialize_guard($scope2_reason, 0))}`); - _subscribe($count__closures, writeScope($scope2_id, { + _subscribe($count__closures, _scope($scope2_id, { foo, _: _scope_with_id($scope0_id), "ClosureSignalIndex:count": 1 @@ -50,7 +50,7 @@ var template_default = _template("__tests__/template.marko", (input) => { ChildB.content({ id: "f" }); _html(`${_el_resume($scope0_id, "#button/6")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "ClosureScopes:count": $count__closures }, "__tests__/template.marko", 0, { count: "1:5" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/html.bundle.js index 6f7fb06cd32..85af60587dd 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/param-destructure-dynamic-default/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var template_default = _template("a", (input) => { const { bar: $bar } = void 0 !== $foo ? $foo : { bar: 2 }; const bar = void 0 !== $bar ? $bar : 1; _html(`${_text_resume($scope1_id, "b", bar)} ${_text_resume($scope1_id, "c", typeof foo, _serialize_guard($scope1_reason, 1) * 2)}${_el_resume($scope1_id, "a", _serialize_guard($scope1_reason, 0))}`); - _subscribe($count__closures, writeScope($scope1_id, { + _subscribe($count__closures, _scope($scope1_id, { g: foo, _: _scope_with_id($scope0_id) })); @@ -32,7 +32,7 @@ var template_default = _template("a", (input) => { const { bar: $bar2 } = void 0 !== $foo2 ? $foo2 : { bar: 2 }; const bar = void 0 !== $bar2 ? $bar2 : 1; _html(`${_text_resume($scope2_id, "b", bar)} ${_text_resume($scope2_id, "c", typeof foo, _serialize_guard($scope2_reason, 1) * 2)}${_el_resume($scope2_id, "a", _serialize_guard($scope2_reason, 0))}`); - _subscribe($count__closures, writeScope($scope2_id, { + _subscribe($count__closures, _scope($scope2_id, { g: foo, _: _scope_with_id($scope0_id), Ci: 1 @@ -50,7 +50,7 @@ var template_default = _template("a", (input) => { ChildB.content({ id: "f" }); _html(`${_el_resume($scope0_id, "g")}`); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { h: count, i: $count__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/param-rest-reads/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/param-rest-reads/__snapshots__/html.bundle.debug.js index 0d8bd0748e1..3a7bdc31079 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/param-rest-reads/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/param-rest-reads/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { 2, 3 ], 0, 1, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // template.marko @@ -27,12 +27,12 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope3_reason = _scope_reason(); const $scope3_id = _scope_id(); _html(`
    ${_text_resume($scope3_id, "#text/0", first, _serialize_guard($scope3_reason, 1))}|${_text_resume($scope3_id, "#text/1", others[0], _serialize_guard($scope3_reason, 2) * 2)}|${_text_resume($scope3_id, "#text/2", others[1], _serialize_guard($scope3_reason, 3) * 2)}|${_text_resume($scope3_id, "#text/3", others.length, _serialize_guard($scope3_reason, 4) * 2)}
    `); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, {}, "__tests__/template.marko", "8:2"); + _serialize_if($scope3_reason, 0) && _scope($scope3_id, {}, "__tests__/template.marko", "8:2"); }, $scope0_id) }); child_default({ content: _content("__tests__/template.marko_4*content", (x, ...[y, z]) => { const $scope4_reason = _scope_reason(); const $scope4_id = _scope_id(); _html(`
    ${_text_resume($scope4_id, "#text/0", x, _serialize_guard($scope4_reason, 1))}-${_text_resume($scope4_id, "#text/1", y, _serialize_guard($scope4_reason, 2) * 2)}-${_text_resume($scope4_id, "#text/2", z, _serialize_guard($scope4_reason, 3) * 2)}
    `); - _serialize_if($scope4_reason, 0) && writeScope($scope4_id, {}, "__tests__/template.marko", "11:2"); + _serialize_if($scope4_reason, 0) && _scope($scope4_id, {}, "__tests__/template.marko", "11:2"); }, $scope0_id) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/param-rest-reads/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/param-rest-reads/__snapshots__/html.bundle.js index 1d9dc97d390..228161c73c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/param-rest-reads/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/param-rest-reads/__snapshots__/html.bundle.js @@ -7,7 +7,7 @@ var child_default = _template("b", (input) => { 2, 3 ], 0, 1, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -27,12 +27,12 @@ var template_default = _template("a", (input) => { const $scope3_reason = _scope_reason(); const $scope3_id = _scope_id(); _html(`
    ${_text_resume($scope3_id, "a", first, _serialize_guard($scope3_reason, 1))}|${_text_resume($scope3_id, "b", others[0], _serialize_guard($scope3_reason, 2) * 2)}|${_text_resume($scope3_id, "c", others[1], _serialize_guard($scope3_reason, 3) * 2)}|${_text_resume($scope3_id, "d", others.length, _serialize_guard($scope3_reason, 4) * 2)}
    `); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, {}); + _serialize_if($scope3_reason, 0) && _scope($scope3_id, {}); }, $scope0_id) }); child_default({ content: _content("a1", (x, ...[y, z]) => { const $scope4_reason = _scope_reason(); const $scope4_id = _scope_id(); _html(`
    ${_text_resume($scope4_id, "a", x, _serialize_guard($scope4_reason, 1))}-${_text_resume($scope4_id, "b", y, _serialize_guard($scope4_reason, 2) * 2)}-${_text_resume($scope4_id, "c", z, _serialize_guard($scope4_reason, 3) * 2)}
    `); - _serialize_if($scope4_reason, 0) && writeScope($scope4_id, {}); + _serialize_if($scope4_reason, 0) && _scope($scope4_id, {}); }, $scope0_id) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-adjacent-static-text/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-adjacent-static-text/__snapshots__/html.bundle.debug.js index 6fc7ba0104b..07b704daf39 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-adjacent-static-text/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-adjacent-static-text/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let y = "Y"; _html(`
    ab${_text_resume($scope0_id, "#text/0", x, 2)}
    mno${_text_resume($scope0_id, "#text/1", y, 2)}
    ${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-adjacent-static-text/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-adjacent-static-text/__snapshots__/html.bundle.js index 9bd82518dea..ffa5c848917 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-adjacent-static-text/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-adjacent-static-text/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ab${_text_resume($scope0_id, "a", "X", 2)}
    mno${_text_resume($scope0_id, "b", "Y", 2)}
    ${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-after-node/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-after-node/__snapshots__/html.bundle.debug.js index d534aa136b7..b30b879bbb1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-after-node/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-after-node/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let b = ""; _html(`
    s${_text_resume($scope0_id, "#text/0", b)}
    ${_text_resume($scope0_id, "#text/1", b)}
    ${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-after-node/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-after-node/__snapshots__/html.bundle.js index 163bacd0e38..88d9892718a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-after-node/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-after-node/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let b = ""; _html(`
    s${_text_resume($scope0_id, "a", b)}
    ${_text_resume($scope0_id, "b", b)}
    ${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/html.bundle.debug.js index abd79e55976..2e8a37c8365 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/html.bundle.debug.js @@ -8,19 +8,19 @@ var template_default = _template("__tests__/template.marko", (input) => { if (true) { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", a)); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); return 0; } }, $scope0_id, "#text/1", 1, 0, 0, 0, 1); _for_of([1], (i) => { const $scope2_id = _scope_id(); _html(`${_text_resume($scope2_id, "#text/0", a)} tail`); - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2"); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2"); }, 0, $scope0_id, "#text/2", 1, 0, 0); _html(` { a = _new_a; }, "__tests__/template.marko_0/valueChange", $scope0_id))}>${_el_resume($scope0_id, "#input/3")}${_text_resume($scope0_id, "#text/4", a)}${_el_resume($scope0_id, "#button/5")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/3": ["valueChange"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/3": ["valueChange"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/html.bundle.js index 1b945459d29..904aea61acc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/html.bundle.js @@ -8,19 +8,19 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", a)); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "b", 1, 0, 0, 0, 1); _for_of([1], (i) => { const $scope2_id = _scope_id(); _html(`${_text_resume($scope2_id, "a", a)} tail`); - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }); }, 0, $scope0_id, "c", 1, 0, 0); _html(` { a = _new_a; }, "a0", $scope0_id))}>${_el_resume($scope0_id, "d")}${_text_resume($scope0_id, "e", a)}${_el_resume($scope0_id, "f")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.debug.js index 927795368d3..c696cd8316b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = "a b c"; _html(`
    ${_html_resume($scope0_id, "#text/0", value)}
    ${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.js index dd7f5c44f97..ae6b447414b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_html_resume($scope0_id, "a", "a b c")}
    ${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.debug.js index 42b44baced0..c325ce2bba3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(), $sg__input_x = _serialize_guard($scope0_reason, 0); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.x, $sg__input_x * 2)}
    ${_text_resume($scope0_id, "#text/1", input.x, $sg__input_x)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.js index 1ea2ec3cc82..2e1e68d8e0c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(), $sg__input_x = _serialize_guard($scope0_reason, 0); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.x, $sg__input_x * 2)}
    ${_text_resume($scope0_id, "b", input.x, $sg__input_x)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.debug.js index 1b0d645213a..b8267d82f88 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let mounted = undefined; _html(`
    ${_text_resume($scope0_id, "#text/0", mounted ? `${_to_text("A")}B${_to_text(mounted && "C")}D` : "")}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.js index b4ce7905454..3f9eff43c85 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", "")}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholders/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholders/__snapshots__/html.bundle.debug.js index aefe055df54..8d22ef9545b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholders/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholders/__snapshots__/html.bundle.debug.js @@ -7,5 +7,5 @@ var template_default = _template("__tests__/template.marko", (input) => { `)}<\/script>${_escape_style(` ${_to_text(".test { content: 'Hello ' }")} `)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholders/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholders/__snapshots__/html.bundle.js index bddd15f1e9f..0c1c4d88a88 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/placeholders/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/placeholders/__snapshots__/html.bundle.js @@ -7,5 +7,5 @@ var template_default = _template("a", (input) => { `)}<\/script>${_escape_style(` ${_to_text(".test { content: 'Hello ' }")} `)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/html.bundle.debug.js index 3aa4348ff35..292c42737e4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var my_button_default = _template("__tests__/tags/my-button.marko", (input) => { _attrs_content(input, "#button/0", $scope0_id, "button"); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/my-button.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/tags/my-button.marko", 0, { "EventAttributes:#button/0": ["...input", "1:11"] }); + _scope($scope0_id, {}, "__tests__/tags/my-button.marko", 0, { "EventAttributes:#button/0": ["...input", "1:11"] }); }); // template.marko @@ -24,5 +24,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("Click"); }, $scope0_id) }); - writeScope($scope0_id, { test }, "__tests__/template.marko", 0, { test: "1:7" }); + _scope($scope0_id, { test }, "__tests__/template.marko", 0, { test: "1:7" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/html.bundle.js index b274215a268..34c479623af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/pure-signal-resume-function/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var my_button_default = _template("b", (input) => { _attrs_content(input, "a", $scope0_id, "button"); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }); // template.marko @@ -24,5 +24,5 @@ var template_default = _template("a", (input) => { _html("Click"); }, $scope0_id) }); - writeScope($scope0_id, { b: test }); + _scope($scope0_id, { b: test }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/html.bundle.debug.js index 69043369ac6..937b3297cc2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const double = count * 2; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/html.bundle.js index be6889e4633..67ad5d918e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/pure-signal/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/html.bundle.debug.js index e048e1f14fe..1745b5114a9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let clickCount = 0; _html(`
    ${_el_resume($scope0_id, "#button/0")}
    ${_el_resume($scope0_id, "#div/2")}
    ${_el_resume($scope0_id, "#div/3")}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); + _scope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/html.bundle.js index ec58e6c4475..b2e70ab7867 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/read-proposed-tag-variable-after-write/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let clickCount = 0; _html(`
    ${_el_resume($scope0_id, "a")}
    ${_el_resume($scope0_id, "c")}
    ${_el_resume($scope0_id, "d")}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: clickCount }); + _scope($scope0_id, { e: clickCount }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/html.bundle.debug.js index 8fda119a3d3..7899f47c987 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/html.bundle.js index c1d45ca1a92..1165bb0dfe3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/reassignment-expression-counter/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 0; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { g: count }); + _scope($scope0_id, { g: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/html.bundle.debug.js index da444cf2759..58569b2a0ac 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/html.bundle.debug.js @@ -7,15 +7,15 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_reason = _scope_reason(); _dynamic_tag($scope1_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope1_reason, 0)); const $return = "A"; - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); return $return; }, $scope0_id) }; let name = Tag.content({ content: _content("__tests__/template.marko_2*content", () => { _scope_reason(); const $scope2_id = _scope_id(); _script($scope2_id, "__tests__/template.marko_2_name#2"); - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:2"); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:2"); _resume_branch($scope2_id); }, $scope0_id) }); - writeScope($scope0_id, { name }, "__tests__/template.marko", 0, { name: "6:6" }); + _scope($scope0_id, { name }, "__tests__/template.marko", 0, { name: "6:6" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/html.bundle.js index 7c5fa55aadb..f374e3b399a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/reference-in-own-body/__snapshots__/html.bundle.js @@ -2,18 +2,18 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope0_id = _scope_id(); - writeScope($scope0_id, { c: { content: _content("a0", (input) => { + _scope($scope0_id, { c: { content: _content("a0", (input) => { const $scope1_id = _scope_id(); const $scope1_reason = _scope_reason(); _dynamic_tag($scope1_id, "a", input.content, {}, 0, 0, _serialize_guard($scope1_reason, 0)); const $return = "A"; - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); return $return; }, $scope0_id) }.content({ content: _content("a2", () => { _scope_reason(); const $scope2_id = _scope_id(); _script($scope2_id, "a1"); - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }); _resume_branch($scope2_id); }, $scope0_id) }) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/regexp-attr/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/regexp-attr/__snapshots__/html.bundle.debug.js index e1d850f1aa5..21d6249796b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/regexp-attr/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/regexp-attr/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const pattern = new RegExp(source); _html(`${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/regexp-attr/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/regexp-attr/__snapshots__/html.bundle.js index c4ada2ec8f2..e5a797505f6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/regexp-attr/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/regexp-attr/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/registered-computed-method/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/registered-computed-method/__snapshots__/html.bundle.debug.js index a84b40cde6f..d9afc211bb9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/registered-computed-method/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/registered-computed-method/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/handlers", $scope0_id) }; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", n)}
    `); _script($scope0_id, "__tests__/template.marko_0_handlers#3"); - writeScope($scope0_id, { + _scope($scope0_id, { n, handlers }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/registered-computed-method/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/registered-computed-method/__snapshots__/html.bundle.js index d8d30cecb38..7726315c168 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/registered-computed-method/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/registered-computed-method/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id) }; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", n)}
    `); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: n, d: handlers }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/remove-and-add-rows/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/remove-and-add-rows/__snapshots__/html.bundle.debug.js index 3929ae9ef02..2af46d88316 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/remove-and-add-rows/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/remove-and-add-rows/__snapshots__/html.bundle.debug.js @@ -7,9 +7,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _for_of(children, (child) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "#text/0", child.text, $sg__input_children)); - $si__input_children && writeScope($scope1_id, {}, "__tests__/template.marko", "3:4"); + $si__input_children && _scope($scope1_id, {}, "__tests__/template.marko", "3:4"); }, function(c) { return c.id; }, $scope0_id, "#div/0", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + $si__input_children && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/remove-and-add-rows/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/remove-and-add-rows/__snapshots__/html.bundle.js index dcfe36bda8b..0b7de27c6c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/remove-and-add-rows/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/remove-and-add-rows/__snapshots__/html.bundle.js @@ -7,9 +7,9 @@ var template_default = _template("a", (input) => { _for_of(children, (child) => { const $scope1_id = _scope_id(); _html(_text_resume($scope1_id, "a", child.text, $sg__input_children)); - $si__input_children && writeScope($scope1_id, {}); + $si__input_children && _scope($scope1_id, {}); }, function(c) { return c.id; }, $scope0_id, "a", $sg__input_children, $sg__input_children, $sg__input_children, "", 1); - $si__input_children && writeScope($scope0_id, {}); + $si__input_children && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/html.bundle.debug.js index da6432a533f..abea19a7dec 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/html.bundle.debug.js @@ -12,9 +12,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _attrs_content(rest, "#span/1", $scope1_id, "span"); _html(`${_el_resume($scope1_id, "#span/1")}`); _script($scope1_id, "__tests__/template.marko_1_rest#5"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2", { "EventAttributes:#span/1": ["...rest", "6:12"] }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:2", { "EventAttributes:#span/1": ["...rest", "6:12"] }); return 0; } }, $scope0_id, "#text/0", $sg__input_value, $sg__input_value, $sg__input_value); - writeScope($scope0_id, { foo: _serialize_if($scope0_reason, 0) && value?.foo }, "__tests__/template.marko", 0, { foo: "4:12" }); + _scope($scope0_id, { foo: _serialize_if($scope0_reason, 0) && value?.foo }, "__tests__/template.marko", 0, { foo: "4:12" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/html.bundle.js index 7c9fe075011..220e64a6499 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/rest-alias-nested-scope/__snapshots__/html.bundle.js @@ -12,9 +12,9 @@ var template_default = _template("a", (input) => { _attrs_content(rest, "b", $scope1_id, "span"); _html(`${_el_resume($scope1_id, "b")}`); _script($scope1_id, "a0"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", $sg__input_value, $sg__input_value, $sg__input_value); - writeScope($scope0_id, { e: _serialize_if($scope0_reason, 0) && value?.foo }); + _scope($scope0_id, { e: _serialize_if($scope0_reason, 0) && value?.foo }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/rest-of-rest-patch/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/rest-of-rest-patch/__snapshots__/html.bundle.debug.js index 6c9c856eb33..67fd3496b22 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/rest-of-rest-patch/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/rest-of-rest-patch/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var echo_default = _template("__tests__/tags/echo/index.marko", (input) => { const { skip, ...r } = input; const { ...s } = r; _html(`${_text_resume($scope0_id, "#text/0", skip, _serialize_guard($scope0_reason, 1))}${_text_resume($scope0_id, "#text/1", s.label, _serialize_guard($scope0_reason, 2) * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/echo/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/echo/index.marko", 0); }); // template.marko @@ -22,7 +22,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { label, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { label: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/rest-of-rest-patch/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/rest-of-rest-patch/__snapshots__/html.bundle.js index eb1bf9d3b63..2697691a9bf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/rest-of-rest-patch/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/rest-of-rest-patch/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var echo_default = _template("b", (input) => { const { skip, ...r } = input; const { ...s } = r; _html(`${_text_resume($scope0_id, "a", skip, _serialize_guard($scope0_reason, 1))}${_text_resume($scope0_id, "b", s.label, _serialize_guard($scope0_reason, 2) * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -22,7 +22,7 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: label, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/rest-only-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/rest-only-input/__snapshots__/html.bundle.debug.js index 8ec043d7f05..c6d75a6bd9a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/rest-only-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/rest-only-input/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var echo_default = _template("__tests__/tags/echo/index.marko", (input) => { const $scope0_id = _scope_id(); const { ...rest } = input; _html(`${_text_resume($scope0_id, "#text/0", rest.label, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/echo/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/echo/index.marko", 0); }); // template.marko @@ -18,7 +18,7 @@ var template_default = _template("__tests__/template.marko", (input) => { echo_default({ label }); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { label, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { label: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/rest-only-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/rest-only-input/__snapshots__/html.bundle.js index e577323dbb2..91e475abd0f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/rest-only-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/rest-only-input/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var echo_default = _template("b", (input) => { const $scope0_id = _scope_id(); const { ...rest } = input; _html(`${_text_resume($scope0_id, "a", rest.label, _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -18,7 +18,7 @@ var template_default = _template("a", (input) => { echo_default({ label }); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: label, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-adoption/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-adoption/__snapshots__/html.bundle.debug.js index 16bbb6c89c9..ad17b87abbc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-adoption/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-adoption/__snapshots__/html.bundle.debug.js @@ -12,13 +12,13 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); _html(`${_text_resume($scope2_id, "#text/0", item)}`); _script($scope2_id, "__tests__/template.marko_2_item#2"); - writeScope($scope2_id, {}, "__tests__/template.marko", "7:6"); + _scope($scope2_id, {}, "__tests__/template.marko", "7:6"); return 0; } }, $scope1_id, "#div/0", 1, 1, 1, "", 1); - writeScope($scope1_id, { item }, "__tests__/template.marko", "5:2", { item: "5:6" }); + _scope($scope1_id, { item }, "__tests__/template.marko", "5:2", { item: "5:6" }); }, 0, $scope0_id, "#text/2", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-adoption/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-adoption/__snapshots__/html.bundle.js index 2a5f26e3f78..bb9da97e512 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-adoption/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-adoption/__snapshots__/html.bundle.js @@ -12,13 +12,13 @@ var template_default = _template("a", (input) => { const $scope2_id = _scope_id(); _html(`${_text_resume($scope2_id, "a", item)}`); _script($scope2_id, "a0"); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); return 0; } }, $scope1_id, "a", 1, 1, 1, "", 1); - writeScope($scope1_id, { c: item }); + _scope($scope1_id, { c: item }); }, 0, $scope0_id, "c", 1, 1, 1, 0, 1); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-deferred-owner-adoption/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-deferred-owner-adoption/__snapshots__/html.bundle.debug.js index 665c8de4b32..2d540ea5b30 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-deferred-owner-adoption/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-deferred-owner-adoption/__snapshots__/html.bundle.debug.js @@ -7,11 +7,11 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", input.item, _serialize_guard($scope0_reason, 2))}`); _script($scope1_id, "__tests__/tags/child.marko_1_input#2"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/tags/child.marko", "1:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/tags/child.marko", "1:2"); return 0; } }, $scope0_id, "#text/0", _serialize_guard($scope0_reason, 0), $sg__input_show, $sg__input_show, 0, 1); - writeScope($scope0_id, { + _scope($scope0_id, { input, input_item: _serialize_if($scope0_reason, 1) && input.item }, "__tests__/tags/child.marko", 0, { @@ -39,12 +39,12 @@ var template_default = _template("__tests__/template.marko", (input) => { log }); _html(""); - writeScope($scope1_id, { + _scope($scope1_id, { item, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "7:2", { item: "7:6" }); }, 0, $scope0_id, "#text/3", 1, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "2:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-deferred-owner-adoption/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-deferred-owner-adoption/__snapshots__/html.bundle.js index 596e5c6643d..7ecab27f39e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-deferred-owner-adoption/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/resume-multi-branch-deferred-owner-adoption/__snapshots__/html.bundle.js @@ -7,11 +7,11 @@ var child_default = _template("b", (input) => { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "a", input.item, _serialize_guard($scope0_reason, 2))}`); _script($scope1_id, "b0"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", _serialize_guard($scope0_reason, 0), $sg__input_show, $sg__input_show, 0, 1); - writeScope($scope0_id, { + _scope($scope0_id, { c: input, e: _serialize_if($scope0_reason, 1) && input.item }); @@ -36,12 +36,12 @@ var template_default = _template("a", (input) => { log }); _html(""); - writeScope($scope1_id, { + _scope($scope1_id, { c: item, a: _existing_scope($childScope) }); }, 0, $scope0_id, "d", 1, 1, 1, 0, 1); _script($scope0_id, "a1"); - writeScope($scope0_id, { f: show }); + _scope($scope0_id, { f: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/html.bundle.debug.js index 2f156137b4c..809ae92f1f3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/html.bundle.debug.js @@ -11,15 +11,15 @@ var template_default = _template("__tests__/template.marko", (input) => { if (items.length > 1) { const $scope2_id = _scope_id(); _html("
    b
    "); - writeScope($scope2_id, {}, "__tests__/template.marko", "6:4"); + _scope($scope2_id, {}, "__tests__/template.marko", "6:4"); return 0; } }, $scope1_id, "#text/0", 1, 1, 1, 0, 1); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:2"); }, 0, $scope0_id, "#text/0"); _html(`${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { itemId, items, items_length: items?.length diff --git a/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/html.bundle.js index 788a4ae14e0..ac4f34bc249 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/resume-single-node/__snapshots__/html.bundle.js @@ -11,15 +11,15 @@ var template_default = _template("a", (input) => { if (items.length > 1) { const $scope2_id = _scope_id(); _html("
    b
    "); - writeScope($scope2_id, {}); + _scope($scope2_id, {}); return 0; } }, $scope1_id, "a", 1, 1, 1, 0, 1); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a"); _html(`${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: itemId, d: items, e: items?.length diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-change-conditional/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/return-change-conditional/__snapshots__/html.bundle.debug.js index 377acef53bf..74a71fb35a2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-change-conditional/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-change-conditional/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var editable_default = _template("__tests__/tags/editable.marko", (input) => { const $scope0_id = _scope_id(); let x = "a"; const $return = x; - writeScope($scope0_id, { + _scope($scope0_id, { input_canEdit: input.canEdit, "#TagVariableChange": input.canEdit && _resume((v) => { x = v; @@ -24,7 +24,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/template.marko_0_val#6/var"); _html(`${_el_resume($scope0_id, "#button/2")}${_el_resume($scope0_id, "#button/3")}
    ${_text_resume($scope0_id, "#text/4", val)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { val, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { val: "2:11" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-in-conditional-through-define/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/return-in-conditional-through-define/__snapshots__/html.bundle.debug.js index 021d105cf11..cd359c5e5c5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-in-conditional-through-define/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-in-conditional-through-define/__snapshots__/html.bundle.debug.js @@ -26,11 +26,11 @@ var template_default = _template("__tests__/template.marko", (input) => { let wrapped = Wrapper.content({ value }); _var($scope2_id, "#scopeOffset/3", $childScope, "__tests__/template.marko_2_wrapped#6/var"); _html(`
    Value: ${_text_resume($scope2_id, "#text/4", wrapped, 2)}
    `); - writeScope($scope2_id, { "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", "7:2"); + _scope($scope2_id, { "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", "7:2"); return 0; } }, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { open }, "__tests__/template.marko", 0, { open: "5:6" }); + _scope($scope0_id, { open }, "__tests__/template.marko", 0, { open: "5:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-in-conditional-through-define/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/return-in-conditional-through-define/__snapshots__/html.bundle.js index 79abf75704b..2a097e91261 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-in-conditional-through-define/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-in-conditional-through-define/__snapshots__/html.bundle.js @@ -18,6 +18,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _if(() => {}, $scope0_id, "b"); _script($scope0_id, "a2"); - writeScope($scope0_id, { c: open }); + _scope($scope0_id, { c: open }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/html.bundle.debug.js index 6060f44da0a..60e5ee55a03 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var setter_default = _template("__tests__/tags/setter.marko", (input) => { input.valueChange(1); }, "__tests__/tags/setter.marko_0/setter", $scope0_id); const $return = (input.value, setter); - writeScope($scope0_id, { + _scope($scope0_id, { input_valueChange: input.valueChange, input_value: _serialize_if($scope0_reason, 0) && input.value, setter: _serialize_if($scope0_reason, 1) && setter @@ -34,7 +34,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _var($scope0_id, "#scopeOffset/1", $childScope, "__tests__/template.marko_0_setCount#4/var"); _html(`
    ${_text_resume($scope0_id, "#text/2", count)}
    `); _script($scope0_id, "__tests__/template.marko_0_setCount#4"); - writeScope($scope0_id, { + _scope($scope0_id, { setCount, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { setCount: "2:9" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/html.bundle.js index 0a89d319999..e7d69055ed5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-serialize-circular/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var setter_default = _template("b", (input) => { input.valueChange(1); }, "b0", $scope0_id); const $return = (input.value, setter); - writeScope($scope0_id, { + _scope($scope0_id, { c: input.valueChange, d: _serialize_if($scope0_reason, 0) && input.value, e: _serialize_if($scope0_reason, 1) && setter @@ -30,7 +30,7 @@ var template_default = _template("a", (input) => { _var($scope0_id, "b", $childScope, "a1"); _html(`
    ${_text_resume($scope0_id, "c", count)}
    `); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { e: setCount, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/html.bundle.debug.js index cc834dbcf37..a967fdf6f40 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var my_let_default = _template("__tests__/tags/my-let.marko", (input) => { const $scope0_id = _scope_id(); let value = input.value; const $return = value; - writeScope($scope0_id, { "#TagVariableChange": _resume((_new_value) => { + _scope($scope0_id, { "#TagVariableChange": _resume((_new_value) => { value = _new_value; }, "__tests__/tags/my-let.marko_0/valueChange", $scope0_id) || void 0 }, "__tests__/tags/my-let.marko", 0); _resume_branch($scope0_id); @@ -16,7 +16,7 @@ var my_tag_default = _template("__tests__/tags/my-tag.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/my-tag.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/my-tag.marko", 0); }); // template.marko @@ -32,10 +32,10 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:1")); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:1")); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { count, "#childScope/0": _existing_scope($childScope), "ClosureScopes:count": $count__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/html.bundle.js index 8a34151403a..31bf658932f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-tag-bind-type-casting/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var my_let_default = _template("b", (input) => { const $scope0_id = _scope_id(); let value = input.value; const $return = value; - writeScope($scope0_id, { U: _resume((_new_value) => { + _scope($scope0_id, { U: _resume((_new_value) => { value = _new_value; }, "b0", $scope0_id) || void 0 }); _resume_branch($scope0_id); @@ -16,7 +16,7 @@ var my_tag_default = _template("c", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -32,10 +32,10 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a1"); - _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($count__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { d: count, a: _existing_scope($childScope), e: $count__closures diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/html.bundle.debug.js index a07b5dd0865..be78b656e14 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/html.bundle.debug.js @@ -16,5 +16,5 @@ var template_default = _template("__tests__/template.marko", (input) => { let get = getter_default({}); _html(`
    ${_el_resume($scope0_id, "#div/2")}`); _script($scope0_id, "__tests__/template.marko_0_get#3"); - writeScope($scope0_id, { get }, "__tests__/template.marko", 0, { get: "1:9" }); + _scope($scope0_id, { get }, "__tests__/template.marko", 0, { get: "1:9" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/html.bundle.js index 517ee134ab1..65a24ec3657 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/return-value-registered/__snapshots__/html.bundle.js @@ -14,5 +14,5 @@ var template_default = _template("a", (input) => { let get = getter_default({}); _html(`
    ${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: get }); + _scope($scope0_id, { d: get }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/html.bundle.debug.js index 3b9cc7e3fcd..c1f80a51b92 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/html.bundle.debug.js @@ -12,7 +12,7 @@ var template_default = _template("__tests__/template.marko", (input) => { value(); } }, "__tests__/template.marko_1/_return", $scope1_id); - writeScope($scope1_id, { + _scope($scope1_id, { value, call }, "__tests__/template.marko", "1:1", { @@ -39,7 +39,7 @@ var template_default = _template("__tests__/template.marko", (input) => { value(); } }, "__tests__/template.marko_2/_return2", $scope2_id); - writeScope($scope2_id, { + _scope($scope2_id, { value, call }, "__tests__/template.marko", "15:1", { @@ -58,7 +58,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/6")}`); _script($scope0_id, "__tests__/template.marko_0_onClickTwice#11"); _script($scope0_id, "__tests__/template.marko_0_onClickOnce#9"); - writeScope($scope0_id, { + _scope($scope0_id, { clickOnceCount, onClickOnce, clickTwiceCount, diff --git a/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/html.bundle.js index 447143ea033..c7c6cc410c5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/html.bundle.js @@ -12,7 +12,7 @@ var template_default = _template("a", (input) => { value(); } }, "a0", $scope1_id); - writeScope($scope1_id, { + _scope($scope1_id, { c: value, d: call }); @@ -36,7 +36,7 @@ var template_default = _template("a", (input) => { value(); } }, "a2", $scope2_id); - writeScope($scope2_id, { + _scope($scope2_id, { c: value, d: call }); @@ -52,7 +52,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "g")}`); _script($scope0_id, "a8"); _script($scope0_id, "a9"); - writeScope($scope0_id, { + _scope($scope0_id, { i: clickOnceCount, j: onClickOnce, k: clickTwiceCount, diff --git a/packages/runtime-tags/src/__tests__/fixtures/same-source-alias-pattern-and-identifier/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/same-source-alias-pattern-and-identifier/__snapshots__/html.bundle.debug.js index 97d79cb7af5..e25faa64ae7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/same-source-alias-pattern-and-identifier/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/same-source-alias-pattern-and-identifier/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const { a } = input; const { b: c } = a; _html(``); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/same-source-alias-pattern-and-identifier/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/same-source-alias-pattern-and-identifier/__snapshots__/html.bundle.js index 8698d85ae43..5bd8c8ffa75 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/same-source-alias-pattern-and-identifier/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/same-source-alias-pattern-and-identifier/__snapshots__/html.bundle.js @@ -6,5 +6,5 @@ var template_default = _template("a", (input) => { const { a } = input; const { b: c } = a; _html(``); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/html.bundle.debug.js index 87615b97ed6..1177b97e7f5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/html.bundle.debug.js @@ -9,6 +9,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const { a, a: b } = createWrapper(count); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "5:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "5:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/html.bundle.js index 89dd0365a44..75df9aea31d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/same-source-non-alias/__snapshots__/html.bundle.js @@ -9,6 +9,6 @@ var template_default = _template("a", (input) => { const { a, a: b } = createWrapper(count); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: count }); + _scope($scope0_id, { d: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/html.bundle.debug.js index 3a92efe49c2..971d277ec76 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/html.bundle.debug.js @@ -10,5 +10,5 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/setText", $scope0_id); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0_setText#1"); - writeScope($scope0_id, { setText }, "__tests__/template.marko", 0, { setText: "2:8" }); + _scope($scope0_id, { setText }, "__tests__/template.marko", 0, { setText: "2:8" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/html.bundle.js index 4072ac344dd..e8cf4d61eab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-tag-value-no-scope/__snapshots__/html.bundle.js @@ -8,5 +8,5 @@ var template_default = _template("a", (input) => { }, "a0", $scope0_id); _html(`
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { b: setText }); + _scope($scope0_id, { b: setText }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/html.bundle.debug.js index 8172817fbbb..31ab6d0aec7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let x = 1; _html("
    0
    "); _script($scope0_id, "__tests__/template.marko_0_x#0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/html.bundle.js index ff458a53a9a..86bd9b45a31 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-tag/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let x = 1; _html("
    0
    "); _script($scope0_id, "a0"); - writeScope($scope0_id, { a: x }); + _scope($scope0_id, { a: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-top-level-return/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/script-top-level-return/__snapshots__/html.bundle.debug.js index 334c419d9e7..dbc50b23636 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-top-level-return/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-top-level-return/__snapshots__/html.bundle.debug.js @@ -4,6 +4,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); let x = true; _script($scope0_id, "__tests__/template.marko_0_x#0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-top-level-return/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/script-top-level-return/__snapshots__/html.bundle.js index a08150363dd..207e187d702 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-top-level-return/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-top-level-return/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); let x = true; _script($scope0_id, "a0"); - writeScope($scope0_id, { a: x }); + _scope($scope0_id, { a: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-value-arrow/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/script-value-arrow/__snapshots__/html.bundle.debug.js index 8cd7b493d11..deabf033be7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-value-arrow/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-value-arrow/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_n#2"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/script-value-arrow/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/script-value-arrow/__snapshots__/html.bundle.js index 9cb7141309e..951c76c8c60 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/script-value-arrow/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/script-value-arrow/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/select-controlled-after-sibling-options/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/select-controlled-after-sibling-options/__snapshots__/html.bundle.debug.js index 380f6f2fc48..89fff9e19e4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/select-controlled-after-sibling-options/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/select-controlled-after-sibling-options/__snapshots__/html.bundle.debug.js @@ -11,6 +11,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#select/0")}
    ${_text_resume($scope0_id, "#text/1", value)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/0": ["valueChange"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/select-controlled-after-sibling-options/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/select-controlled-after-sibling-options/__snapshots__/html.bundle.js index ac681324ef8..e7d6f228669 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/select-controlled-after-sibling-options/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/select-controlled-after-sibling-options/__snapshots__/html.bundle.js @@ -11,6 +11,6 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", value)}
    `); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/select-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/select-spread/__snapshots__/html.bundle.debug.js index 2165e39f4bc..c3589f06e87 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/select-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/select-spread/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(_el_resume($scope0_id, "#select/1")); _script($scope0_id, "__tests__/template.marko_0_input_rest#5"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#select/1": ["...input.rest", "3:12"], "EventAttributes:#select/1": ["...input.rest", "3:12"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/select-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/select-spread/__snapshots__/html.bundle.js index 290f914a3a3..aad4480d691 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/select-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/select-spread/__snapshots__/html.bundle.js @@ -11,6 +11,6 @@ var template_default = _template("a", (input) => { _html(_el_resume($scope0_id, "b")); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-custom-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-custom-tag/__snapshots__/html.bundle.debug.js index 6a62dee27b9..394c49115a2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-custom-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-custom-tag/__snapshots__/html.bundle.debug.js @@ -9,11 +9,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope1_id, "#button/0")}`); const $return = $el; _script($scope1_id, "__tests__/template.marko_1_input_onClick#3"); - writeScope($scope1_id, { input_onClick: input.onClick }, "__tests__/template.marko", "1:2", { input_onClick: ["input.onClick", "1:15"] }); + _scope($scope1_id, { input_onClick: input.onClick }, "__tests__/template.marko", "1:2", { input_onClick: ["input.onClick", "1:15"] }); return $return; }, $scope0_id) }; let foo = Child.content({ onClick: _resume(function() { foo().innerHTML = "clicked"; }, "__tests__/template.marko_0/onClick", $scope0_id) }); - writeScope($scope0_id, { foo }, "__tests__/template.marko", 0, { foo: "6:8" }); + _scope($scope0_id, { foo }, "__tests__/template.marko", 0, { foo: "6:8" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-custom-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-custom-tag/__snapshots__/html.bundle.js index 21d51f4f8b9..e118eb661e4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-custom-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-custom-tag/__snapshots__/html.bundle.js @@ -9,10 +9,10 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope1_id, "a")}`); const $return = $el; _script($scope1_id, "a3"); - writeScope($scope1_id, { d: input.onClick }); + _scope($scope1_id, { d: input.onClick }); return $return; }, $scope0_id) }.content({ onClick: _resume(function() { foo().innerHTML = "clicked"; }, "a0", $scope0_id) }); - writeScope($scope0_id, { c: foo }); + _scope($scope0_id, { c: foo }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/html.bundle.debug.js index 3ef6b0ec06f..321a6f0bb34 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/html.bundle.debug.js @@ -12,6 +12,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", sum())}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/html.bundle.js index 38dc4da552d..cfc2ed3af81 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function-named/__snapshots__/html.bundle.js @@ -11,6 +11,6 @@ var template_default = _template("a", (input) => { return i >= items.length ? 0 : items[i] + sum(i + 1); }())}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: items }); + _scope($scope0_id, { c: items }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function/__snapshots__/html.bundle.debug.js index 88b5b6993f3..2e9dc8111e8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const sum = (i = 0) => i >= items.length ? 0 : items[i] + sum(i + 1); _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", sum())}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); + _scope($scope0_id, { items }, "__tests__/template.marko", 0, { items: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function/__snapshots__/html.bundle.js index 81928aad747..1a3f30b78ff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-function/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { const sum = (i = 0) => i >= items.length ? 0 : items[i] + sum(i + 1); _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", sum())}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: items }); + _scope($scope0_id, { c: items }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/html.bundle.debug.js index 1e88154d5de..2b7dead63ab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/html.bundle.js index d0554840179..8092d5da60c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/self-reference-native-tag/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/serialize-cycle-repeat-reference/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/serialize-cycle-repeat-reference/__snapshots__/html.bundle.debug.js index fa561ddd8dd..9741e303f7c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/serialize-cycle-repeat-reference/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/serialize-cycle-repeat-reference/__snapshots__/html.bundle.debug.js @@ -17,7 +17,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let result = "pending"; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", result)}
    `); _script($scope0_id, "__tests__/template.marko_0_graph_byId#3_graph_current#4_graph_all#5"); - writeScope($scope0_id, { + _scope($scope0_id, { graph_byId: graph?.byId, graph_current: graph?.current, graph_all: graph?.all diff --git a/packages/runtime-tags/src/__tests__/fixtures/serialize-cycle-repeat-reference/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/serialize-cycle-repeat-reference/__snapshots__/html.bundle.js index dfddad1fa53..bc99c725bc5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/serialize-cycle-repeat-reference/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/serialize-cycle-repeat-reference/__snapshots__/html.bundle.js @@ -16,7 +16,7 @@ var template_default = _template("a", (input) => { let graph = buildGraph(); _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", "pending")}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: graph?.byId, e: graph?.current, f: graph?.all diff --git a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise-scoped-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise-scoped-function/__snapshots__/html.bundle.debug.js index 57ebca28b46..a9170c10878 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise-scoped-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise-scoped-function/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/0")}
    0
    `); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_promise#4"); - writeScope($scope0_id, { + _scope($scope0_id, { count, promise }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise-scoped-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise-scoped-function/__snapshots__/html.bundle.js index ae178e6231d..012689eb429 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise-scoped-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise-scoped-function/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "a")}
    0
    `); _script($scope0_id, "a1"); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { c: count, e: promise }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/html.bundle.debug.js index 9abe7b7524e..d6d44bb2427 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/html.bundle.debug.js @@ -5,5 +5,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const promise = Promise.resolve("hello"); _html("
    0
    "); _script($scope0_id, "__tests__/template.marko_0_promise#0"); - writeScope($scope0_id, { promise }, "__tests__/template.marko", 0, { promise: "1:8" }); + _scope($scope0_id, { promise }, "__tests__/template.marko", 0, { promise: "1:8" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/html.bundle.js index 0931bd74725..10048f83fc4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/serialize-promise/__snapshots__/html.bundle.js @@ -5,5 +5,5 @@ var template_default = _template("a", (input) => { const promise = Promise.resolve("hello"); _html("
    0
    "); _script($scope0_id, "a0"); - writeScope($scope0_id, { a: promise }); + _scope($scope0_id, { a: promise }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/serialize-set-ancestor-member/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/serialize-set-ancestor-member/__snapshots__/html.bundle.debug.js index b90d88b4fea..640c3667615 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/serialize-set-ancestor-member/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/serialize-set-ancestor-member/__snapshots__/html.bundle.debug.js @@ -12,6 +12,6 @@ var template_default = _template("__tests__/template.marko", (input) => { })(); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { root }, "__tests__/template.marko", 0, { root: "2:8" }); + _scope($scope0_id, { root }, "__tests__/template.marko", 0, { root: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/serialize-set-ancestor-member/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/serialize-set-ancestor-member/__snapshots__/html.bundle.js index a78e249685f..4db84fda078 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/serialize-set-ancestor-member/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/serialize-set-ancestor-member/__snapshots__/html.bundle.js @@ -12,6 +12,6 @@ var template_default = _template("a", (input) => { })(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: root }); + _scope($scope0_id, { d: root }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/html.bundle.debug.js index ceec451f724..976c59784af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let $count3 = 0; _html(`
    ${_el_resume($scope0_id, "#button/0")}
    ${_el_resume($scope0_id, "#button/2")}
    ${_el_resume($scope0_id, "#button/4")}
    ${_el_resume($scope0_id, "#button/6")}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, $count, $count2, diff --git a/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/html.bundle.js index dd79a4cfc4e..528e7ad4924 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/shadow-same-scope/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { let $count3 = 0; _html(`
    ${_el_resume($scope0_id, "a")}
    ${_el_resume($scope0_id, "c")}
    ${_el_resume($scope0_id, "e")}
    ${_el_resume($scope0_id, "g")}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { i: count, j: $count, k: $count2, diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-empty-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-empty-body/__snapshots__/html.bundle.debug.js index 563fb0b8aee..85a36269fe7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-empty-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-empty-body/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(_text_resume($scope0_id, "#text/2", input.note, _serialize_guard($scope0_reason, 0))); _show_end($scope0_id, "#text/4", reveal); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { reveal }, "__tests__/template.marko", 0, { reveal: "1:6" }); + _scope($scope0_id, { reveal }, "__tests__/template.marko", 0, { reveal: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-empty-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-empty-body/__snapshots__/html.bundle.js index 8fcbc54e0cf..11ab95ffa07 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-empty-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-empty-body/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { _html(_text_resume($scope0_id, "c", input.note, _serialize_guard($scope0_reason, 0))); _show_end($scope0_id, "e", reveal); _script($scope0_id, "a0"); - writeScope($scope0_id, { i: reveal }); + _scope($scope0_id, { i: reveal }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-for-body-only-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-for-body-only-child/__snapshots__/html.bundle.debug.js index f7aefa1966d..048e7402215 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-for-body-only-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-for-body-only-child/__snapshots__/html.bundle.debug.js @@ -11,6 +11,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _show_end($scope0_id, "#div/1", visible, 1, 1, ""); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { visible }, "__tests__/template.marko", 0, { visible: "1:6" }); + _scope($scope0_id, { visible }, "__tests__/template.marko", 0, { visible: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-for-body-only-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-for-body-only-child/__snapshots__/html.bundle.js index 2ccba934efa..36913efe05c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-for-body-only-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-for-body-only-child/__snapshots__/html.bundle.js @@ -11,6 +11,6 @@ var template_default = _template("a", (input) => { }); _show_end($scope0_id, "b", visible, 1, 1, ""); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: visible }); + _scope($scope0_id, { d: visible }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-hidden/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-hidden/__snapshots__/html.bundle.debug.js index d3ed8e76eaa..f4637ef24e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-hidden/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-hidden/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("
    Hello!
    "); _show_end($scope0_id, "#text/2", show, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-hidden/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-hidden/__snapshots__/html.bundle.js index 9dc8341ef9b..2d8c6f5ffb8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-hidden/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-hidden/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { _html("
    Hello!
    "); _show_end($scope0_id, "c", show, 1, 1, 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: show }); + _scope($scope0_id, { d: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-empties/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-empties/__snapshots__/html.bundle.debug.js index 8ffeed042ca..495b8c42ee7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-empties/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-empties/__snapshots__/html.bundle.debug.js @@ -10,14 +10,14 @@ var template_default = _template("__tests__/template.marko", (input) => { if (inner) { const $scope1_id = _scope_id(); _html("B"); - writeScope($scope1_id, {}, "__tests__/template.marko", "5:30"); + _scope($scope1_id, {}, "__tests__/template.marko", "5:30"); return 0; } }, $scope0_id, "#text/3", 1, 1, 1, 0, 1); _show_end($scope0_id, "#text/5", visible); _html(" y"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { visible, inner }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-empties/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-empties/__snapshots__/html.bundle.js index ffdc152323a..e9c2fb4dae6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-empties/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-empties/__snapshots__/html.bundle.js @@ -10,14 +10,14 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html("B"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "d", 1, 1, 1, 0, 1); _show_end($scope0_id, "f", visible); _html(" y"); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { g: visible, h: inner }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-toggle/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-toggle/__snapshots__/html.bundle.debug.js index d3c7f5d569c..8745e90c368 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-toggle/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-toggle/__snapshots__/html.bundle.debug.js @@ -12,6 +12,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _show_end($scope0_id, "#text/4", visible); _html(" y"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { visible }, "__tests__/template.marko", 0, { visible: "1:6" }); + _scope($scope0_id, { visible }, "__tests__/template.marko", 0, { visible: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-toggle/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-toggle/__snapshots__/html.bundle.js index 53c9ffc23e5..77da32c7078 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-toggle/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-if-body-toggle/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { _show_end($scope0_id, "e", visible); _html(" y"); _script($scope0_id, "a0"); - writeScope($scope0_id, { f: visible }); + _scope($scope0_id, { f: visible }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-in-for/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-in-for/__snapshots__/html.bundle.debug.js index 141c24b4961..55559fc66e4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-in-for/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-in-for/__snapshots__/html.bundle.debug.js @@ -14,10 +14,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _show_start($show); _html(`
  • ${_escape(label)}
  • `); _show_end($scope1_id, "#text/2", $show, 1, 1, 0, 1); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:4"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "6:4"); }, 0, $scope0_id, "#ul/1", 1, 0, 0); _html(""); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { compact }, "__tests__/template.marko", 0, { compact: "1:6" }); + _scope($scope0_id, { compact }, "__tests__/template.marko", 0, { compact: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-in-for/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-in-for/__snapshots__/html.bundle.js index 9108b162154..35989988793 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-in-for/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-in-for/__snapshots__/html.bundle.js @@ -14,10 +14,10 @@ var template_default = _template("a", (input) => { _show_start($show); _html(`
  • ${_escape(label)}
  • `); _show_end($scope1_id, "c", $show, 1, 1, 0, 1); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, 0, $scope0_id, "b", 1, 0, 0); _html(""); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: compact }); + _scope($scope0_id, { c: compact }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-interactive-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-interactive-body/__snapshots__/html.bundle.debug.js index 051765c6405..9a4a5364023 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-interactive-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-interactive-body/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/2")}`); _show_end($scope0_id, "#text/5", visible); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { visible, count }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-interactive-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-interactive-body/__snapshots__/html.bundle.js index 76a5bacecee..c3e3f974462 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-interactive-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-interactive-body/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "c")}`); _show_end($scope0_id, "f", visible); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { g: visible, h: count }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-nested/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-nested/__snapshots__/html.bundle.debug.js index fdd5f600af9..25b475bf531 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-nested/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-nested/__snapshots__/html.bundle.debug.js @@ -13,7 +13,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(" after"); _show_end($scope0_id, "#text/6", outer); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { outer, inner }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-nested/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-nested/__snapshots__/html.bundle.js index 1976d32097a..4ba47297765 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-nested/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-nested/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var template_default = _template("a", (input) => { _html(" after"); _show_end($scope0_id, "g", outer); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { h: outer, i: inner }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child-interactive/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child-interactive/__snapshots__/html.bundle.debug.js index d426876ecbb..76765d2f5ad 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child-interactive/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child-interactive/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#button/2")}`); _show_end($scope0_id, "#div/1", open, 1, 1, "", 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { open, n }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child-interactive/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child-interactive/__snapshots__/html.bundle.js index 015a8b55d30..bd0f485a959 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child-interactive/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child-interactive/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "c")}`); _show_end($scope0_id, "b", open, 1, 1, "", 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: open, f: n }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child/__snapshots__/html.bundle.debug.js index 3ec8c1fe01e..8d623d039aa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child/__snapshots__/html.bundle.debug.js @@ -13,6 +13,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("fallback content"); _show_end($scope0_id, "#div/2", $show, 1, 1, ""); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { open }, "__tests__/template.marko", 0, { open: "1:6" }); + _scope($scope0_id, { open }, "__tests__/template.marko", 0, { open: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child/__snapshots__/html.bundle.js index 588ecdb24e2..b680fa319ed 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag-only-child/__snapshots__/html.bundle.js @@ -13,6 +13,6 @@ var template_default = _template("a", (input) => { _html("fallback content"); _show_end($scope0_id, "c", $show, 1, 1, ""); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: open }); + _scope($scope0_id, { d: open }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag/__snapshots__/html.bundle.debug.js index 7b7ff6b20f4..da5db6a5a64 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("
    Hello!
    "); _show_end($scope0_id, "#text/2", show, 1, 1, 0, 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-tag/__snapshots__/html.bundle.js index a1e3728b4e5..2bf75d3e2d6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-tag/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { _html("
    Hello!
    "); _show_end($scope0_id, "c", show, 1, 1, 0, 1); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: show }); + _scope($scope0_id, { d: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-text-prefix-placeholder/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/show-text-prefix-placeholder/__snapshots__/html.bundle.debug.js index c94411c88e7..fe14fab28f8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-text-prefix-placeholder/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-text-prefix-placeholder/__snapshots__/html.bundle.debug.js @@ -16,7 +16,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(_text_resume($scope0_id, "#text/6", count, 2)); _html(`
    ${_el_resume($scope0_id, "#button/7")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, vis }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/show-text-prefix-placeholder/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/show-text-prefix-placeholder/__snapshots__/html.bundle.js index e9e010793fe..2f195a29897 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/show-text-prefix-placeholder/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/show-text-prefix-placeholder/__snapshots__/html.bundle.js @@ -16,7 +16,7 @@ var template_default = _template("a", (input) => { _html(_text_resume($scope0_id, "g", count, 2)); _html(`
    ${_el_resume($scope0_id, "h")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { i: count, j: vis }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/html.bundle.debug.js index dedac20c077..57f174c2393 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/tags/child.marko_0_input_option#3"); - writeScope($scope0_id, { input_option: input.option }, "__tests__/tags/child.marko", 0, { input_option: ["input.option"] }); + _scope($scope0_id, { input_option: input.option }, "__tests__/tags/child.marko", 0, { input_option: ["input.option"] }); }); // tags/wrap.marko @@ -13,7 +13,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { const $scope0_id = _scope_id(); const $childScope = _peek_scope_id(); child_default(input); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/html.bundle.js index 71d1d7f52e0..240f1f7d259 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-attr-tag-effect/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var child_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { d: input.option }); + _scope($scope0_id, { d: input.option }); }); // tags/wrap.marko @@ -13,7 +13,7 @@ var wrap_default = _template("c", (input) => { const $scope0_id = _scope_id(); const $childScope = _peek_scope_id(); child_default(input); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-input/__snapshots__/html.bundle.debug.js index 84a1c1e3bbc..2dbe412fcfc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-input/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/wrap.marko @@ -13,7 +13,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); child_default(input); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-input/__snapshots__/html.bundle.js index ded24637164..9585bcae250 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-input/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/wrap.marko @@ -13,7 +13,7 @@ var wrap_default = _template("c", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); child_default(input); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/html.bundle.debug.js index 47182fa0c88..c024f4fb17f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope1_id, "#button/0")} `); _script($scope1_id, "__tests__/template.marko_1_input#2"); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { + _scope($scope1_id, { input: { ...input, content: undefined diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/html.bundle.js index 8f9d54e62ac..9ddd61fce6d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-native-event-handler-multi-alias/__snapshots__/html.bundle.js @@ -11,7 +11,7 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope1_id, "a")} `); _script($scope1_id, "a3"); _script($scope1_id, "a4"); - writeScope($scope1_id, { + _scope($scope1_id, { c: { ...input, content: void 0 diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-removed-controlled-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-removed-controlled-handler/__snapshots__/html.bundle.debug.js index e53b079d39b..badaaa53f8e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-removed-controlled-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-removed-controlled-handler/__snapshots__/html.bundle.debug.js @@ -12,7 +12,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#input/0")}value=[${_text_resume($scope0_id, "#text/1", value, 2)}]${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_attrs#4"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#input/0": ["...attrs", "5:11"], "EventAttributes:#input/0": ["...attrs", "5:11"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-removed-controlled-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-removed-controlled-handler/__snapshots__/html.bundle.js index 4f6cb65d4d4..88a1a82f0ce 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-removed-controlled-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-removed-controlled-handler/__snapshots__/html.bundle.js @@ -11,6 +11,6 @@ var template_default = _template("a", (input) => { }, "a", $scope0_id, "input")}>${_el_resume($scope0_id, "a")}value=[${_text_resume($scope0_id, "b", value, 2)}]${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a1"); _script($scope0_id, "a2"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-removed-event-handler/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-removed-event-handler/__snapshots__/html.bundle.debug.js index 33ee1a5917a..0acca20850e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-removed-event-handler/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-removed-event-handler/__snapshots__/html.bundle.debug.js @@ -16,7 +16,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko_0/attrs3", $scope0_id) }; _html(`${_text_resume($scope0_id, "#text/1", phase)}:${_text_resume($scope0_id, "#text/2", log, 2)}${_el_resume($scope0_id, "#div/0")}`); _script($scope0_id, "__tests__/template.marko_0_attrs#6"); - writeScope($scope0_id, { + _scope($scope0_id, { phase, log }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-removed-event-handler/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-removed-event-handler/__snapshots__/html.bundle.js index a212782e01a..8bbd203f25b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-removed-event-handler/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-removed-event-handler/__snapshots__/html.bundle.js @@ -15,7 +15,7 @@ var template_default = _template("a", (input) => { phase = 0; }, "a2", $scope0_id) }, "a", $scope0_id, "div")}>${_text_resume($scope0_id, "b", phase)}:${_text_resume($scope0_id, "c", log, 2)}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a3"); - writeScope($scope0_id, { + _scope($scope0_id, { d: phase, e: log }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/html.bundle.debug.js index 9d6264d9964..3ec6a95bb26 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/html.bundle.debug.js @@ -9,9 +9,9 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _attrs_content(option, "#option/0", $scope1_id, "option"); _html(`${_el_resume($scope1_id, "#option/0")}`); _script($scope1_id, "__tests__/tags/child.marko_1_option#2"); - writeScope($scope1_id, {}, "__tests__/tags/child.marko", "2:4", { "EventAttributes:#option/0": ["...option", "3:16"] }); + _scope($scope1_id, {}, "__tests__/tags/child.marko", "2:4", { "EventAttributes:#option/0": ["...option", "3:16"] }); }, 0, $scope0_id, "#select/0", $sg__input_option, _serialize_guard($scope0_reason, 0), $sg__input_option, "", 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/wrap.marko @@ -28,7 +28,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { class: _class, ...rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/html.bundle.js index 57b289e2643..748d55e5971 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-custom-tag/__snapshots__/html.bundle.js @@ -9,9 +9,9 @@ var child_default = _template("b", (input) => { _attrs_content(option, "a", $scope1_id, "option"); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "b0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_option, _serialize_guard($scope0_reason, 0), $sg__input_option, "", 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/wrap.marko @@ -28,7 +28,7 @@ var wrap_default = _template("c", (input) => { class: _class, ...rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/html.bundle.debug.js index 1729138ba4c..3351a5c6f3e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/html.bundle.debug.js @@ -12,9 +12,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _attrs_content(option, "#option/0", $scope3_id, "option"); _html(`${_el_resume($scope3_id, "#option/0")}`); _script($scope3_id, "__tests__/template.marko_3_option#2"); - writeScope($scope3_id, {}, "__tests__/template.marko", "3:6", { "EventAttributes:#option/0": ["...option", "4:18"] }); + _scope($scope3_id, {}, "__tests__/template.marko", "3:6", { "EventAttributes:#option/0": ["...option", "4:18"] }); }, 0, $scope1_id, "#select/0", $sg__input_option, _serialize_guard($scope1_reason, 0), $sg__input_option, "", 1); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2"); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "1:2"); }, $scope0_id) }; const Wrap = { content: _content("__tests__/template.marko_2*content", ({ class: _class, ...rest }) => { const $scope2_id = _scope_id(); @@ -28,7 +28,7 @@ var template_default = _template("__tests__/template.marko", (input) => { class: _class, ...rest }); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "9:2"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "9:2"); }, $scope0_id) }; Wrap.content({ class: "foo", diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/html.bundle.js index d5118982f2f..27ce4d1b8e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-attr-tag-define-tag/__snapshots__/html.bundle.js @@ -12,9 +12,9 @@ var template_default = _template("a", (input) => { _attrs_content(option, "a", $scope3_id, "option"); _html(`${_el_resume($scope3_id, "a")}`); _script($scope3_id, "a0"); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); }, 0, $scope1_id, "a", $sg__input_option, _serialize_guard($scope1_reason, 0), $sg__input_option, "", 1); - _serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope1_reason, 0) && _scope($scope1_id, {}); }, $scope0_id) }; ({ content: _content("a2", ({ class: _class, ...rest }) => { const $scope2_id = _scope_id(); @@ -28,7 +28,7 @@ var template_default = _template("a", (input) => { class: _class, ...rest }); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, { a: _existing_scope($childScope) }); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, { a: _existing_scope($childScope) }); }, $scope0_id) }).content({ class: "foo", option: attrTags(attrTags(attrTag({ diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/html.bundle.debug.js index 6ef9437079f..432f7c9111d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { }, "#p/0", $scope0_id, "p"); _html(`

    ${_el_resume($scope0_id, "#p/0")}`); _script($scope0_id, "__tests__/tags/child.marko_0_input_class#3_rest#4"); - writeScope($scope0_id, { input_class: input.class }, "__tests__/tags/child.marko", 0, { + _scope($scope0_id, { input_class: input.class }, "__tests__/tags/child.marko", 0, { input_class: ["input.class"], "EventAttributes:#p/0": ["...rest", "2:25"] }); @@ -26,7 +26,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { ...rest, class: _class }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/html.bundle.js index d9dfcd18c9c..0ab822c04bb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content-rest/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var child_default = _template("b", (input) => { }, "a", $scope0_id, "p"); _html(`

    ${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { d: input.class }); + _scope($scope0_id, { d: input.class }); }); // tags/wrap.marko @@ -23,7 +23,7 @@ var wrap_default = _template("c", (input) => { ...rest, class: _class }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content/__snapshots__/html.bundle.debug.js index 632cc8b8f49..63b318b8c5f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _html(``); _dynamic_tag($scope0_id, "#text/1", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); _html(`

    ${_el_resume($scope0_id, "#p/0", _serialize_guard($scope0_reason, 1))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/wrap.marko @@ -23,7 +23,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { class: _class, ...rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content/__snapshots__/html.bundle.js index f983a223641..f58dd6215eb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-content/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var child_default = _template("b", (input) => { _html(``); _dynamic_tag($scope0_id, "b", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 2)); _html(`

    ${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 1))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/wrap.marko @@ -23,7 +23,7 @@ var wrap_default = _template("c", (input) => { class: _class, ...rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-defaults/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-defaults/__snapshots__/html.bundle.debug.js index 152b4ec5a90..8dc1ae1057b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-defaults/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-defaults/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/wrap.marko @@ -22,7 +22,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { value: "default", ...input }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _serialize_if($scope0_reason, 1) && _existing_scope($childScope), "#childScope/1": _existing_scope($childScope2) }, "__tests__/tags/wrap.marko", 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-defaults/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-defaults/__snapshots__/html.bundle.js index d24a669506f..923605bb233 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-defaults/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-defaults/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/wrap.marko @@ -22,7 +22,7 @@ var wrap_default = _template("c", (input) => { value: "default", ...input }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _serialize_if($scope0_reason, 1) && _existing_scope($childScope), b: _existing_scope($childScope2) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-children/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-children/__snapshots__/html.bundle.debug.js index 0f9a613020c..811c2e471a2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-children/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-children/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/wrap.marko @@ -16,7 +16,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { _set_serialize_reason($sg__input_class__OR__input_value); const $childScope2 = _peek_scope_id(); child_default(input); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope), "#childScope/1": _existing_scope($childScope2) }, "__tests__/tags/wrap.marko", 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-children/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-children/__snapshots__/html.bundle.js index a0010a2cf07..b4c91e68cfa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-children/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-children/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/wrap.marko @@ -16,7 +16,7 @@ var wrap_default = _template("c", (input) => { _set_serialize_reason($sg__input_class__OR__input_value); const $childScope2 = _peek_scope_id(); child_default(input); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope), b: _existing_scope($childScope2) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-spread-exprs/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-spread-exprs/__snapshots__/html.bundle.debug.js index 425fcc65222..54b2267f20c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-spread-exprs/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-spread-exprs/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/wrap.marko @@ -16,7 +16,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { ...input, ...{ a: 1 } }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-spread-exprs/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-spread-exprs/__snapshots__/html.bundle.js index 516a2441935..d2d0b79f03d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-spread-exprs/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-multiple-spread-exprs/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/wrap.marko @@ -16,7 +16,7 @@ var wrap_default = _template("c", (input) => { ...input, a: 1 }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-deep/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-deep/__snapshots__/html.bundle.debug.js index 2e600b71a1d..5f125bb180e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-deep/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-deep/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/wrap.marko @@ -17,7 +17,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { value, ...rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); }); // tags/wrap-outer.marko @@ -31,7 +31,7 @@ var wrap_outer_default = _template("__tests__/tags/wrap-outer.marko", (input) => value: "abcd", ...rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap-outer.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap-outer.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-deep/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-deep/__snapshots__/html.bundle.js index 2927e90599f..d70c5bf6e63 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-deep/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-deep/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/wrap.marko @@ -17,7 +17,7 @@ var wrap_default = _template("d", (input) => { value, ...rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }); // tags/wrap-outer.marko @@ -31,7 +31,7 @@ var wrap_outer_default = _template("c", (input) => { value: "abcd", ...rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/html.bundle.debug.js index b5e5b9202f0..9f2637f7dca 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { }, "#span/0", $scope0_id, "span"); _html(`${_el_resume($scope0_id, "#span/0")}`); _script($scope0_id, "__tests__/tags/child.marko_0__class#3_rest#4"); - writeScope($scope0_id, { _class }, "__tests__/tags/child.marko", 0, { + _scope($scope0_id, { _class }, "__tests__/tags/child.marko", 0, { _class: "1:17", "EventAttributes:#span/0": ["...rest", "2:23"] }); @@ -25,5 +25,5 @@ var template_default = _template("__tests__/template.marko", (input) => { "data-foo": 1, ...input }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/html.bundle.js index 2f7be8519ee..036d940bef1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-deopt/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var child_default = _template("b", (input) => { }, "a", $scope0_id, "span"); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { d: _class }); + _scope($scope0_id, { d: _class }); }); // template.marko @@ -22,5 +22,5 @@ var template_default = _template("a", (input) => { "data-foo": 1, ...input }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/html.bundle.debug.js index 14cc35b87ec..03a03dca64e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/html.bundle.debug.js @@ -9,9 +9,9 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { _dynamic_tag($scope1_id, "#text/1", desc, {}, 0, 0, $sg__input_foo); _html(`${_el_resume($scope1_id, "#span/0")}`); _script($scope1_id, "__tests__/tags/child.marko_1_item#5"); - writeScope($scope1_id, {}, "__tests__/tags/child.marko", "2:2", { "EventAttributes:#span/0": ["...item", "3:12"] }); + _scope($scope1_id, {}, "__tests__/tags/child.marko", "2:2", { "EventAttributes:#span/0": ["...item", "3:12"] }); }, 0, $scope0_id, "#text/0", $sg__input_foo, $sg__input_foo, $sg__input_foo, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/wrap.marko @@ -30,13 +30,13 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 1)); const $childScope = _peek_scope_id(); child_default({ foo: input.foo }); - _subscribe($si__input_foo && $input_foo__closures, writeScope($scope1_id, { + _subscribe($si__input_foo && $input_foo__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), "#childScope/0": $si__input_foo && _existing_scope($childScope) }, "__tests__/tags/wrap.marko", "2:4")); _resume_branch($scope1_id); }, $scope0_id), 0, _serialize_guard($scope0_reason, 0)); - writeScope($scope0_id, { + _scope($scope0_id, { input_foo: input.foo, _class: _serialize_if($scope0_reason, 3) && _class, rest: _serialize_if($scope0_reason, 2) && rest, @@ -78,5 +78,5 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id) }) }) }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/html.bundle.js index 59e93b4aeb1..77d3db9c4ff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input-with-attr-tags-deopt/__snapshots__/html.bundle.js @@ -9,9 +9,9 @@ var child_default = _template("b", (input) => { _dynamic_tag($scope1_id, "b", desc, {}, 0, 0, $sg__input_foo); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "b0"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); }, 0, $scope0_id, "a", $sg__input_foo, $sg__input_foo, $sg__input_foo, 0, 1); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/wrap.marko @@ -30,13 +30,13 @@ var wrap_default = _template("c", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 1)); const $childScope = _peek_scope_id(); child_default({ foo: input.foo }); - _subscribe($si__input_foo && $input_foo__closures, writeScope($scope1_id, { + _subscribe($si__input_foo && $input_foo__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), a: $si__input_foo && _existing_scope($childScope) })); _resume_branch($scope1_id); }, $scope0_id), 0, _serialize_guard($scope0_reason, 0)); - writeScope($scope0_id, { + _scope($scope0_id, { d: input.foo, e: _serialize_if($scope0_reason, 3) && _class, f: _serialize_if($scope0_reason, 2) && rest, @@ -74,5 +74,5 @@ var template_default = _template("a", (input) => { }, $scope0_id) }) }) }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/html.bundle.debug.js index 49dd2ba07b8..1ff66083c6b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { }, "#span/0", $scope0_id, "span"); _html(`${_el_resume($scope0_id, "#span/0")}`); _script($scope0_id, "__tests__/tags/child.marko_0__class#3_rest#4"); - writeScope($scope0_id, { _class }, "__tests__/tags/child.marko", 0, { + _scope($scope0_id, { _class }, "__tests__/tags/child.marko", 0, { _class: "1:17", "EventAttributes:#span/0": ["...rest", "2:23"] }); @@ -27,5 +27,5 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("
    "); _dynamic_tag($scope0_id, "#text/1", Child, input, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/html.bundle.js index 493e6335d68..828c78fca5c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest-input/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var child_default = _template("b", (input) => { }, "a", $scope0_id, "span"); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { d: _class }); + _scope($scope0_id, { d: _class }); }); // template.marko @@ -24,5 +24,5 @@ var template_default = _template("a", (input) => { _html("
    "); _dynamic_tag($scope0_id, "b", Child, input, 0, 0, _serialize_guard($scope0_reason, 0)); _html("
    "); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest/__snapshots__/html.bundle.debug.js index d15855b4375..beb3ae2e983 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/wrap.marko @@ -17,7 +17,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { value, ...rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest/__snapshots__/html.bundle.js index bd6c1b7b191..9d7a62bbd66 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known-rest/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/wrap.marko @@ -17,7 +17,7 @@ var wrap_default = _template("c", (input) => { value, ...rest }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known/__snapshots__/html.bundle.debug.js index 84a1c1e3bbc..2dbe412fcfc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#input/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); }); // tags/wrap.marko @@ -13,7 +13,7 @@ var wrap_default = _template("__tests__/tags/wrap.marko", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); child_default(input); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/wrap.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known/__snapshots__/html.bundle.js index ded24637164..9585bcae250 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-to-known/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-to-known/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var child_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/wrap.marko @@ -13,7 +13,7 @@ var wrap_default = _template("c", (input) => { _set_serialize_reason(_serialize_guard($scope0_reason, 0)); const $childScope = _peek_scope_id(); child_default(input); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) }); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { a: _existing_scope($childScope) }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/html.bundle.debug.js index 724cad49f45..57a404df0ac 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/html.bundle.debug.js @@ -12,5 +12,5 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "#button/0", $scope0_id, "button"); _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0_rest#3"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "EventAttributes:#button/0": ["...rest", "2:58"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "EventAttributes:#button/0": ["...rest", "2:58"] }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/html.bundle.js index 884220e579e..886b4b891c8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/spread-trailing-native-tag-default-function/__snapshots__/html.bundle.js @@ -12,5 +12,5 @@ var template_default = _template("a", (input) => { }, "a", $scope0_id, "button"); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-alias-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/static-alias-registered-function/__snapshots__/html.bundle.debug.js index 4a0c67871dc..f8eaf6d0fe8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-alias-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-alias-registered-function/__snapshots__/html.bundle.debug.js @@ -11,7 +11,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let message = "Hello"; _html(`${_el_resume($scope0_id, "#button/0")}
    ${_text_resume($scope0_id, "#text/1", message)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { fn, message }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-alias-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-alias-registered-function/__snapshots__/html.bundle.js index 5a5e583c549..553524b87a2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-alias-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-alias-registered-function/__snapshots__/html.bundle.js @@ -11,7 +11,7 @@ var template_default = _template("a", (input) => { let message = "Hello"; _html(`${_el_resume($scope0_id, "a")}
    ${_text_resume($scope0_id, "b", message)}
    `); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { c: fn, d: message }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/html.bundle.debug.js index 74f4b798847..8957f4583b6 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/html.bundle.debug.js @@ -8,12 +8,12 @@ var consumer_default = _template("__tests__/tags/consumer.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _dynamic_tag($scope1_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - writeScope($scope1_id, {}, "__tests__/tags/consumer.marko", "3:2"); + _scope($scope1_id, {}, "__tests__/tags/consumer.marko", "3:2"); return 0; } }, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/tags/consumer.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_content: input.content, show }, "__tests__/tags/consumer.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/html.bundle.js index 9702495967d..55a094e5e7c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-content-conditional-consumer/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var consumer_default = _template("b", (input) => { _html(`${_el_resume($scope0_id, "a")}`); _if(() => {}, $scope0_id, "b"); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: input.content, f: show }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/html.bundle.debug.js index 5303f3fa900..fe38943980e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var inner_default = _template("__tests__/tags/inner.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "#text/0", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/inner.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/inner.marko", 0); }); // tags/outer.marko @@ -17,10 +17,10 @@ var outer_default = _template("__tests__/tags/outer.marko", (input) => { _html(`${_el_resume($scope1_id, "#button/0")}`); _dynamic_tag($scope1_id, "#text/1", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _script($scope1_id, "__tests__/tags/outer.marko_1"); - _subscribe($si__input_content && $input_content__closures, writeScope($scope1_id, { _: $si__input_content && _scope_with_id($scope0_id) }, "__tests__/tags/outer.marko", "1:2")); + _subscribe($si__input_content && $input_content__closures, _scope($scope1_id, { _: $si__input_content && _scope_with_id($scope0_id) }, "__tests__/tags/outer.marko", "1:2")); _resume_branch($scope1_id); }, $scope0_id) }); - $si__input_content && writeScope($scope0_id, { "ClosureScopes:input_content": $input_content__closures }, "__tests__/tags/outer.marko", 0); + $si__input_content && _scope($scope0_id, { "ClosureScopes:input_content": $input_content__closures }, "__tests__/tags/outer.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/html.bundle.js index cfc7eb41f97..c1d1bdbe779 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-content/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var inner_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _dynamic_tag($scope0_id, "a", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/outer.marko @@ -17,10 +17,10 @@ var outer_default = _template("c", (input) => { _html(`${_el_resume($scope1_id, "a")}`); _dynamic_tag($scope1_id, "b", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0)); _script($scope1_id, "c0"); - _subscribe($si__input_content && $input_content__closures, writeScope($scope1_id, { _: $si__input_content && _scope_with_id($scope0_id) })); + _subscribe($si__input_content && $input_content__closures, _scope($scope1_id, { _: $si__input_content && _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }); - $si__input_content && writeScope($scope0_id, { e: $input_content__closures }); + $si__input_content && _scope($scope0_id, { e: $input_content__closures }); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-server-client-blocks/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/static-server-client-blocks/__snapshots__/html.bundle.debug.js index e5bc3a7264a..5698c7b0af9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-server-client-blocks/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-server-client-blocks/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "10:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "10:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-server-client-blocks/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-server-client-blocks/__snapshots__/html.bundle.js index 551e23758f0..ee57e1e5136 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-server-client-blocks/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-server-client-blocks/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/html.bundle.debug.js index 0e579b13ba6..0f7fa8110c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let count = 0; _html(`= ${_text_resume($scope0_id, "#text/0", count, 2)}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:5" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:5" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/html.bundle.js index 37848172c0e..8c000115cb7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let count = 0; _html(`= ${_text_resume($scope0_id, "a", count, 2)}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: count }); + _scope($scope0_id, { c: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-text-split-by-non-rendering-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/static-text-split-by-non-rendering-tag/__snapshots__/html.bundle.debug.js index 1ee4c6a8ee9..7606bfca03d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-text-split-by-non-rendering-tag/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-text-split-by-non-rendering-tag/__snapshots__/html.bundle.debug.js @@ -6,7 +6,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const m = n * 2; _html(`
    Hello World ${_el_resume($scope0_id, "#button/0")}${_text_resume($scope0_id, "#text/1", n)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, m }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/static-text-split-by-non-rendering-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/static-text-split-by-non-rendering-tag/__snapshots__/html.bundle.js index a6bfa452cce..540c78757a9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/static-text-split-by-non-rendering-tag/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/static-text-split-by-non-rendering-tag/__snapshots__/html.bundle.js @@ -6,7 +6,7 @@ var template_default = _template("a", (input) => { const m = n * 2; _html(`
    Hello World ${_el_resume($scope0_id, "a")}${_text_resume($scope0_id, "b", n)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { c: n, d: m }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/html.bundle.debug.js index a53c5126b82..f05f6e651b4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { border: "1px solid black" })}>foo bar${_el_resume($scope0_id, "#div/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { open }, "__tests__/template.marko", 0, { open: "1:5" }); + _scope($scope0_id, { open }, "__tests__/template.marko", 0, { open: "1:5" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/html.bundle.js index 696f0614340..ae62752e0f4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-attr-toggle-with-static-content/__snapshots__/html.bundle.js @@ -8,6 +8,6 @@ var template_default = _template("a", (input) => { border: "1px solid black" })}>foo bar${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: open }); + _scope($scope0_id, { c: open }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-comments-strings/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-comments-strings/__snapshots__/html.bundle.debug.js index d37cdee83b0..33e5073b203 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-comments-strings/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-comments-strings/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19comments-19strings-1btemplate-1amarko_0:${_escape_style_value(input.color)};`)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-comments-strings/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-comments-strings/__snapshots__/html.bundle.js index d8f4c477104..7694e91e45d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-comments-strings/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-comments-strings/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.color)};`)}${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-conditional/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-conditional/__snapshots__/html.bundle.debug.js index 17ca0a8670d..d072c842a36 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-conditional/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-conditional/__snapshots__/html.bundle.debug.js @@ -9,10 +9,10 @@ var template_default = _template("__tests__/template.marko", (input) => { if (input.show) { const $scope1_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19conditional-1btemplate-1amarko_0:${_escape_style_value(input.color)};`)}${_el_resume($scope1_id, "#style/0", _serialize_guard($scope0_reason, 2))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 2) && _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2"); + _serialize_if($scope0_reason, 0) && _scope($scope1_id, { _: _serialize_if($scope0_reason, 2) && _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2"); return 0; } }, $scope0_id, "#text/0", _serialize_guard($scope0_reason, 0), $sg__input_show, $sg__input_show); _html("after"); - _serialize_if($scope0_reason, 1) && writeScope($scope0_id, { input_color: input.color }, "__tests__/template.marko", 0, { input_color: ["input.color"] }); + _serialize_if($scope0_reason, 1) && _scope($scope0_id, { input_color: input.color }, "__tests__/template.marko", 0, { input_color: ["input.color"] }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-conditional/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-conditional/__snapshots__/html.bundle.js index 12cb69b2d93..3c50206f48c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-conditional/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-conditional/__snapshots__/html.bundle.js @@ -6,10 +6,10 @@ var template_default = _template("a", (input) => { if (input.show) { const $scope1_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.color)};`)}${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 2))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 2) && _scope_with_id($scope0_id) }); + _serialize_if($scope0_reason, 0) && _scope($scope1_id, { _: _serialize_if($scope0_reason, 2) && _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", _serialize_guard($scope0_reason, 0), $sg__input_show, $sg__input_show); _html("after"); - _serialize_if($scope0_reason, 1) && writeScope($scope0_id, { e: input.color }); + _serialize_if($scope0_reason, 1) && _scope($scope0_id, { e: input.color }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-injection/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-injection/__snapshots__/html.bundle.debug.js index 02444483658..6c535eadd92 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-injection/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-injection/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19injection-1btemplate-1amarko_0:${_escape_style_value(input.color)};`)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-injection/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-injection/__snapshots__/html.bundle.js index d8f4c477104..7694e91e45d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-injection/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-injection/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.color)};`)}${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-multi/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-multi/__snapshots__/html.bundle.debug.js index b6289cd20f9..bb839110139 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-multi/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-multi/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19multi-1btemplate-1amarko_0:${_escape_style_value(input.color)};--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19multi-1btemplate-1amarko_1:${_escape_style_value(input.width)};`)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 0))}
    Header
    Main
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-multi/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-multi/__snapshots__/html.bundle.js index e8af540052a..46d925b35fb 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-multi/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-multi/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.color)};--M_a1:${_escape_style_value(input.width)};`)}${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}
    Header
    Main
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-selectors/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-selectors/__snapshots__/html.bundle.debug.js index 8773783be8b..cdf5f1f84d3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-selectors/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-selectors/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19selectors-1btemplate-1amarko_0:${_escape_style_value(input.color)};--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19selectors-1btemplate-1amarko_1:${_escape_style_value(input.pad)};--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19selectors-1btemplate-1amarko_2:${_escape_style_value(input.hover)};--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19selectors-1btemplate-1amarko_3:${_escape_style_value(input.wide)};`)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 0))}
    Card
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-selectors/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-selectors/__snapshots__/html.bundle.js index 934ac01812f..1193c61f3f4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-selectors/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-selectors/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.color)};--M_a1:${_escape_style_value(input.pad)};--M_a2:${_escape_style_value(input.hover)};--M_a3:${_escape_style_value(input.wide)};`)}${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}
    Card
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-shorthand/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-shorthand/__snapshots__/html.bundle.debug.js index 82212b5d00d..503346f854f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-shorthand/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-shorthand/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19shorthand-1btemplate-1amarko_0:${_escape_style_value(input.block)};--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19shorthand-1btemplate-1amarko_1:${_escape_style_value(input.inline)};`)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-shorthand/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-shorthand/__snapshots__/html.bundle.js index ceebd99636b..77334da280c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-shorthand/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-shorthand/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.block)};--M_a1:${_escape_style_value(input.inline)};`)}${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-static-mix/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-static-mix/__snapshots__/html.bundle.debug.js index fa845dd4a78..1d812f85166 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-static-mix/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-static-mix/__snapshots__/html.bundle.debug.js @@ -7,5 +7,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19static-19mix-1btemplate-1amarko_0:${_escape_style_value(input.color)};--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19static-19mix-1btemplate-1amarko_1:${_escape_style_value(GAP)};`)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-static-mix/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-static-mix/__snapshots__/html.bundle.js index 869d068f809..defe10eaf23 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-static-mix/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-static-mix/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.color)};--M_a1:${_escape_style_value(GAP)};`)}${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-svg/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-svg/__snapshots__/html.bundle.debug.js index 4e311f071f9..6305902f9c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-svg/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-svg/__snapshots__/html.bundle.debug.js @@ -8,6 +8,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let color = input.color; _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19svg-1btemplate-1amarko_0:${_escape_style_value(color)};`)}${_el_resume($scope0_id, "#style/0")}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-svg/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-svg/__snapshots__/html.bundle.js index 44ed3f014e8..7c16396af62 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-svg/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-svg/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let color = input.color; _html(`${_style_html(`--M_a0:${_escape_style_value(color)};`)}${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-two-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-two-tags/__snapshots__/html.bundle.debug.js index fb6cba7309e..4b95690046f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-two-tags/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-two-tags/__snapshots__/html.bundle.debug.js @@ -9,5 +9,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19two-19tags-1btemplate-1amarko_0:${_escape_style_value(input.a)};`)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 1))}${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-19two-19tags-1btemplate-1amarko_1:${_escape_style_value(input.b)};`)}${_el_resume($scope0_id, "#style/1", _serialize_guard($scope0_reason, 2))}
    A
    B
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-two-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-two-tags/__snapshots__/html.bundle.js index 861cb23383a..de47da644f1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-two-tags/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-two-tags/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.a)};`)}${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 1))}${_style_html(`--M_a1:${_escape_style_value(input.b)};`)}${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}
    A
    B
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic/__snapshots__/html.bundle.debug.js index 0b5f0594a15..6de9013de31 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19dynamic-1btemplate-1amarko_0:${_escape_style_value(input.color)};`)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 0))}
    Hello
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic/__snapshots__/html.bundle.js index 7f79801a0af..eac7e3e3875 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.color)};`)}${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}
    Hello
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-escapes/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-escapes/__snapshots__/html.bundle.debug.js index 8e00cd23b72..8354b66792b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-escapes/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-escapes/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19escapes-1btemplate-1amarko_0:${_escape_style_value(input.color)};`)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-escapes/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-escapes/__snapshots__/html.bundle.js index d8f4c477104..7694e91e45d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-escapes/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-escapes/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.color)};`)}${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-unbalanced-closers/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-unbalanced-closers/__snapshots__/html.bundle.debug.js index 768f0e099d6..16e3cfe8636 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-unbalanced-closers/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-unbalanced-closers/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_packages-1bruntime-19tags-1bsrc-1b__tests__-1bfixtures-1bstyle-19tag-19unbalanced-19closers-1btemplate-1amarko_0:${_escape_style_value(input.color)};`)}${_el_resume($scope0_id, "#style/0", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/style-tag-unbalanced-closers/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/style-tag-unbalanced-closers/__snapshots__/html.bundle.js index d8f4c477104..7694e91e45d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/style-tag-unbalanced-closers/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/style-tag-unbalanced-closers/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_style_html(`--M_a0:${_escape_style_value(input.color)};`)}${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}
    Hi
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/svg-camelcase-accessors/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/svg-camelcase-accessors/__snapshots__/html.bundle.debug.js index 130e7a20e32..70e64e3abef 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/svg-camelcase-accessors/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/svg-camelcase-accessors/__snapshots__/html.bundle.debug.js @@ -9,12 +9,12 @@ var template_default = _template("__tests__/template.marko", (input) => { if (show) { const $scope1_id = _scope_id(); _html(""); - writeScope($scope1_id, {}, "__tests__/template.marko", "8:6"); + _scope($scope1_id, {}, "__tests__/template.marko", "8:6"); return 0; } }, $scope0_id, "#clippath/1", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "2:6" }); + _scope($scope0_id, { show }, "__tests__/template.marko", 0, { show: "2:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/svg-camelcase-accessors/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/svg-camelcase-accessors/__snapshots__/html.bundle.js index bc51e7730eb..29bf3a19735 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/svg-camelcase-accessors/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/svg-camelcase-accessors/__snapshots__/html.bundle.js @@ -9,12 +9,12 @@ var template_default = _template("a", (input) => { { const $scope1_id = _scope_id(); _html(""); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b", 1, 1, 1, "", 1); _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: show }); + _scope($scope0_id, { e: show }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/svg-math-empty/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/svg-math-empty/__snapshots__/html.bundle.debug.js index 836f72e182e..ae869aab52d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/svg-math-empty/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/svg-math-empty/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/svg-math-empty/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/svg-math-empty/__snapshots__/html.bundle.js index b0475facaf2..989f9f07624 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/svg-math-empty/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/svg-math-empty/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-name-type-unions/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/tag-name-type-unions/__snapshots__/html.bundle.debug.js index 234821ee887..9192405c880 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-name-type-unions/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-name-type-unions/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var a_default = _template("__tests__/tags/a/index.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    A ${_text_resume($scope0_id, "#text/0", input.label, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/a/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/a/index.marko", 0); }); // tags/b/index.marko @@ -11,7 +11,7 @@ var b_default = _template("__tests__/tags/b/index.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    B ${_text_resume($scope0_id, "#text/0", input.label, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/b/index.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/b/index.marko", 0); }); // template.marko @@ -44,6 +44,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }, $scope0_id)); _dynamic_tag($scope0_id, "#text/6", x ? localTag : a_default, { label: "la" }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "4:6" }); + _scope($scope0_id, { x }, "__tests__/template.marko", 0, { x: "4:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-name-type-unions/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-name-type-unions/__snapshots__/html.bundle.js index f413f44197b..8aa3e1d5ea8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-name-type-unions/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-name-type-unions/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var a_default = _template("b", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    A ${_text_resume($scope0_id, "a", input.label, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/b/index.marko @@ -11,7 +11,7 @@ var b_default = _template("c", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    B ${_text_resume($scope0_id, "a", input.label, _serialize_guard($scope0_reason, 0) * 2)}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko @@ -44,6 +44,6 @@ var template_default = _template("a", (input) => { }, $scope0_id)); _dynamic_tag($scope0_id, "g", localTag, { label: "la" }); _script($scope0_id, "a4"); - writeScope($scope0_id, { h: x }); + _scope($scope0_id, { h: x }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/html.bundle.debug.js index 286ef0004a9..bb5a1b67897 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope3_id = _scope_id(); const $scope3_reason = _scope_reason(); _dynamic_tag($scope3_id, "#text/0", input.content, [input.value], 0, 1, _serialize_guard($scope3_reason, 0)); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, { + _serialize_if($scope3_reason, 0) && _scope($scope3_id, { input_content: _serialize_if($scope3_reason, 2) && input.content, input_value: _serialize_if($scope3_reason, 1) && input.value }, "__tests__/template.marko", "3:2", { @@ -28,15 +28,15 @@ var template_default = _template("__tests__/template.marko", (input) => { if (v) { const $scope2_id = _scope_id(); _html(_escape(a)); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "10:4"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "10:4"); return 0; } }, $scope1_id, "#text/0", $sg__v, $sg__v, $sg__v, 0, 1); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "9:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "9:2"); }, $scope0_id) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, a, "#childScope/1": _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/html.bundle.js index 0f650f02be8..1d48aa8bd74 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-param-if-closure/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { const $scope3_id = _scope_id(); const $scope3_reason = _scope_reason(); _dynamic_tag($scope3_id, "a", input.content, [input.value], 0, 1, _serialize_guard($scope3_reason, 0)); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, { + _serialize_if($scope3_reason, 0) && _scope($scope3_id, { d: _serialize_if($scope3_reason, 2) && input.content, e: _serialize_if($scope3_reason, 1) && input.value }); @@ -25,15 +25,15 @@ var template_default = _template("a", (input) => { if (v) { const $scope2_id = _scope_id(); _html(_escape(a)); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); return 0; } }, $scope1_id, "a", $sg__v, $sg__v, $sg__v, 0, 1); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id) }); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { c: count, d: a, b: _existing_scope($childScope) diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/html.bundle.debug.js index 80926320d79..5f5d9108475 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/html.bundle.debug.js @@ -11,6 +11,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let unused = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/html.bundle.js index b0995b9ee57..b55ab84f3c3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-destructure/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-distinct-refs/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-distinct-refs/__snapshots__/html.bundle.debug.js index b2e83021168..406511672af 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-distinct-refs/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-distinct-refs/__snapshots__/html.bundle.debug.js @@ -10,5 +10,5 @@ var template_default = _template("__tests__/template.marko", (input) => { }; _html(`
    first
    ${_el_resume($scope0_id, "#div/0")}
    second
    ${_el_resume($scope0_id, "#div/1")}`); _script($scope0_id, "__tests__/template.marko_0_box#2"); - writeScope($scope0_id, { box }, "__tests__/template.marko", 0, { box: "3:8" }); + _scope($scope0_id, { box }, "__tests__/template.marko", 0, { box: "3:8" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-distinct-refs/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-distinct-refs/__snapshots__/html.bundle.js index 299ed34dcf9..4b055a9be3c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-distinct-refs/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-distinct-refs/__snapshots__/html.bundle.js @@ -8,5 +8,5 @@ var template_default = _template("a", (input) => { }; _html(`
    first
    ${_el_resume($scope0_id, "a")}
    second
    ${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a2"); - writeScope($scope0_id, { c: box }); + _scope($scope0_id, { c: box }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/html.bundle.debug.js index c744b30ba44..91a40c4b8a5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/html.bundle.debug.js @@ -10,6 +10,6 @@ var template_default = _template("__tests__/template.marko", (input) => { const { a, ...partialObj } = obj; _html(`
    ${_text_resume($scope0_id, "#text/0", JSON.stringify(obj))}
    ${_text_resume($scope0_id, "#text/1", JSON.stringify(partialObj))}
    ${_text_resume($scope0_id, "#text/2", a)}
    ${_text_resume($scope0_id, "#text/3", partialObj.b)}
    ${_text_resume($scope0_id, "#text/4", partialObj.a === undefined ? "removed a" : "didn't remove a")}
    ${_el_resume($scope0_id, "#button/5")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/html.bundle.js index fa220ec83bb..008f1508b12 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/html.bundle.js @@ -10,6 +10,6 @@ var template_default = _template("a", (input) => { const { a, ...partialObj } = obj; _html(`
    ${_text_resume($scope0_id, "a", JSON.stringify(obj))}
    ${_text_resume($scope0_id, "b", JSON.stringify(partialObj))}
    ${_text_resume($scope0_id, "c", a)}
    ${_text_resume($scope0_id, "d", partialObj.b)}
    ${_text_resume($scope0_id, "e", partialObj.a === void 0 ? "removed a" : "didn't remove a")}
    ${_el_resume($scope0_id, "f")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/html.bundle.debug.js index 18a1c66c0c9..dfcb913a099 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/html.bundle.debug.js @@ -6,12 +6,12 @@ var child_default = _template("__tests__/tags/child.marko", (input) => { if (input.value) { const $scope1_id = _scope_id(); _html(""); - $si__input_value && writeScope($scope1_id, {}, "__tests__/tags/child.marko", "1:2"); + $si__input_value && _scope($scope1_id, {}, "__tests__/tags/child.marko", "1:2"); return 0; } }, $scope0_id, "#text/0", $sg__input_value, $sg__input_value, $sg__input_value, 0, 1); const $return = 1; - $si__input_value && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0); + $si__input_value && _scope($scope0_id, {}, "__tests__/tags/child.marko", 0); return $return; }); @@ -26,7 +26,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let x = child_default({ value: count }); _var($scope0_id, "#scopeOffset/3", $childScope, "__tests__/template.marko_0_x#6/var"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { count, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { count: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/html.bundle.js index 6fe0c03e753..0faa18d5548 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/html.bundle.js @@ -6,12 +6,12 @@ var child_default = _template("b", (input) => { if (input.value) { const $scope1_id = _scope_id(); _html(""); - $si__input_value && writeScope($scope1_id, {}); + $si__input_value && _scope($scope1_id, {}); return 0; } }, $scope0_id, "a", $sg__input_value, $sg__input_value, $sg__input_value, 0, 1); const $return = 1; - $si__input_value && writeScope($scope0_id, {}); + $si__input_value && _scope($scope0_id, {}); return $return; }); @@ -26,7 +26,7 @@ var template_default = _template("a", (input) => { child_default({ value: count }); _var($scope0_id, "d", $childScope, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { + _scope($scope0_id, { e: count, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tags-dir-nested-discovery/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/tags-dir-nested-discovery/__snapshots__/html.bundle.debug.js index 455a409bf27..712eac91e23 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tags-dir-nested-discovery/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tags-dir-nested-discovery/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var greeting_default = _template("__tests__/tags/util/greeting.marko", (input) = const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`

    Hello, ${_text_resume($scope0_id, "#text/0", input.name, _serialize_guard($scope0_reason, 0) * 2)}!

    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/util/greeting.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/util/greeting.marko", 0); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/tags-dir-nested-discovery/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tags-dir-nested-discovery/__snapshots__/html.bundle.js index b7c86022e58..22dd8b475bf 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tags-dir-nested-discovery/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tags-dir-nested-discovery/__snapshots__/html.bundle.js @@ -10,7 +10,7 @@ var greeting_default = _template("c", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`

    Hello, ${_text_resume($scope0_id, "a", input.name, _serialize_guard($scope0_reason, 0) * 2)}!

    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // template.marko diff --git a/packages/runtime-tags/src/__tests__/fixtures/tags-dir-recursive/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/tags-dir-recursive/__snapshots__/html.bundle.debug.js index 0964a5d3ff5..09e1f7be7ea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tags-dir-recursive/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tags-dir-recursive/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ const $content = (input) => { _set_serialize_reason($sg__input_depth); const $childScope = _peek_scope_id(); $content({ depth: input.depth - 1 }); - $si__input_depth && writeScope($scope1_id, { + $si__input_depth && _scope($scope1_id, { _: _scope_with_id($scope0_id), "#childScope/0": _existing_scope($childScope) }, "__tests__/tags/tree/index.marko", "3:4"); @@ -17,7 +17,7 @@ const $content = (input) => { } }, $scope0_id, "#text/1", $sg__input_depth, $sg__input_depth, $sg__input_depth, 0, 1); _html(""); - $si__input_depth && writeScope($scope0_id, { input_depth: input.depth }, "__tests__/tags/tree/index.marko", 0, { input_depth: ["input.depth"] }); + $si__input_depth && _scope($scope0_id, { input_depth: input.depth }, "__tests__/tags/tree/index.marko", 0, { input_depth: ["input.depth"] }); }; var tree_default = _template("__tests__/tags/tree/index.marko", $content); @@ -31,7 +31,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $childScope = _peek_scope_id(); tree_default({ depth: n }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { n, "#childScope/2": _existing_scope($childScope) }, "__tests__/template.marko", 0, { n: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/tags-dir-recursive/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/tags-dir-recursive/__snapshots__/html.bundle.js index f8a4cabfe8e..5f04cd84e73 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/tags-dir-recursive/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/tags-dir-recursive/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ const $content = (input) => { _set_serialize_reason($sg__input_depth); const $childScope = _peek_scope_id(); $content({ depth: input.depth - 1 }); - $si__input_depth && writeScope($scope1_id, { + $si__input_depth && _scope($scope1_id, { _: _scope_with_id($scope0_id), a: _existing_scope($childScope) }); @@ -17,7 +17,7 @@ const $content = (input) => { } }, $scope0_id, "b", $sg__input_depth, $sg__input_depth, $sg__input_depth, 0, 1); _html(""); - $si__input_depth && writeScope($scope0_id, { e: input.depth }); + $si__input_depth && _scope($scope0_id, { e: input.depth }); }; var tree_default = _template("b", $content); @@ -31,7 +31,7 @@ var template_default = _template("a", (input) => { const $childScope = _peek_scope_id(); tree_default({ depth: n }); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { d: n, c: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/dom.bundle.debug.js index e8643e11ede..b602c175e95 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/dom.bundle.debug.js @@ -2,7 +2,7 @@ const $template = "
    t--z
    "; const $walks = " b b Db%l"; const $d = /*@__PURE__*/ _let("d/4", ($scope) => { - _attr_input_value_default($scope, "#textarea/1", `a-${$scope.d}-b`); + _attr_textarea_value_default($scope, "#textarea/1", `a-${$scope.d}-b`); _attr($scope["#div/2"], "id", `id-${$scope.d}`); _attr($scope["#div/2"], "data-x", `${$scope.d}`); _text($scope["#text/3"], `${$scope.d}`); diff --git a/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/html.bundle.debug.js index b2c013f88ab..51d0587a582 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let d = "y"; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#textarea/1")}t-${_text_resume($scope0_id, "#text/3", `${d}`, 2)}-z${_el_resume($scope0_id, "#div/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { d }, "__tests__/template.marko", 0, { d: "1:6" }); + _scope($scope0_id, { d }, "__tests__/template.marko", 0, { d: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/html.bundle.js index 4eb6be5d35e..b6a134eccfe 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/template-literal-writes/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let d = "y"; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}t-${_text_resume($scope0_id, "d", `${d}`, 2)}-z${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: d }); + _scope($scope0_id, { e: d }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/html.bundle.debug.js index 3b42ba451ac..13382296dc9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`
    ${_el_resume($scope0_id, "#button/0")}
    `); _script($scope0_id, "__tests__/template.marko_0"); _script($scope0_id, "__tests__/template.marko_0_clickCount#1"); - writeScope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); + _scope($scope0_id, { clickCount }, "__tests__/template.marko", 0, { clickCount: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/html.bundle.js index 718c8682edc..c8ff50442f4 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { _html(`
    ${_el_resume($scope0_id, "a")}
    `); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { b: clickCount }); + _scope($scope0_id, { b: clickCount }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/text-escape-coverage/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/text-escape-coverage/__snapshots__/html.bundle.debug.js index 605e67d41b1..69eb7289a47 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/text-escape-coverage/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/text-escape-coverage/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.a ? null : 1, _serialize_guard($scope0_reason, 1))}
    ${_text_resume($scope0_id, "#text/1", input.b ? true : "x
    before mid ${_text_resume($scope0_id, "#text/2", `${input.c}`, _serialize_guard($scope0_reason, 3) * 2)} end after
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/text-escape-coverage/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/text-escape-coverage/__snapshots__/html.bundle.js index ca4a79200da..37fff352b1f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/text-escape-coverage/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/text-escape-coverage/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.a ? null : 1, _serialize_guard($scope0_reason, 1))}
    ${_text_resume($scope0_id, "b", input.b ? true : "x
    before mid ${_text_resume($scope0_id, "c", `${input.c}`, _serialize_guard($scope0_reason, 3) * 2)} end after
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/text-only-tag-escape/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/text-only-tag-escape/__snapshots__/html.bundle.debug.js index 256afb7b3ba..71d8674e9b7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/text-only-tag-escape/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/text-only-tag-escape/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let name = "world"; _html(`back\\slash ${_escape(name)}${_el_resume($scope0_id, "#title/0")}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/text-only-tag-escape/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/text-only-tag-escape/__snapshots__/html.bundle.js index fbd4cced15f..31a44972c53 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/text-only-tag-escape/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/text-only-tag-escape/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`back\\slash ${_escape("world")}${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-body-character-references/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-body-character-references/__snapshots__/dom.bundle.debug.js index f7b34095336..d6b84134379 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-body-character-references/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-body-character-references/__snapshots__/dom.bundle.debug.js @@ -1,10 +1,10 @@ // template.marko const $template = "<p>hi & bye"; const $walks = " b c b"; -const $v = /*@__PURE__*/ _let("v/3", ($scope) => _attr_input_value_default($scope, "#textarea/1", `

    ${$scope.v}`)); +const $v = /*@__PURE__*/ _let("v/3", ($scope) => _attr_textarea_value_default($scope, "#textarea/1", `

    ${$scope.v}`)); function $setup($scope) { - _attr_input_value_default($scope, "#textarea/0", "

    hi & bye"); - _attr_input_value_default($scope, "#textarea/2", "<p>hi"); + _attr_textarea_value_default($scope, "#textarea/0", "

    hi & bye"); + _attr_textarea_value_default($scope, "#textarea/2", "<p>hi"); $v($scope, "x"); } var template_default = /*@__PURE__*/ _template("__tests__/template.marko", $template, $walks, $setup); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.debug.js index 55c62a73fa7..e59a213dc61 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/dom.bundle.debug.js @@ -1,7 +1,7 @@ // template.marko const $template = ""; const $walks = " b b"; -const $value = /*@__PURE__*/ _let("value/2", ($scope) => _attr_input_value_default($scope, "#textarea/0", $scope.value)); +const $value = /*@__PURE__*/ _let("value/2", ($scope) => _attr_textarea_value_default($scope, "#textarea/0", $scope.value)); const $setup__script = _script("__tests__/template.marko_0", ($scope) => _on($scope["#button/1"], "click", function() { $value($scope, "after"); })); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/html.bundle.debug.js index 007f1a47620..2332d625a06 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = "before"; _html(`${_el_resume($scope0_id, "#textarea/0")}${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/html.bundle.js index e8194460be5..8485ce37b45 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-dynamic-text/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/dom.bundle.debug.js index a0ecde3e0fb..7bdf86a3d9b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/dom.bundle.debug.js @@ -1,14 +1,14 @@ // template.marko const $template = "

    "; const $walks = " b b bD l"; -const $bound = /*@__PURE__*/ _let("bound/7", ($scope) => _attr_input_value($scope, "#textarea/1", $scope.bound, $valueChange($scope))); +const $bound = /*@__PURE__*/ _let("bound/7", ($scope) => _attr_textarea_value($scope, "#textarea/1", $scope.bound, $valueChange($scope))); const $input_v = /*@__PURE__*/ _const("input_v", ($scope) => { - _attr_input_value_default($scope, "#textarea/0", $scope.input_v); - _attr_input_value_default($scope, "#textarea/2", $scope.input_v); + _attr_textarea_value_default($scope, "#textarea/0", $scope.input_v); + _attr_textarea_value_default($scope, "#textarea/2", $scope.input_v); _text($scope["#text/3"], $scope.input_v); $bound($scope, $scope.input_v); }); -const $setup__script = _script("__tests__/template.marko_0", ($scope) => _attr_input_value_script($scope, "#textarea/1")); +const $setup__script = _script("__tests__/template.marko_0", ($scope) => _attr_textarea_value_script($scope, "#textarea/1")); const $setup = $setup__script; const $input = ($scope, input) => $input_v($scope, input.v); const $valueChange = ($scope) => (_new_bound) => { diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/html.bundle.debug.js index 0f772c30a78..5a537a80d64 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/html.bundle.debug.js @@ -7,6 +7,6 @@ var template_default = _template("__tests__/template.marko", (input) => { bound = _new_bound; }, "__tests__/template.marko_0/valueChange", $scope0_id))}${_el_resume($scope0_id, "#textarea/1")}${_el_resume($scope0_id, "#textarea/2", $sg__input_v)}

    ${_text_resume($scope0_id, "#text/3", input.v, $sg__input_v)}

    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#textarea/1": ["valueChange"] }); + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#textarea/1": ["valueChange"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/html.bundle.js index a4b7b724398..4866d842b88 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-leading-newline/__snapshots__/html.bundle.js @@ -7,6 +7,6 @@ var template_default = _template("a", (input) => { bound = _new_bound; }, "a0", $scope0_id))}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c", $sg__input_v)}

    ${_text_resume($scope0_id, "d", input.v, $sg__input_v)}

    `); _script($scope0_id, "a1"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/html.bundle.debug.js index 81526f30355..58ce8b48454 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $textarea_input = input; _html(`${_attr_textarea_value($scope0_id, "#textarea/0", $textarea_input.value, $textarea_input.valueChange, 1)}${_el_resume($scope0_id, "#textarea/0")}`); _script($scope0_id, "__tests__/template.marko_0_input#2"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0, { + _scope($scope0_id, {}, "__tests__/template.marko", 0, { "ControlledHandler:#textarea/0": ["...input", "1:14"], "EventAttributes:#textarea/0": ["...input", "1:14"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/html.bundle.js index 79c0dac599d..22435f30645 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-spread/__snapshots__/html.bundle.js @@ -5,5 +5,5 @@ var template_default = _template("a", (input) => { const $textarea_input = input; _html(`${_attr_textarea_value($scope0_id, "a", $textarea_input.value, $textarea_input.valueChange, 1)}${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/dom.bundle.debug.js index 9c4d66d1a6a..796a9d09ca8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/dom.bundle.debug.js @@ -3,7 +3,7 @@ const $template = ""; const $walks = " Db%l b"; const $n = /*@__PURE__*/ _let("n/3", ($scope) => { _text($scope["#text/1"], $scope.n); - _attr_input_value_default($scope, "#textarea/2", `premid-${$scope.n}-postend`); + _attr_textarea_value_default($scope, "#textarea/2", `premid-${$scope.n}-postend`); }); const $setup__script = _script("__tests__/template.marko_0", ($scope) => _on($scope["#button/0"], "click", function() { $n($scope, +$scope.n + 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/html.bundle.debug.js index 2c5c558155f..5ad70bb9e43 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "#button/0")}${_el_resume($scope0_id, "#textarea/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/html.bundle.js index 8fbbe239b26..d2aa537bb08 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-template-literal-placeholder/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { d: n }); + _scope($scope0_id, { d: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-value-leading-newline/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-value-leading-newline/__snapshots__/dom.bundle.debug.js index 4e38b160e5c..a696515ad81 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-value-leading-newline/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-value-leading-newline/__snapshots__/dom.bundle.debug.js @@ -2,6 +2,6 @@ const $template = ""; const $walks = " b"; function $setup($scope) { - _attr_input_value_default($scope, "#textarea/0", "hello"); + _attr_textarea_value_default($scope, "#textarea/0", "hello"); } var template_default = /*@__PURE__*/ _template("__tests__/template.marko", $template, " b", $setup); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/dom.bundle.debug.js index 9255010b7e6..1dd448323c1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/dom.bundle.debug.js @@ -2,6 +2,6 @@ const $template = ""; const $walks = " b"; const $setup = () => {}; -const $input_name = /*@__PURE__*/ _const("input_name", ($scope) => _attr_input_value_default($scope, "#textarea/0", `[AB]${$scope.input_name}[!]`)); +const $input_name = /*@__PURE__*/ _const("input_name", ($scope) => _attr_textarea_value_default($scope, "#textarea/0", `[AB]${$scope.input_name}[!]`)); const $input = ($scope, input) => $input_name($scope, input.name); var template_default = /*@__PURE__*/ _template("__tests__/template.marko", $template, " b", 0, $input); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/html.bundle.debug.js index b272a254ebe..7a08ee40211 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#textarea/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/html.bundle.js index a471a3f7339..8bcdb6ffa6f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/textarea-value-template-escape/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/html.bundle.debug.js index d2d062971cf..caabc3ea877 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`Count is ${_escape(count)}${_el_resume($scope0_id, "#title/0")}${_el_resume($scope0_id, "#button/1")}
    ${_el_resume($scope0_id, "#div/2")}`); _script($scope0_id, "__tests__/template.marko_0_count#3"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); + _scope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/html.bundle.js index 35850d4be94..d00ac247a47 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/title-counter/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { _html(`Count is ${_escape(count)}${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}
    ${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { d: count }); + _scope($scope0_id, { d: count }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/title-multiple-placeholders/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/title-multiple-placeholders/__snapshots__/html.bundle.debug.js index 6a21e808864..048f900a0ea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/title-multiple-placeholders/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/title-multiple-placeholders/__snapshots__/html.bundle.debug.js @@ -5,7 +5,7 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "#button/0")}${_escape(input.a)} - ${_escape(n)}${_el_resume($scope0_id, "#title/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_a: input.a, n }, "__tests__/template.marko", 0, { diff --git a/packages/runtime-tags/src/__tests__/fixtures/title-multiple-placeholders/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/title-multiple-placeholders/__snapshots__/html.bundle.js index 1b0e3586bee..42009b38896 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/title-multiple-placeholders/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/title-multiple-placeholders/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var template_default = _template("a", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "a")}${_escape(input.a)} - ${_escape(n)}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { + _scope($scope0_id, { f: input.a, g: n }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-first-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-first-child/__snapshots__/html.bundle.debug.js index e8a3be3c47b..c3be63d1537 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-first-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-first-child/__snapshots__/html.bundle.debug.js @@ -8,10 +8,10 @@ var template_default = _template("__tests__/template.marko", (input) => { if (value) { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", value, $sg__input_value)}`); - $si__input_value && writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:4"); + $si__input_value && _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:4"); return 0; } }, $scope0_id, "#text/0", $sg__input_value, $sg__input_value, $sg__input_value, 0, 1); _html("
    "); - $si__input_value && writeScope($scope0_id, { value }, "__tests__/template.marko", 0, { value: "1:10" }); + $si__input_value && _scope($scope0_id, { value }, "__tests__/template.marko", 0, { value: "1:10" }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-first-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-first-child/__snapshots__/html.bundle.js index 4999f22e051..9a01961fb90 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-first-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-first-child/__snapshots__/html.bundle.js @@ -8,10 +8,10 @@ var template_default = _template("a", (input) => { if (value) { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "a", value, $sg__input_value)}`); - $si__input_value && writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + $si__input_value && _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", $sg__input_value, $sg__input_value, $sg__input_value, 0, 1); _html("
    "); - $si__input_value && writeScope($scope0_id, { d: value }); + $si__input_value && _scope($scope0_id, { d: value }); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/html.bundle.debug.js index 5dcffab657f..2378d732896 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/html.bundle.debug.js @@ -16,18 +16,18 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); _html(`${_el_resume($scope2_id, "#button/0")}`); _script($scope2_id, "__tests__/template.marko_2"); - _subscribe($count__closures, writeScope($scope2_id, {}, "__tests__/template.marko", "8:6")); + _subscribe($count__closures, _scope($scope2_id, {}, "__tests__/template.marko", "8:6")); return 0; } }, $scope1_id, "#text/1", 1, 1, 1, 0, 1); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:4"); return 0; } }, $scope0_id, "#text/1"); _html(""); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { outer, inner, count, diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/html.bundle.js index 0ef4d15033c..1a49d7ca5ae 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-2/__snapshots__/html.bundle.js @@ -16,18 +16,18 @@ var template_default = _template("a", (input) => { const $scope2_id = _scope_id(); _html(`${_el_resume($scope2_id, "a")}`); _script($scope2_id, "a0"); - _subscribe($count__closures, writeScope($scope2_id, {})); + _subscribe($count__closures, _scope($scope2_id, {})); return 0; } }, $scope1_id, "b", 1, 1, 1, 0, 1); _script($scope1_id, "a1"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b"); _html(""); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { c: outer, d: inner, e: count, diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/html.bundle.debug.js index f08f2587c9e..6502832a7d5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/html.bundle.debug.js @@ -16,18 +16,18 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); _html(`${_el_resume($scope2_id, "#button/0")}`); _script($scope2_id, "__tests__/template.marko_2"); - _subscribe($count__closures, writeScope($scope2_id, {}, "__tests__/template.marko", "8:6")); + _subscribe($count__closures, _scope($scope2_id, {}, "__tests__/template.marko", "8:6")); return 0; } }, $scope1_id, "#text/1", 1, 1, 1, 0, 1); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:4"); return 0; } }, $scope0_id, "#text/1"); _html(" hello"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { outer, inner, count, diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/html.bundle.js index 7ad084ebb39..085347f8b29 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested-3/__snapshots__/html.bundle.js @@ -16,18 +16,18 @@ var template_default = _template("a", (input) => { const $scope2_id = _scope_id(); _html(`${_el_resume($scope2_id, "a")}`); _script($scope2_id, "a0"); - _subscribe($count__closures, writeScope($scope2_id, {})); + _subscribe($count__closures, _scope($scope2_id, {})); return 0; } }, $scope1_id, "b", 1, 1, 1, 0, 1); _script($scope1_id, "a1"); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b"); _html(" hello"); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { c: outer, d: inner, e: count, diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested/__snapshots__/html.bundle.debug.js index 5262f939ea2..7a0e024cf0c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested/__snapshots__/html.bundle.debug.js @@ -13,7 +13,7 @@ var template_default = _template("__tests__/template.marko", (input) => { if (value1) { const $scope2_id = _scope_id(); _html(`${_text_resume($scope2_id, "#text/0", value1, $sg__input_value)}`); - $si__input_show__OR__input_value && _subscribe($si__input_value && $value__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "4:6")); + $si__input_show__OR__input_value && _subscribe($si__input_value && $value__closures, _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "4:6")); return 0; } }, $scope1_id, "#text/0", $sg__input_value, $sg__input_value, $sg__input_value1__OR__input_value, 0, 1); @@ -21,15 +21,15 @@ var template_default = _template("__tests__/template.marko", (input) => { if (value2) { const $scope3_id = _scope_id(); _html(`${_text_resume($scope3_id, "#text/0", value2, $sg__input_value2)}`); - $si__input_show__OR__input_value2 && _subscribe($si__input_value2 && $value2__closures, writeScope($scope3_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "5:6")); + $si__input_show__OR__input_value2 && _subscribe($si__input_value2 && $value2__closures, _scope($scope3_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "5:6")); return 0; } }, $scope1_id, "#text/1", $sg__input_value2, $sg__input_value2, $sg__input_value1__OR__input_value, 0, 1); - $si__input_show__OR__input_value1__OR__input_value && writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:4"); + $si__input_show__OR__input_value1__OR__input_value && _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:4"); return 0; } }, $scope0_id, "#div/0", _serialize_guard($scope0_reason, 3), $sg__input_show, $sg__input_show, ""); - $si__input_show__OR__input_value1__OR__input_value && writeScope($scope0_id, { + $si__input_show__OR__input_value1__OR__input_value && _scope($scope0_id, { value1: $si__input_show__OR__input_value && value1, value2: $si__input_show__OR__input_value2 && value2, "ClosureScopes:value1": $si__input_value && $value__closures, diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested/__snapshots__/html.bundle.js index 129f9fd8d68..4e17d86403a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-nested/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-nested/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var template_default = _template("a", (input) => { if (value1) { const $scope2_id = _scope_id(); _html(`${_text_resume($scope2_id, "a", value1, $sg__input_value)}`); - $si__input_show__OR__input_value && _subscribe($si__input_value && $value__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })); + $si__input_show__OR__input_value && _subscribe($si__input_value && $value__closures, _scope($scope2_id, { _: _scope_with_id($scope1_id) })); return 0; } }, $scope1_id, "a", $sg__input_value, $sg__input_value, $sg__input_value1__OR__input_value, 0, 1); @@ -21,15 +21,15 @@ var template_default = _template("a", (input) => { if (value2) { const $scope3_id = _scope_id(); _html(`${_text_resume($scope3_id, "a", value2, $sg__input_value2)}`); - $si__input_show__OR__input_value2 && _subscribe($si__input_value2 && $value2__closures, writeScope($scope3_id, { _: _scope_with_id($scope1_id) })); + $si__input_show__OR__input_value2 && _subscribe($si__input_value2 && $value2__closures, _scope($scope3_id, { _: _scope_with_id($scope1_id) })); return 0; } }, $scope1_id, "b", $sg__input_value2, $sg__input_value2, $sg__input_value1__OR__input_value, 0, 1); - $si__input_show__OR__input_value1__OR__input_value && writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + $si__input_show__OR__input_value1__OR__input_value && _scope($scope1_id, { _: _scope_with_id($scope0_id) }); return 0; } }, $scope0_id, "a", _serialize_guard($scope0_reason, 3), $sg__input_show, $sg__input_show, ""); - $si__input_show__OR__input_value1__OR__input_value && writeScope($scope0_id, { + $si__input_show__OR__input_value1__OR__input_value && _scope($scope0_id, { e: $si__input_show__OR__input_value && value1, f: $si__input_show__OR__input_value2 && value2, g: $si__input_value && $value__closures, diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/html.bundle.debug.js index 2046d730592..6fd4e2a0600 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/html.bundle.debug.js @@ -7,10 +7,10 @@ var template_default = _template("__tests__/template.marko", (input) => { if (input.show) { const $scope1_id = _scope_id(); _html("0"); - _serialize_if($scope0_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "2:4"); + _serialize_if($scope0_reason, 0) && _scope($scope1_id, {}, "__tests__/template.marko", "2:4"); return 0; } }, $scope0_id, "#button/0", $sg__input_show, 1, $sg__input_show, "", 1); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/html.bundle.js index 06bd7a3c54d..e8820a2001b 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child-with-marker/__snapshots__/html.bundle.js @@ -7,10 +7,10 @@ var template_default = _template("a", (input) => { if (input.show) { const $scope1_id = _scope_id(); _html("0"); - _serialize_if($scope0_reason, 0) && writeScope($scope1_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope1_id, {}); return 0; } }, $scope0_id, "a", $sg__input_show, 1, $sg__input_show, "", 1); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/html.bundle.debug.js index 3a0ca69655c..e32f0704102 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/html.bundle.debug.js @@ -8,7 +8,7 @@ var template_default = _template("__tests__/template.marko", (input) => { if (value) { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "#text/0", value)}`); - writeScope($scope1_id, {}, "__tests__/template.marko", "4:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "4:4"); return 0; } }, $scope0_id, "#div/0", 1, 1, 1, "", 1); @@ -16,7 +16,7 @@ var template_default = _template("__tests__/template.marko", (input) => { value = _new_value; }, "__tests__/template.marko_0/valueChange", $scope0_id))}>${_el_resume($scope0_id, "#input/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { value }, "__tests__/template.marko", 0, { + _scope($scope0_id, { value }, "__tests__/template.marko", 0, { value: "1:6", "ControlledHandler:#input/1": ["valueChange"] }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/html.bundle.js index 89198b5b05e..0aac8632fab 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-only-child/__snapshots__/html.bundle.js @@ -8,7 +8,7 @@ var template_default = _template("a", (input) => { if (value) { const $scope1_id = _scope_id(); _html(`${_text_resume($scope1_id, "a", value)}`); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "a", 1, 1, 1, "", 1); @@ -16,6 +16,6 @@ var template_default = _template("a", (input) => { value = _new_value; }, "a0", $scope0_id))}>${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a1"); - writeScope($scope0_id, { f: value }); + _scope($scope0_id, { f: value }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/html.bundle.debug.js index fb3668fafbd..d1c8f3305b5 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/html.bundle.debug.js @@ -7,7 +7,7 @@ var counter_default = _template("__tests__/tags/counter.marko", (input) => { if (clickCount > 0) throw new Error("This should not have executed since the parent removes this component when the count is greater than 0"); })(), clickCount))}${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/counter.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { input_onCount: input.onCount, clickCount }, "__tests__/tags/counter.marko", 0, { @@ -32,10 +32,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("
    "); counter_default({ onCount }); _html("
    "); - writeScope($scope1_id, {}, "__tests__/template.marko", "6:4"); + _scope($scope1_id, {}, "__tests__/template.marko", "6:4"); return 0; } }, $scope0_id, "#div/0", 1, 1, 1, "", 1); - writeScope($scope0_id, { onCount }, "__tests__/template.marko", 0, { onCount: "2:8" }); + _scope($scope0_id, { onCount }, "__tests__/template.marko", 0, { onCount: "2:8" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/html.bundle.js index 4337e80e606..6bb5dad7fc8 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/toggle-stateful-component/__snapshots__/html.bundle.js @@ -5,7 +5,7 @@ var counter_default = _template("b", (input) => { let clickCount = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { + _scope($scope0_id, { e: input.onCount, f: clickCount }); @@ -27,10 +27,10 @@ var template_default = _template("a", (input) => { _html("
    "); counter_default({ onCount }); _html("
    "); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "a", 1, 1, 1, "", 1); - writeScope($scope0_id, { c: onCount }); + _scope($scope0_id, { c: onCount }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/html.bundle.debug.js index 44928a4b376..b3b98cfa090 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let toggle = false; _html(`${_flush_head()}${_el_resume($scope0_id, "#button/1")}${_el_resume($scope0_id, "#body/0")}`), _trailers(""); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { toggle }, "__tests__/template.marko", 0, { toggle: "1:5" }); + _scope($scope0_id, { toggle }, "__tests__/template.marko", 0, { toggle: "1:5" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/html.bundle.js index 343ce3dc879..78fc0dea1d3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/trailing-tag-dynamic-attr/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let toggle = false; _html(`${_flush_head()}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "a")}`), _trailers(""); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: toggle }); + _scope($scope0_id, { c: toggle }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-abort-disconnect/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-abort-disconnect/__snapshots__/html.bundle.debug.js index 0f7bb809a9e..e5b83413dae 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-abort-disconnect/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-abort-disconnect/__snapshots__/html.bundle.debug.js @@ -10,9 +10,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope1_id, "#text/0", input.a, (v) => { const $scope4_id = _scope_id(); _html(`

    A:${_text_resume($scope4_id, "#text/0", (console.log("body-ran:a", v), v), $sg__input_a * 2)}

    `); - $si__input_a && writeScope($scope4_id, {}, "__tests__/template.marko", "2:4"); + $si__input_a && _scope($scope4_id, {}, "__tests__/template.marko", "2:4"); }, $sg__input_a); - $si__input_a && _subscribe($input_a__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2")); + $si__input_a && _subscribe($input_a__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "1:2")); _resume_branch($scope1_id); }, $scope0_id), { catch: attrTag({ content: _content_resume("__tests__/template.marko_3*content", () => { _scope_reason(); @@ -25,16 +25,16 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope2_id, "#text/0", input.b, (v) => { const $scope6_id = _scope_id(); _html(`

    B:${_text_resume($scope6_id, "#text/0", (console.log("body-ran:b", v), v), $sg__input_b * 2)}

    `); - $si__input_b && writeScope($scope6_id, {}, "__tests__/template.marko", "8:4"); + $si__input_b && _scope($scope6_id, {}, "__tests__/template.marko", "8:4"); }, $sg__input_b); - $si__input_b && _subscribe($input_b__closures, writeScope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:2")); + $si__input_b && _subscribe($input_b__closures, _scope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:2")); _resume_branch($scope2_id); }, $scope0_id), { catch: attrTag({ content: _content_resume("__tests__/template.marko_5*content", () => { _scope_reason(); const $scope5_id = _scope_id(); _html("caught-b"); }, $scope0_id) }) }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { "ClosureScopes:input_a": $si__input_a && $input_a__closures, "ClosureScopes:input_b": $si__input_b && $input_b__closures }, "__tests__/template.marko", 0); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-abort-disconnect/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-abort-disconnect/__snapshots__/html.bundle.js index 6dd0efd2bcd..6c255c1f24c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-abort-disconnect/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-abort-disconnect/__snapshots__/html.bundle.js @@ -10,9 +10,9 @@ var template_default = _template("a", (input) => { _await($scope1_id, "a", input.a, (v) => { const $scope4_id = _scope_id(); _html(`

    A:${_text_resume($scope4_id, "a", (console.log("body-ran:a", v), v), $sg__input_a * 2)}

    `); - $si__input_a && writeScope($scope4_id, {}); + $si__input_a && _scope($scope4_id, {}); }, $sg__input_a); - $si__input_a && _subscribe($input_a__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + $si__input_a && _subscribe($input_a__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), { catch: attrTag({ content: _content_resume("a0", () => { _scope_reason(); @@ -25,16 +25,16 @@ var template_default = _template("a", (input) => { _await($scope2_id, "a", input.b, (v) => { const $scope6_id = _scope_id(); _html(`

    B:${_text_resume($scope6_id, "a", (console.log("body-ran:b", v), v), $sg__input_b * 2)}

    `); - $si__input_b && writeScope($scope6_id, {}); + $si__input_b && _scope($scope6_id, {}); }, $sg__input_b); - $si__input_b && _subscribe($input_b__closures, writeScope($scope2_id, { _: _scope_with_id($scope0_id) })); + $si__input_b && _subscribe($input_b__closures, _scope($scope2_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope2_id); }, $scope0_id), { catch: attrTag({ content: _content_resume("a2", () => { _scope_reason(); _scope_id(); _html("caught-b"); }, $scope0_id) }) }); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { + _serialize_if($scope0_reason, 0) && _scope($scope0_id, { g: $si__input_a && $input_a__closures, h: $si__input_b && $input_b__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/html.bundle.debug.js index aef858650f1..a4b5f955ee7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/html.bundle.debug.js @@ -13,10 +13,10 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`Async: ${_text_resume($scope4_id, "#text/0", value > 1 ? (() => { throw new Error("ERROR!"); })() : value, 2)}`); - writeScope($scope4_id, {}, "__tests__/template.marko", "11:4"); + _scope($scope4_id, {}, "__tests__/template.marko", "11:4"); }); _script($scope1_id, "__tests__/template.marko_1_clickCount#3"); - _subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:2")); + _subscribe($clickCount__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "7:2")); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_2*content", () => { @@ -28,11 +28,11 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope3_reason = _scope_reason(); const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "#text/0", err, _serialize_guard($scope3_reason, 0))); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, {}, "__tests__/template.marko", "17:4"); + _serialize_if($scope3_reason, 0) && _scope($scope3_id, {}, "__tests__/template.marko", "17:4"); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, "ClosureScopes:clickCount": $clickCount__closures }, "__tests__/template.marko", 0, { clickCount: "2:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/html.bundle.js index 3cb50773372..8d98ddbeaea 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/html.bundle.js @@ -13,10 +13,10 @@ var template_default = _template("a", (input) => { _html(`Async: ${_text_resume($scope4_id, "a", value > 1 ? (() => { throw new Error("ERROR!"); })() : value, 2)}`); - writeScope($scope4_id, {}); + _scope($scope4_id, {}); }); _script($scope1_id, "a3"); - _subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($clickCount__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a0", () => { @@ -28,11 +28,11 @@ var template_default = _template("a", (input) => { const $scope3_reason = _scope_reason(); const $scope3_id = _scope_id(); _html(_text_resume($scope3_id, "a", err, _serialize_guard($scope3_reason, 0))); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, {}); + _serialize_if($scope3_reason, 0) && _scope($scope3_id, {}); }, $scope0_id) }) }); _script($scope0_id, "a4"); - writeScope($scope0_id, { + _scope($scope0_id, { d: clickCount, e: $clickCount__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.debug.js index f07e3ee6cee..dcd9656850d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.debug.js @@ -13,15 +13,15 @@ var template_default = _template("__tests__/template.marko", (input) => { })(), 2)}`); _script($scope1_id, "__tests__/template.marko_1_clickCount#2"); _script($scope1_id, "__tests__/template.marko_1"); - _subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2")); + _subscribe($clickCount__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2")); _resume_branch($scope1_id); }, $scope0_id), { catch: attrTag({ content: _content_resume("__tests__/template.marko_2*content", (err) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "#text/0", err, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "12:4"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}, "__tests__/template.marko", "12:4"); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { clickCount, "ClosureScopes:clickCount": $clickCount__closures }, "__tests__/template.marko", 0, { clickCount: "1:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.js index 9b066f371fc..7ad39e503e7 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.js @@ -11,15 +11,15 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope1_id, "a")} -- ${_text_resume($scope1_id, "b", void 0, 2)}`); _script($scope1_id, "a2"); _script($scope1_id, "a3"); - _subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($clickCount__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), { catch: attrTag({ content: _content_resume("a0", (err) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "a", err, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { c: clickCount, d: $clickCount__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.debug.js index 3de167d34e4..248f7c8097c 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.debug.js @@ -10,14 +10,14 @@ var template_default = _template("__tests__/template.marko", (input) => { throw new Error("ERROR!"); })())); _script($scope1_id, "__tests__/template.marko_1"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "2:2"); }, $scope0_id), { catch: attrTag({ content: _content_resume("__tests__/template.marko_2*content", (err) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "#text/0", err.message, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "7:4"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}, "__tests__/template.marko", "7:4"); }, $scope0_id) }) }); _html(`
    ${_el_resume($scope0_id, "#div/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.js index 595dac8c0d3..5b386abb3f2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.js @@ -10,14 +10,14 @@ var template_default = _template("a", (input) => { throw new Error("ERROR!"); })())); _script($scope1_id, "a2"); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { catch: attrTag({ content: _content_resume("a0", (err) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "a", err.message, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}); }, $scope0_id) }) }); _html(`
    ${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a3"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-await-branch-removed/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-await-branch-removed/__snapshots__/html.bundle.debug.js index 2411ab3e766..397b4f07d18 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-await-branch-removed/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-await-branch-removed/__snapshots__/html.bundle.debug.js @@ -15,12 +15,12 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope4_id = _scope_id(); _html(_escape(value)); }, 0); - writeScope($scope3_id, {}, "__tests__/template.marko", "5:4"); + _scope($scope3_id, {}, "__tests__/template.marko", "5:4"); return 0; } }, $scope1_id, "#text/0"); _html("
    settled
    "); - _subscribe($show__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2")); + _subscribe($show__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2")); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_2*content", () => { _scope_reason(); @@ -28,7 +28,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html("LOADING..."); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { show, "ClosureScopes:show": $show__closures }, "__tests__/template.marko", 0, { show: "2:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-await-branch-removed/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-await-branch-removed/__snapshots__/html.bundle.js index 41fac7ed270..0ae4029c461 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-await-branch-removed/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-await-branch-removed/__snapshots__/html.bundle.js @@ -15,12 +15,12 @@ var template_default = _template("a", (input) => { _scope_id(); _html(_escape(value)); }, 0); - writeScope($scope3_id, {}); + _scope($scope3_id, {}); return 0; } }, $scope1_id, "a"); _html("
    settled
    "); - _subscribe($show__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($show__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a0", () => { _scope_reason(); @@ -28,7 +28,7 @@ var template_default = _template("a", (input) => { _html("LOADING..."); }, $scope0_id) }) }); _script($scope0_id, "a2"); - writeScope($scope0_id, { + _scope($scope0_id, { c: show, d: $show__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-catch-before-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-catch-before-body/__snapshots__/html.bundle.debug.js index d5c66756e07..f63ff0b53e9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-catch-before-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-catch-before-body/__snapshots__/html.bundle.debug.js @@ -10,9 +10,9 @@ var template_default = _template("__tests__/template.marko", (input) => { _await($scope2_id, "#text/0", attempt === 1 ? resolveAfter("body", 3) : Promise.reject(new Error("nope")), (value) => { const $scope4_id = _scope_id(); _html(`

    ${_text_resume($scope4_id, "#text/0", value)}

    `); - writeScope($scope4_id, {}, "__tests__/template.marko", "12:4"); + _scope($scope4_id, {}, "__tests__/template.marko", "12:4"); }); - _subscribe($attempt__closures, writeScope($scope2_id, { + _subscribe($attempt__closures, _scope($scope2_id, { _: _scope_with_id($scope0_id), "ClosureSignalIndex:attempt": 1 }, "__tests__/template.marko", "4:2")); @@ -23,17 +23,17 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - _subscribe($attempt__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); + _subscribe($attempt__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); _resume_branch($scope1_id); }, $scope0_id) }), catch: attrTag({ content: _content_resume("__tests__/template.marko_3*content", (err) => { const $scope3_reason = _scope_reason(); const $scope3_id = _scope_id(); _html(`${_text_resume($scope3_id, "#text/0", err.message, _serialize_guard($scope3_reason, 0))}`); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, {}, "__tests__/template.marko", "15:4"); + _serialize_if($scope3_reason, 0) && _scope($scope3_id, {}, "__tests__/template.marko", "15:4"); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { attempt, "ClosureScopes:attempt": $attempt__closures }, "__tests__/template.marko", 0, { attempt: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-catch-before-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-catch-before-body/__snapshots__/html.bundle.js index f64f53bf584..ae64493a0c0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-catch-before-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-catch-before-body/__snapshots__/html.bundle.js @@ -10,9 +10,9 @@ var template_default = _template("a", (input) => { _await($scope2_id, "a", resolveAfter("body", 3), (value) => { const $scope4_id = _scope_id(); _html(`

    ${_text_resume($scope4_id, "a", value)}

    `); - writeScope($scope4_id, {}); + _scope($scope4_id, {}); }); - _subscribe($attempt__closures, writeScope($scope2_id, { + _subscribe($attempt__closures, _scope($scope2_id, { _: _scope_with_id($scope0_id), Cc: 1 })); @@ -23,17 +23,17 @@ var template_default = _template("a", (input) => { const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - _subscribe($attempt__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($attempt__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }), catch: attrTag({ content: _content_resume("a2", (err) => { const $scope3_reason = _scope_reason(); const $scope3_id = _scope_id(); _html(`${_text_resume($scope3_id, "a", err.message, _serialize_guard($scope3_reason, 0))}`); - _serialize_if($scope3_reason, 0) && writeScope($scope3_id, {}); + _serialize_if($scope3_reason, 0) && _scope($scope3_id, {}); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: attempt, c: $attempt__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-fast-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-fast-body/__snapshots__/html.bundle.debug.js index 67f93b5b1c7..7a0c467504d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-fast-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-fast-body/__snapshots__/html.bundle.debug.js @@ -12,22 +12,22 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope3_id, "__tests__/template.marko_3_clicks#1/pending"); _html(`${_el_resume($scope3_id, "#button/0")}`); _script($scope3_id, "__tests__/template.marko_3"); - writeScope($scope3_id, { + _scope($scope3_id, { _: _scope_with_id($scope2_id), "ClosureSignalIndex:clicks": 1 }, "__tests__/template.marko", "12:4"); _resume_branch($scope3_id); }); - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_1*content", () => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - _subscribe($clicks__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); + _subscribe($clicks__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); _resume_branch($scope1_id); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { clicks, "ClosureScopes:clicks": $clicks__closures }, "__tests__/template.marko", 0, { clicks: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-fast-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-fast-body/__snapshots__/html.bundle.js index 898e2c6586b..b931b28a476 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-fast-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-fast-body/__snapshots__/html.bundle.js @@ -12,22 +12,22 @@ var template_default = _template("a", (input) => { _script($scope3_id, "a1"); _html(`${_el_resume($scope3_id, "a")}`); _script($scope3_id, "a2"); - writeScope($scope3_id, { + _scope($scope3_id, { _: _scope_with_id($scope2_id), Cc: 1 }); _resume_branch($scope3_id); }); - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a3", () => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - _subscribe($clicks__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($clicks__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: clicks, c: $clicks__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-live-until-swap/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-live-until-swap/__snapshots__/html.bundle.debug.js index 67f93b5b1c7..7a0c467504d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-live-until-swap/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-live-until-swap/__snapshots__/html.bundle.debug.js @@ -12,22 +12,22 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope3_id, "__tests__/template.marko_3_clicks#1/pending"); _html(`${_el_resume($scope3_id, "#button/0")}`); _script($scope3_id, "__tests__/template.marko_3"); - writeScope($scope3_id, { + _scope($scope3_id, { _: _scope_with_id($scope2_id), "ClosureSignalIndex:clicks": 1 }, "__tests__/template.marko", "12:4"); _resume_branch($scope3_id); }); - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_1*content", () => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "#button/0")}`); _script($scope1_id, "__tests__/template.marko_1"); - _subscribe($clicks__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); + _subscribe($clicks__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:4")); _resume_branch($scope1_id); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { clicks, "ClosureScopes:clicks": $clicks__closures }, "__tests__/template.marko", 0, { clicks: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-live-until-swap/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-live-until-swap/__snapshots__/html.bundle.js index 898e2c6586b..b931b28a476 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-live-until-swap/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-live-until-swap/__snapshots__/html.bundle.js @@ -12,22 +12,22 @@ var template_default = _template("a", (input) => { _script($scope3_id, "a1"); _html(`${_el_resume($scope3_id, "a")}`); _script($scope3_id, "a2"); - writeScope($scope3_id, { + _scope($scope3_id, { _: _scope_with_id($scope2_id), Cc: 1 }); _resume_branch($scope3_id); }); - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a3", () => { _scope_reason(); const $scope1_id = _scope_id(); _html(`${_el_resume($scope1_id, "a")}`); _script($scope1_id, "a0"); - _subscribe($clicks__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) })); + _subscribe($clicks__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id) })); _resume_branch($scope1_id); }, $scope0_id) }) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: clicks, c: $clicks__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-nested/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-nested/__snapshots__/html.bundle.debug.js index 85ffdb97408..83aaba2a6d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-nested/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-nested/__snapshots__/html.bundle.debug.js @@ -4,7 +4,7 @@ var note_default = _template("__tests__/tags/note.marko", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "#text/0", input.label, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "__tests__/tags/note.marko_0_input_label#3"); - writeScope($scope0_id, { input_label: input.label }, "__tests__/tags/note.marko", 0, { input_label: ["input.label"] }); + _scope($scope0_id, { input_label: input.label }, "__tests__/tags/note.marko", 0, { input_label: ["input.label"] }); _resume_branch($scope0_id); }); @@ -31,7 +31,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); note_default({ label: `${inner} ${clicks}` }); - writeScope($scope4_id, { + _scope($scope4_id, { inner, _: _scope_with_id($scope3_id), "#childScope/0": _existing_scope($childScope), @@ -39,23 +39,23 @@ var template_default = _template("__tests__/template.marko", (input) => { }, "__tests__/template.marko", "11:8", { inner: "11:14" }); _resume_branch($scope4_id); }); - writeScope($scope3_id, { _: _scope_with_id($scope2_id) }, "__tests__/template.marko", "9:6"); + _scope($scope3_id, { _: _scope_with_id($scope2_id) }, "__tests__/template.marko", "9:6"); }, $scope2_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_6*content", () => { _scope_reason(); const $scope6_id = _scope_id(); note_default({ label: "inner placeholder" }); }, $scope2_id) }) }); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4"); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/template.marko", "7:4"); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2"); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "5:2"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_5*content", () => { _scope_reason(); const $scope5_id = _scope_id(); note_default({ label: "outer placeholder" }); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { clicks, "ClosureScopes:clicks": $clicks__closures }, "__tests__/template.marko", 0, { clicks: "3:6" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-nested/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-nested/__snapshots__/html.bundle.js index f6ea6120b6e..27b7098e4df 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-nested/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-nested/__snapshots__/html.bundle.js @@ -4,7 +4,7 @@ var note_default = _template("b", (input) => { const $scope0_id = _scope_id(); _html(`${_text_resume($scope0_id, "a", input.label, _serialize_guard($scope0_reason, 0))}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { d: input.label }); + _scope($scope0_id, { d: input.label }); _resume_branch($scope0_id); }); @@ -31,7 +31,7 @@ var template_default = _template("a", (input) => { _set_serialize_reason(1); const $childScope = _peek_scope_id(); note_default({ label: `${inner} ${clicks}` }); - writeScope($scope4_id, { + _scope($scope4_id, { c: inner, _: _scope_with_id($scope3_id), a: _existing_scope($childScope), @@ -39,23 +39,23 @@ var template_default = _template("a", (input) => { }); _resume_branch($scope4_id); }); - writeScope($scope3_id, { _: _scope_with_id($scope2_id) }); + _scope($scope3_id, { _: _scope_with_id($scope2_id) }); }, $scope2_id), { placeholder: attrTag({ content: _content_resume("a1", () => { _scope_reason(); _scope_id(); note_default({ label: "inner placeholder" }); }, $scope2_id) }) }); - writeScope($scope2_id, { _: _scope_with_id($scope1_id) }); + _scope($scope2_id, { _: _scope_with_id($scope1_id) }); _resume_branch($scope2_id); }); - writeScope($scope1_id, { _: _scope_with_id($scope0_id) }); + _scope($scope1_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a4", () => { _scope_reason(); _scope_id(); note_default({ label: "outer placeholder" }); }, $scope0_id) }) }); _script($scope0_id, "a6"); - writeScope($scope0_id, { + _scope($scope0_id, { d: clicks, e: $clicks__closures }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-removed-before-body/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-removed-before-body/__snapshots__/html.bundle.debug.js index d1084b87670..ec7e6180059 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-removed-before-body/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-removed-before-body/__snapshots__/html.bundle.debug.js @@ -21,11 +21,11 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope3_id, "__tests__/template.marko_3"); _resume_branch($scope3_id); }, $scope1_id) }) }); - writeScope($scope1_id, {}, "__tests__/template.marko", "5:2"); + _scope($scope1_id, {}, "__tests__/template.marko", "5:2"); return 0; } }, $scope0_id, "#text/1"); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-removed-before-body/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-removed-before-body/__snapshots__/html.bundle.js index 68fdbdf1c0c..1db2669d7e0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-removed-before-body/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-removed-before-body/__snapshots__/html.bundle.js @@ -20,11 +20,11 @@ var template_default = _template("a", (input) => { _script($scope3_id, "a0"); _resume_branch($scope3_id); }, $scope1_id) }) }); - writeScope($scope1_id, {}); + _scope($scope1_id, {}); return 0; } }, $scope0_id, "b"); _script($scope0_id, "a3"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-template-id-collision/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-template-id-collision/__snapshots__/html.bundle.debug.js index 1fefc05ed5a..84e4276d1f2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-template-id-collision/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-template-id-collision/__snapshots__/html.bundle.debug.js @@ -3,7 +3,7 @@ var n2_default = _template("__tests__/tags/n2.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "#text/0", input.label, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/n2.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/tags/n2.marko", 0); }); // tags/n5.marko @@ -13,7 +13,7 @@ var n5_default = _template("__tests__/tags/n5.marko", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/n5.marko_0"); - writeScope($scope0_id, { n }, "__tests__/tags/n5.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/tags/n5.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }); @@ -24,7 +24,7 @@ var n1_default = _template("__tests__/tags/n1.marko", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/tags/n1.marko_0"); - writeScope($scope0_id, { n }, "__tests__/tags/n1.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/tags/n1.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }); @@ -45,28 +45,28 @@ var template_default = _template("__tests__/template.marko", (input) => { _script($scope3_id, "__tests__/template.marko_3_clicks#4/pending"); _script($scope3_id, "__tests__/template.marko_3_tag#5/pending"); _dynamic_tag($scope3_id, "#text/0", tag, { label: `${body} ${clicks}` }); - writeScope($scope3_id, { + _scope($scope3_id, { body, _: _scope_with_id($scope2_id), "ClosureSignalIndex:clicks": 1 }, "__tests__/template.marko", "11:4", { body: "11:10" }); _resume_branch($scope3_id); }); - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "9:2"); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "9:2"); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("__tests__/template.marko_1*content", () => { _scope_reason(); const $scope1_id = _scope_id(); _set_serialize_reason(1); const $childScope = _peek_scope_id(); n1_default({ label: `placeholder ${clicks}` }); - _subscribe($clicks__closures, writeScope($scope1_id, { + _subscribe($clicks__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", "10:4")); _resume_branch($scope1_id); }, $scope0_id) }) }); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { + _scope($scope0_id, { clicks, tag, "ClosureScopes:clicks": $clicks__closures, diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-template-id-collision/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-template-id-collision/__snapshots__/html.bundle.js index 24c8dca60c1..b15d560cdd0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-template-id-collision/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-placeholder-stateful-template-id-collision/__snapshots__/html.bundle.js @@ -3,7 +3,7 @@ var n2_default = _template("c", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", input.label, _serialize_guard($scope0_reason, 0))}
    `); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }); // tags/n5.marko @@ -13,7 +13,7 @@ var n5_default = _template("f", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "f0"); - writeScope($scope0_id, { g: n }); + _scope($scope0_id, { g: n }); _resume_branch($scope0_id); }); @@ -24,7 +24,7 @@ var n1_default = _template("b", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "b0"); - writeScope($scope0_id, { g: n }); + _scope($scope0_id, { g: n }); _resume_branch($scope0_id); }); @@ -45,28 +45,28 @@ var template_default = _template("a", (input) => { _script($scope3_id, "a0"); _script($scope3_id, "a1"); _dynamic_tag($scope3_id, "a", tag, { label: `${body} ${clicks}` }); - writeScope($scope3_id, { + _scope($scope3_id, { c: body, _: _scope_with_id($scope2_id), Cg: 1 }); _resume_branch($scope3_id); }); - writeScope($scope2_id, { _: _scope_with_id($scope0_id) }); + _scope($scope2_id, { _: _scope_with_id($scope0_id) }); }, $scope0_id), { placeholder: attrTag({ content: _content_resume("a2", () => { _scope_reason(); const $scope1_id = _scope_id(); _set_serialize_reason(1); const $childScope = _peek_scope_id(); n1_default({ label: `placeholder ${clicks}` }); - _subscribe($clicks__closures, writeScope($scope1_id, { + _subscribe($clicks__closures, _scope($scope1_id, { _: _scope_with_id($scope0_id), a: _existing_scope($childScope) })); _resume_branch($scope1_id); }, $scope0_id) }) }); _script($scope0_id, "a4"); - writeScope($scope0_id, { + _scope($scope0_id, { e: clicks, f: tag, g: $clicks__closures, diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-single-throw-sync/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-single-throw-sync/__snapshots__/html.bundle.debug.js index 3bcd1aec368..8029abd627a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-single-throw-sync/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-single-throw-sync/__snapshots__/html.bundle.debug.js @@ -13,7 +13,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "#text/0", err.message, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "5:3"); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}, "__tests__/template.marko", "5:3"); }, $scope0_id) }) }); _html("After"); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-single-throw-sync/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-single-throw-sync/__snapshots__/html.bundle.js index c0bcf380454..59924978a3f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/try-single-throw-sync/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/try-single-throw-sync/__snapshots__/html.bundle.js @@ -13,7 +13,7 @@ var template_default = _template("a", (input) => { const $scope2_reason = _scope_reason(); const $scope2_id = _scope_id(); _html(_text_resume($scope2_id, "a", err.message, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}); + _serialize_if($scope2_reason, 0) && _scope($scope2_id, {}); }, $scope0_id) }) }); _html("After"); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.debug.js index 6dd0fe36c8f..9a6713c4070 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/dom.bundle.debug.js @@ -2,11 +2,11 @@ const $template = "
    "; const $walks = "b b b b"; const $open = /*@__PURE__*/ _let("open/3", ($scope) => { - _attr_details_or_dialog_open_default($scope, "#details/0", $scope.open); - _attr_details_or_dialog_open($scope, "#details/1", $scope.open, undefined); + _attr_details_open_default($scope, "#details/0", $scope.open); + _attr_details_open($scope, "#details/1", $scope.open, undefined); }); const $setup__script = _script("__tests__/template.marko_0", ($scope) => { - _attr_details_or_dialog_open_script($scope, "#details/1"); + _attr_details_open_script($scope, "#details/1"); _on($scope["#button/2"], "click", function() { $open($scope, true); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/html.bundle.debug.js index 4331f9125e4..23e0ae72a28 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/html.bundle.debug.js @@ -3,8 +3,8 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); let open = false; - _html(`
    ${_el_resume($scope0_id, "#details/0")}${_el_resume($scope0_id, "#details/1")}${_el_resume($scope0_id, "#button/2")}`); + _html(`
    ${_el_resume($scope0_id, "#details/0")}${_el_resume($scope0_id, "#details/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/html.bundle.js index 43010b48a9a..60892ebaa38 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-details-open-default-update/__snapshots__/html.bundle.js @@ -3,8 +3,8 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope0_id = _scope_id(); let open = false; - _html(`
    ${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); + _html(`
    ${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.debug.js index 913aecaabf0..cc27dbb32f0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/dom.bundle.debug.js @@ -2,11 +2,11 @@ const $template = ""; const $walks = "b b b b"; const $open = /*@__PURE__*/ _let("open/3", ($scope) => { - _attr_details_or_dialog_open_default($scope, "#dialog/0", $scope.open); - _attr_details_or_dialog_open($scope, "#dialog/1", $scope.open, undefined); + _attr_dialog_open_default($scope, "#dialog/0", $scope.open); + _attr_dialog_open($scope, "#dialog/1", $scope.open, undefined); }); const $setup__script = _script("__tests__/template.marko_0", ($scope) => { - _attr_details_or_dialog_open_script($scope, "#dialog/1"); + _attr_dialog_open_script($scope, "#dialog/1"); _on($scope["#button/2"], "click", function() { $open($scope, true); }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/html.bundle.debug.js index fa43a63b40b..e309b7d5dd0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/html.bundle.debug.js @@ -3,8 +3,8 @@ var template_default = _template("__tests__/template.marko", (input) => { _scope_reason(); const $scope0_id = _scope_id(); let open = false; - _html(`${_el_resume($scope0_id, "#dialog/0")}${_el_resume($scope0_id, "#dialog/1")}${_el_resume($scope0_id, "#button/2")}`); + _html(`${_el_resume($scope0_id, "#dialog/0")}${_el_resume($scope0_id, "#dialog/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/html.bundle.js index 06886023aaa..fd041e7856f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-dialog-open-default-update/__snapshots__/html.bundle.js @@ -3,8 +3,8 @@ var template_default = _template("a", (input) => { _scope_reason(); const $scope0_id = _scope_id(); let open = false; - _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); + _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/html.bundle.debug.js index 5b78e396ed6..5d0bfc54123 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = initialValue; _html(`${_el_resume($scope0_id, "#input/2")}${_el_resume($scope0_id, "#input/3")}${_el_resume($scope0_id, "#button/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/html.bundle.js index a826ac5ee8b..96f1b7189f1 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checkbox-checkedValue-default-update/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { let value = initialValue; _html(`${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/html.bundle.debug.js index 972cc88569f..51de4e662c2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let checked = false; _html(`${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#input/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/html.bundle.js index 0ae006b18eb..9cd1b55f1c0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-checked-default-update/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let checked = false; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-non-editable-value-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-non-editable-value-update/__snapshots__/html.bundle.debug.js index ee699a77dd1..ef212058d27 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-non-editable-value-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-non-editable-value-update/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = "a"; _html(`
    ${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#input/1")}${_el_resume($scope0_id, "#input/2")}${_el_resume($scope0_id, "#input/3")}${_el_resume($scope0_id, "#input/4")}${_el_resume($scope0_id, "#input/5")}${_el_resume($scope0_id, "#input/6")}${_el_resume($scope0_id, "#input/7")}${_el_resume($scope0_id, "#button/8")}${_el_resume($scope0_id, "#button/9")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-non-editable-value-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-non-editable-value-update/__snapshots__/html.bundle.js index 735c4e18d33..afe9325a85d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-non-editable-value-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-non-editable-value-update/__snapshots__/html.bundle.js @@ -6,6 +6,6 @@ var template_default = _template("a", (input) => { let value = "a"; _html(`
    ${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}${_el_resume($scope0_id, "e")}${_el_resume($scope0_id, "f")}${_el_resume($scope0_id, "g")}${_el_resume($scope0_id, "h")}${_el_resume($scope0_id, "i")}${_el_resume($scope0_id, "j")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/html.bundle.debug.js index d1d084766e2..62564ebe4ee 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = "a"; _html(`${_el_resume($scope0_id, "#input/2")}${_el_resume($scope0_id, "#input/3")}${_el_resume($scope0_id, "#button/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/html.bundle.js index de3f4ddf034..affb8063233 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-radio-checkedValue-default-update/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let value = "a"; _html(`${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/html.bundle.debug.js index 80140308e00..de24c5da71e 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = "a"; _html(`${_el_resume($scope0_id, "#input/0")}${_el_resume($scope0_id, "#input/1")}${_el_resume($scope0_id, "#button/2")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/html.bundle.js index 30bb62b0c84..6f4acb7640f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-input-value-default-update/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let value = "a"; _html(`${_el_resume($scope0_id, "a")}${_el_resume($scope0_id, "b")}${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/html.bundle.debug.js index dcc6c62eef7..fadc18ca840 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/html.bundle.debug.js @@ -18,6 +18,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#select/3")}${_el_resume($scope0_id, "#button/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/html.bundle.js index d1c19d80397..7dc289db771 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-default-update/__snapshots__/html.bundle.js @@ -18,6 +18,6 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "d")}${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/html.bundle.debug.js index ebe1d2eba01..a671e9d2cce 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/html.bundle.debug.js @@ -19,6 +19,6 @@ var template_default = _template("__tests__/template.marko", (input) => { }); _html(`${_el_resume($scope0_id, "#select/3")}${_el_resume($scope0_id, "#button/4")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/html.bundle.js index a71a66e60b3..04d30925cbc 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-select-value-multiple-default-update/__snapshots__/html.bundle.js @@ -19,6 +19,6 @@ var template_default = _template("a", (input) => { }); _html(`${_el_resume($scope0_id, "d")}${_el_resume($scope0_id, "e")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/dom.bundle.debug.js index 6c5baa2ef8e..5059805f358 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/dom.bundle.debug.js @@ -2,6 +2,6 @@ const $template = ""; const $walks = " b"; const $setup = () => {}; -const $input_v = /*@__PURE__*/ _const("input_v", ($scope) => _attr_input_value_default($scope, "#textarea/0", $scope.input_v)); +const $input_v = /*@__PURE__*/ _const("input_v", ($scope) => _attr_textarea_value_default($scope, "#textarea/0", $scope.input_v)); const $input = ($scope, input) => $input_v($scope, input.v); var template_default = /*@__PURE__*/ _template("__tests__/template.marko", $template, " b", 0, $input); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/html.bundle.debug.js index 60f26519b8c..8488b999e70 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "#textarea/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/html.bundle.js index 0c9bb7785fd..8b529f4a540 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-coercion/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.debug.js index 4f0bae796c6..0b9365d7cff 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/dom.bundle.debug.js @@ -2,21 +2,21 @@ const $template = ""; const $walks = " b b b b b b b"; const $value = /*@__PURE__*/ _let("value/7", ($scope) => { - _attr_input_value_default($scope, "#textarea/2", $scope.value); - _attr_input_value_default($scope, "#textarea/3", $scope.value); - _attr_input_value($scope, "#textarea/4", $scope.value, undefined); - _attr_input_value($scope, "#textarea/5", $scope.value, undefined); + _attr_textarea_value_default($scope, "#textarea/2", $scope.value); + _attr_textarea_value_default($scope, "#textarea/3", $scope.value); + _attr_textarea_value($scope, "#textarea/4", $scope.value, undefined); + _attr_textarea_value($scope, "#textarea/5", $scope.value, undefined); }); const $setup__script = _script("__tests__/template.marko_0", ($scope) => { - _attr_input_value_script($scope, "#textarea/4"); - _attr_input_value_script($scope, "#textarea/5"); + _attr_textarea_value_script($scope, "#textarea/4"); + _attr_textarea_value_script($scope, "#textarea/5"); _on($scope["#button/6"], "click", function() { $value($scope, "b"); }); }); function $setup($scope) { - _attr_input_value_default($scope, "#textarea/0", "a"); - _attr_input_value_default($scope, "#textarea/1", "a"); + _attr_textarea_value_default($scope, "#textarea/0", "a"); + _attr_textarea_value_default($scope, "#textarea/1", "a"); $value($scope, "a"); $setup__script($scope); } diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/html.bundle.debug.js index 84ab0c15d71..89178cb4072 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = "a"; _html(`${_el_resume($scope0_id, "#textarea/2")}${_el_resume($scope0_id, "#textarea/3")}${_el_resume($scope0_id, "#textarea/4")}${_el_resume($scope0_id, "#textarea/5")}${_el_resume($scope0_id, "#button/6")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/html.bundle.js index c44d2206943..25f5c2d89df 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value-default-update/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let value = "a"; _html(`${_el_resume($scope0_id, "c")}${_el_resume($scope0_id, "d")}${_el_resume($scope0_id, "e")}${_el_resume($scope0_id, "f")}${_el_resume($scope0_id, "g")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value/__snapshots__/dom.bundle.debug.js index 4e38b160e5c..a696515ad81 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value/__snapshots__/dom.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value/__snapshots__/dom.bundle.debug.js @@ -2,6 +2,6 @@ const $template = ""; const $walks = " b"; function $setup($scope) { - _attr_input_value_default($scope, "#textarea/0", "hello"); + _attr_textarea_value_default($scope, "#textarea/0", "hello"); } var template_default = /*@__PURE__*/ _template("__tests__/template.marko", $template, " b", $setup); diff --git a/packages/runtime-tags/src/__tests__/fixtures/unserializable-warning/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/unserializable-warning/__snapshots__/html.bundle.debug.js index 0c0a92a9714..6a295f34256 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unserializable-warning/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unserializable-warning/__snapshots__/html.bundle.debug.js @@ -10,7 +10,7 @@ var template_default = _template("__tests__/template.marko", (input) => { return unserializable; }, "__tests__/template.marko_1/test", $scope1_id); _script($scope1_id, "__tests__/template.marko_1_test#1"); - writeScope($scope1_id, { + _scope($scope1_id, { unserializable, test }, "__tests__/template.marko", "1:2", { diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/html.bundle.debug.js index b367cce4ccf..471036fe180 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/html.bundle.debug.js @@ -9,7 +9,7 @@ var template_default = _template("__tests__/template.marko", (input) => { onClick, content }, 0, 0, _serialize_guard($scope1_reason, 3)); - _serialize_if($scope1_reason, 3) && writeScope($scope1_id, { + _serialize_if($scope1_reason, 3) && _scope($scope1_id, { as: _serialize_if($scope1_reason, 2) && as, onClick: _serialize_if($scope1_reason, 1) && onClick, content: _serialize_if($scope1_reason, 0) && content @@ -23,7 +23,7 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope2_id = _scope_id(); const $scope2_reason = _scope_reason(); _html(_text_resume($scope2_id, "#text/0", input.before + input.after, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, { + _serialize_if($scope2_reason, 0) && _scope($scope2_id, { input_before: _serialize_if($scope2_reason, 2) && input.before, input_after: _serialize_if($scope2_reason, 1) && input.after }, "__tests__/template.marko", "4:1", { @@ -48,7 +48,7 @@ var template_default = _template("__tests__/template.marko", (input) => { }); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { x, "#childScope/0": _existing_scope($childScope) }, "__tests__/template.marko", 0, { x: "7:5" }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/html.bundle.js index f7e90583528..3dc78d6be6d 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-dynamic-tag-body-serialize-reason/__snapshots__/html.bundle.js @@ -9,7 +9,7 @@ var template_default = _template("a", (input) => { onClick, content }, 0, 0, _serialize_guard($scope1_reason, 3)); - _serialize_if($scope1_reason, 3) && writeScope($scope1_id, { + _serialize_if($scope1_reason, 3) && _scope($scope1_id, { d: _serialize_if($scope1_reason, 2) && as, e: _serialize_if($scope1_reason, 1) && onClick, f: _serialize_if($scope1_reason, 0) && content @@ -19,7 +19,7 @@ var template_default = _template("a", (input) => { const $scope2_id = _scope_id(); const $scope2_reason = _scope_reason(); _html(_text_resume($scope2_id, "a", input.before + input.after, _serialize_guard($scope2_reason, 0))); - _serialize_if($scope2_reason, 0) && writeScope($scope2_id, { + _serialize_if($scope2_reason, 0) && _scope($scope2_id, { d: _serialize_if($scope2_reason, 2) && input.before, e: _serialize_if($scope2_reason, 1) && input.after }); @@ -41,7 +41,7 @@ var template_default = _template("a", (input) => { }); }, $scope0_id) }); - writeScope($scope0_id, { + _scope($scope0_id, { b: x, a: _existing_scope($childScope) }); diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/html.bundle.debug.js index 0cd8a1355bf..dbeccf48536 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = "initial"; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/html.bundle.js index 7b26763ab74..5845dfb7408 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-pattern-mutation-registered-function/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/html.bundle.debug.js index 0cd8a1355bf..dbeccf48536 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/html.bundle.debug.js @@ -6,5 +6,5 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = "initial"; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/html.bundle.js index 7b26763ab74..5845dfb7408 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/unused-var-mutation-registered-function/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/update-attr/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/update-attr/__snapshots__/html.bundle.debug.js index bacbf997494..eed168cb3d9 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/update-attr/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/update-attr/__snapshots__/html.bundle.debug.js @@ -3,5 +3,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "#div/0", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/update-attr/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/update-attr/__snapshots__/html.bundle.js index 880ce7747dd..f92c9bdb942 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/update-attr/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/update-attr/__snapshots__/html.bundle.js @@ -3,5 +3,5 @@ var template_default = _template("a", (input) => { const $scope0_reason = _scope_reason(); const $scope0_id = _scope_id(); _html(`
    ${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/html.bundle.debug.js index 0d9c85e20f1..1cfd510c614 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/html.bundle.debug.js @@ -15,7 +15,7 @@ var template_default = _template("__tests__/template.marko", (input) => { _html(`${_el_resume($scope0_id, "#div/2")}`); _script($scope0_id, "__tests__/template.marko_0_input_value#5_a#6"); _script($scope0_id, "__tests__/template.marko_0_input_value#5"); - writeScope($scope0_id, { a }, "__tests__/template.marko", 0, { + _scope($scope0_id, { a }, "__tests__/template.marko", 0, { a: "1:6", "EventAttributes:#div/0": ["...input.value", "2:9"], "EventAttributes:#div/1": ["...input.value", "3:13"], diff --git a/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/html.bundle.js index 12f924a9bab..f282ed26942 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/html.bundle.js @@ -15,6 +15,6 @@ var template_default = _template("a", (input) => { _html(`${_el_resume($scope0_id, "c")}`); _script($scope0_id, "a0"); _script($scope0_id, "a1"); - writeScope($scope0_id, { g: a }); + _scope($scope0_id, { g: a }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/update-html/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/update-html/__snapshots__/html.bundle.debug.js index 209a3a588a1..228f15c4d4a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/update-html/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/update-html/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); const { value } = input; _html(`Testing ${_html_resume($scope0_id, "#text/0", value, _serialize_guard($scope0_reason, 0) * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/update-html/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/update-html/__snapshots__/html.bundle.js index 92887ebd207..b8f135b59be 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/update-html/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/update-html/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); const { value } = input; _html(`Testing ${_html_resume($scope0_id, "a", value, _serialize_guard($scope0_reason, 0) * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/update-text/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/update-text/__snapshots__/html.bundle.debug.js index 8b945fb3181..2bce348cbd0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/update-text/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/update-text/__snapshots__/html.bundle.debug.js @@ -4,5 +4,5 @@ var template_default = _template("__tests__/template.marko", (input) => { const $scope0_id = _scope_id(); const { value } = input; _html(`Static ${_text_resume($scope0_id, "#text/0", value, _serialize_guard($scope0_reason, 0) * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}, "__tests__/template.marko", 0); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/update-text/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/update-text/__snapshots__/html.bundle.js index 9e1edcf9b16..174f0374f5a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/update-text/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/update-text/__snapshots__/html.bundle.js @@ -4,5 +4,5 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); const { value } = input; _html(`Static ${_text_resume($scope0_id, "a", value, _serialize_guard($scope0_reason, 0) * 2)}`); - _serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}); + _serialize_if($scope0_reason, 0) && _scope($scope0_id, {}); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/html.bundle.debug.js index b30241eef0c..99c9f8e02d2 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let value = "initial"; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, {}, "__tests__/template.marko", 0); + _scope($scope0_id, {}, "__tests__/template.marko", 0); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/html.bundle.js index afe62939a07..b60dddf8be0 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/used-var-mutation-registered-function/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, {}); + _scope($scope0_id, {}); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/html.bundle.debug.js index c7a4f049b56..63c5ec2ffd3 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/html.bundle.debug.js @@ -6,6 +6,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let b = 0; _html(`
    ${_text_resume($scope0_id, "#text/0", a)} ${_text_resume($scope0_id, "#text/1", b, 2)}
    `); _script($scope0_id, "__tests__/template.marko_0_input_value#4"); - writeScope($scope0_id, { input_value: input.value }, "__tests__/template.marko", 0, { input_value: ["input.value"] }); + _scope($scope0_id, { input_value: input.value }, "__tests__/template.marko", 0, { input_value: ["input.value"] }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/html.bundle.js index 78400c8edf5..7ba6ae9013a 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/user-effect-abort-signal/__snapshots__/html.bundle.js @@ -4,6 +4,6 @@ var template_default = _template("a", (input) => { const $scope0_id = _scope_id(); _html(`
    ${_text_resume($scope0_id, "a", 0)} ${_text_resume($scope0_id, "b", 0, 2)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: input.value }); + _scope($scope0_id, { e: input.value }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/walk-next-wide-run/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/walk-next-wide-run/__snapshots__/html.bundle.debug.js index f3d3d3ad1f0..cab999c1659 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/walk-next-wide-run/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/walk-next-wide-run/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 0; _html(`
    ${_text_resume($scope0_id, "#text/0", n)}
    ${_el_resume($scope0_id, "#button/1")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/walk-next-wide-run/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/walk-next-wide-run/__snapshots__/html.bundle.js index 45e7840be45..303ea5e0109 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/walk-next-wide-run/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/walk-next-wide-run/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 0; _html(`
    ${_text_resume($scope0_id, "a", n)}
    ${_el_resume($scope0_id, "b")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/walks-multiplier/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/walks-multiplier/__snapshots__/html.bundle.debug.js index 68478c1783a..1d453af693f 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/walks-multiplier/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/walks-multiplier/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "#button/0")}
    0123456789101112131415161718192021222324${_text_resume($scope0_id, "#text/2", n)}xxxxxxxxxxxx${_text_resume($scope0_id, "#text/3", n + 1)}
    `); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/walks-multiplier/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/walks-multiplier/__snapshots__/html.bundle.js index e303cfd9366..40602aa2283 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/walks-multiplier/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/walks-multiplier/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 1; _html(`${_el_resume($scope0_id, "a")}
    0123456789101112131415161718192021222324${_text_resume($scope0_id, "c", n)}xxxxxxxxxxxx${_text_resume($scope0_id, "d", 2)}
    `); _script($scope0_id, "a0"); - writeScope($scope0_id, { e: n }); + _scope($scope0_id, { e: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/warn-script-return-cleanup/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/warn-script-return-cleanup/__snapshots__/html.bundle.debug.js index 6401d2ee8be..44b8f5a48aa 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/warn-script-return-cleanup/__snapshots__/html.bundle.debug.js +++ b/packages/runtime-tags/src/__tests__/fixtures/warn-script-return-cleanup/__snapshots__/html.bundle.debug.js @@ -5,6 +5,6 @@ var template_default = _template("__tests__/template.marko", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "#button/0")}`); _script($scope0_id, "__tests__/template.marko_0"); - writeScope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); + _scope($scope0_id, { n }, "__tests__/template.marko", 0, { n: "1:6" }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/fixtures/warn-script-return-cleanup/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/warn-script-return-cleanup/__snapshots__/html.bundle.js index b1c4512c55a..804d515e4ee 100644 --- a/packages/runtime-tags/src/__tests__/fixtures/warn-script-return-cleanup/__snapshots__/html.bundle.js +++ b/packages/runtime-tags/src/__tests__/fixtures/warn-script-return-cleanup/__snapshots__/html.bundle.js @@ -5,6 +5,6 @@ var template_default = _template("a", (input) => { let n = 0; _html(`${_el_resume($scope0_id, "a")}`); _script($scope0_id, "a0"); - writeScope($scope0_id, { c: n }); + _scope($scope0_id, { c: n }); _resume_branch($scope0_id); }, 1); diff --git a/packages/runtime-tags/src/__tests__/utils/bundle.ts b/packages/runtime-tags/src/__tests__/utils/bundle.ts index f23b9f6f2f7..66aecd7af90 100644 --- a/packages/runtime-tags/src/__tests__/utils/bundle.ts +++ b/packages/runtime-tags/src/__tests__/utils/bundle.ts @@ -1,10 +1,16 @@ -import { readFileSync } from "fs"; +import { createHash } from "crypto"; +import fs, { readFileSync } from "fs"; import path from "path"; import zlib from "zlib"; import * as compiler from "@marko/compiler"; import type { Template } from "@marko/runtime-tags/common/types"; -import { build, type Plugin, type RolldownOutput } from "rolldown"; +import { + build, + type Plugin, + type RolldownOutput, + VERSION as rolldownVersion, +} from "rolldown"; import { minifySync } from "rolldown/utils"; import { importEvictable, importWithContext } from "./import-with-context"; @@ -27,7 +33,9 @@ const testUtilChunkName = "test-utils"; // Totals every chunk that holds only shared runtime, under one stable key // (chunk file names for those follow the module graph and would churn). const sharedChunkKey = "shared"; - +const runtimeEntryRe = + /^@marko\/runtime-tags\/(?:debug\/)?(dom|html)(?:\/([^/]+)\.feat)?$/; +const featExt = ".feat.ts"; interface Diagnostic { type: string; label: string; @@ -161,6 +169,7 @@ function createBuilds( plugins: [ virtual.plugin, domEntry.plugin, + !optimize && externalRuntimePlugin("dom", false), optimize && remapDebugPlugin(), optimize && interop && remapDistPlugin(), markoPlugin({ ...compileOpts, output: "dom" }), @@ -238,6 +247,7 @@ export function run() { _run(); Object.values(___componentLookup).forEach((c) => experimental: { nativeMagicString: true }, plugins: [ virtual.plugin, + externalRuntimePlugin("html", optimize), optimize && remapDebugPlugin(), optimize && interop && remapDistPlugin(), markoPlugin({ ...compileOpts, output: "html" }, collectDiagnostics), @@ -454,6 +464,109 @@ function virtualPlugin(cwd: string): { }; } +// Only the optimize dom bundle is measured, so every other build links one +// shared runtime instead of re-emitting it into each fixture. +function externalRuntimePlugin( + kind: "dom" | "html", + optimize: boolean, +): Plugin { + return { + name: "external-runtime", + resolveId: { + filter: { id: runtimeEntryRe }, + async handler(id) { + const feature = runtimeEntryRe.exec(id)![2]; + const dir = await prebuiltRuntime(kind, optimize); + return { + id: path.join(dir, feature ? `${feature}.feat.mjs` : "runtime.mjs"), + external: true, + }; + }, + }, + }; +} + +// The `*.feat` modules enable behavior by reassigning the runtime's own +// bindings, so they are entries of that bundle rather than fixture copies. +const prebuiltRuntimes = new Map>(); +function prebuiltRuntime(kind: "dom" | "html", optimize: boolean) { + const variant = optimize ? `${kind}-optimize` : kind; + let built = prebuiltRuntimes.get(variant); + if (!built) { + prebuiltRuntimes.set(variant, (built = buildRuntime(kind, optimize))); + } + return built; +} + +// Keyed by the runtime source, so every worker and every later run shares one +// build (and coverage can remap it after the run); stale keys are swept. +async function buildRuntime(kind: "dom" | "html", optimize: boolean) { + const root = path.join(import.meta.dirname, "..", "dist"); + const key = runtimeSourceKey(); + const dir = path.join(root, `${optimize ? `${kind}-optimize` : kind}-${key}`); + fs.mkdirSync(root, { recursive: true }); + for (const entry of fs.readdirSync(root)) { + if (!entry.includes(key)) { + fs.rmSync(path.join(root, entry), { force: true, recursive: true }); + } + } + if (fs.existsSync(dir)) return dir; + + const srcDir = path.join(import.meta.dirname, "../.."); + const input: Record = { + runtime: path.join(srcDir, `${kind}.ts`), + }; + for (const file of fs.readdirSync(path.join(srcDir, kind))) { + if (file.endsWith(featExt)) { + input[file.slice(0, -3)] = path.join(srcDir, kind, file); + } + } + const tmp = `${dir}.${process.pid}`; + await build({ + input, + platform: kind === "dom" ? "browser" : "node", + treeshake: false, + plugins: [optimize && remapDebugPlugin()], + experimental: { nativeMagicString: true }, + transform: { define: { MARKO_DEBUG: String(!optimize) } }, + output: { + dir: tmp, + entryFileNames: "[name].mjs", + chunkFileNames: "[name].mjs", + sourcemap: true, + sourcemapExcludeSources: true, + }, + }); + try { + fs.renameSync(tmp, dir); + } catch { + // Another worker finished the same build first. + fs.rmSync(tmp, { force: true, recursive: true }); + } + return dir; +} + +let sourceKey: string | undefined; +function runtimeSourceKey() { + if (!sourceKey) { + const hash = createHash("sha1").update(rolldownVersion); + const srcDir = path.join(import.meta.dirname, "../.."); + for (const file of fs.readdirSync(srcDir, { + recursive: true, + }) as string[]) { + if ( + file.endsWith(".ts") && + !file.startsWith("__tests__") && + !file.startsWith("translator") + ) { + hash.update(file).update(fs.readFileSync(path.join(srcDir, file))); + } + } + sourceKey = hash.digest("hex").slice(0, 12); + } + return sourceKey; +} + function remapDebugPlugin(): Plugin { const debugRe = /\.debug\./; return { diff --git a/packages/runtime-tags/src/__tests__/utils/import-with-context.ts b/packages/runtime-tags/src/__tests__/utils/import-with-context.ts index 79981a7b3e3..d61e41a6512 100644 --- a/packages/runtime-tags/src/__tests__/utils/import-with-context.ts +++ b/packages/runtime-tags/src/__tests__/utils/import-with-context.ts @@ -1,40 +1,64 @@ import { readFileSync } from "node:fs"; -import { pathToFileURL } from "node:url"; +import path from "node:path"; +import { fileURLToPath, pathToFileURL } from "node:url"; import vm from "node:vm"; import { type ResolveOptions, resolveSync } from "resolve-sync"; -/** Imports an ESM file into the *current* realm through a vm module, so its +/** Imports an ESM file into the *current* realm through vm modules, so its * namespace is collectable once the caller drops it — Node's ESM loader cache * (`ModuleLoader.loadCache`) retains ordinary dynamic imports for the life of - * the process. Imports it contains delegate to the host loader (shared - * externals stay cached). */ + * the process. Path imports (chunks, the prebuilt runtime) load the same way, + * so module state stays per caller; bare specifiers use the host loader. */ export async function importEvictable(entry: string): Promise { - const url = pathToFileURL(entry).href; - const mod = new vm.SourceTextModule(readFileSync(entry, "utf8"), { - identifier: url, - initializeImportMeta(meta) { - meta.url = url; - }, - importModuleDynamically: linkHosted, - }); - await mod.link(linkHosted); - await mod.evaluate(); - return mod.namespace as T; -} + // One graph per call: chunks importing the same file share an instance, and + // nothing outlives the namespace returned. + const cache = new Map>(); + return (await load(pathToFileURL(entry).href)).namespace as T; -async function linkHosted(id: string, parent: vm.Module | vm.Script) { - const target = await import( - /^[./]/.test(id) ? new URL(id, (parent as vm.Module).identifier).href : id - ); - const keys = Object.keys(target); - return new vm.SyntheticModule( - keys, - function (this: vm.SyntheticModule) { - for (const key of keys) this.setExport(key, target[key]); - }, - { identifier: id }, - ); + function load(url: string): Promise { + let cached = cache.get(url); + if (!cached) { + const mod = new vm.SourceTextModule( + readFileSync(fileURLToPath(url), "utf8"), + { + identifier: url, + initializeImportMeta(meta) { + meta.url = url; + }, + importModuleDynamically: link, + }, + ); + cache.set( + url, + (cached = mod + .link(link) + .then(() => mod.evaluate()) + .then(() => mod)), + ); + } + return cached; + } + + async function link(id: string, parent: vm.Module | vm.Script) { + if (/^[./]/.test(id)) { + return load(new URL(id, (parent as vm.Module).identifier).href); + } + // Server bundles only; anything but a node builtin means a browser-side + // module is about to run in the wrong realm. + if (!id.startsWith("node:")) { + throw new Error(`Unexpected host import ${JSON.stringify(id)}`); + } + const target = await import(id); + const keys = Object.keys(target); + return new vm.SyntheticModule( + keys, + function (this: vm.SyntheticModule) { + for (const key of keys) this.setExport(key, target[key]); + }, + { identifier: id }, + ); + } } interface State { @@ -96,7 +120,10 @@ export async function importWithContext( return Promise.reject(new Error(`simulated chunk load failure: ${id}`)); } const from = parent.identifier; - const resolved = resolveSync(id, { ...resolveOpts, from }); + // The shared debug runtime bundle is linked by absolute path. + const resolved = path.isAbsolute(id) + ? id + : resolveSync(id, { ...resolveOpts, from }); if (!resolved) { throw new Error( diff --git a/packages/runtime-tags/src/html/serializer.ts b/packages/runtime-tags/src/html/serializer.ts index 6727591e4e9..65356a0e858 100644 --- a/packages/runtime-tags/src/html/serializer.ts +++ b/packages/runtime-tags/src/html/serializer.ts @@ -5,7 +5,7 @@ export const K_SCOPE_ID = Symbol("Scope ID"); const kTouchedIterator = /* @__PURE__ */ Symbol.for("marko.touchedIterator"); const { hasOwnProperty } = {}; const objectProto = Object.prototype; -const arrayProto = /* @__PURE__ */ Array.prototype; +const arrayProto = Array.prototype; const Generator = /* @__PURE__ */ (function* () {})().constructor; const AsyncGenerator = /* @__PURE__ */ (async function* () {})().constructor; // `Intl.DurationFormat` is newer than the TypeScript lib types. diff --git a/scripts/test-parallel.js b/scripts/test-parallel.js index ec31e2ec354..c76e43550c8 100644 --- a/scripts/test-parallel.js +++ b/scripts/test-parallel.js @@ -23,8 +23,11 @@ const { setTimeout: sleep } = require("node:timers/promises"); const glob = require("tiny-glob"); const ROOT = path.resolve(__dirname, ".."); -const MOCHA = require.resolve("mocha/bin/mocha.js"); +// `bin/_mocha` is the runner; `bin/mocha.js` only re-execs it with the config's +// node flags, doubling the process per worker. +const MOCHA = require.resolve("mocha/bin/_mocha"); const CONFIG = path.join(ROOT, ".mocharc.parallel.cjs"); +const NODE_ARGS = require(CONFIG)["node-option"].map((flag) => `--${flag}`); // Exit code a worker uses when it handed its remaining suites off. const RECYCLE_EXIT_CODE = 75; const SPEC_GLOB = "packages/*/@(src|test)/**/*.test.@(js|ts)"; @@ -51,9 +54,9 @@ const DEFAULT_FILE_MS = 2_000; const CORES = os.availableParallelism(); const WORKERS = Math.max(1, Number(process.env.MARKO_TEST_WORKERS) || CORES); -// Memory a worker may grow to (enforced by test-parallel-worker.cjs). Runs on -// a machine share one slot per core (and per 2GB) through files in tmpdir. -const WORKER_MEM = 2 * 1024 ** 3; +// Memory a worker may grow to: room above the heap cap, tighter under coverage. +// Runs on a machine share one slot per core (and per budget) through tmpdir. +const WORKER_MEM = (process.env.NODE_V8_COVERAGE ? 2 : 3) * 1024 ** 3; const SLOT_DIR = path.join(os.tmpdir(), "marko-test-parallel"); const SLOT_COUNT = Math.max( 1, @@ -248,7 +251,15 @@ async function runBin(bin, index, slicedFiles, mochaArgs) { function runProcess(bin, index, slicedFiles, mochaArgs, skipped) { // `--exit` so a stray timer/handle leaked by a test can't wedge the worker // (and with it the whole run) after its suite finishes. - const args = [MOCHA, "--config", CONFIG, "--reporter", "dot", "--exit"]; + const args = [ + ...NODE_ARGS, + MOCHA, + "--config", + CONFIG, + "--reporter", + "dot", + "--exit", + ]; args.push(...mochaArgs); const env = { ...process.env, MARKO_TEST_WORKER_MEM: String(WORKER_MEM) }; if (skipped) env.MARKO_TEST_SKIPPED = String(skipped);