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(`go ${_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(`go ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`inc ${_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(`inc ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope1_id, "#text/1", count, _serialize_guard($scope1_reason, 0))} ${_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(`${_text_resume($scope1_id, "b", count, _serialize_guard(_scope_reason(), 0))} ${_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(`${_text_resume($scope0_id, "#text/1", n)} ${_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(`${_text_resume($scope0_id, "b", n)} ${_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(`${_text_resume($scope0_id, "#text/1", n)} ${_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(`${_text_resume($scope0_id, "b", n)} ${_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(`${_text_resume($scope0_id, "#text/1", n)} ${_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(`${_text_resume($scope0_id, "b", n)} ${_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(`${_text_resume($scope1_id, "#text/1", count)} ${_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(`${_text_resume($scope1_id, "b", count)} ${_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(`inc ${_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(`inc ${_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(`Tags ${_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(`Tags ${_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))} ${_text_resume($scope1_id, "#text/2", multiplier)} * ${_text_resume($scope1_id, "#text/3", baseCount, _serialize_guard($scope1_reason, 0) * 2)} = ${_text_resume($scope1_id, "#text/4", multiplier * baseCount, 2)} ${_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))} ${_text_resume($scope1_id, "c", multiplier)} * ${_text_resume($scope1_id, "d", baseCount, _serialize_guard($scope1_reason, 0) * 2)} = ${_text_resume($scope1_id, "e", multiplier * baseCount, 2)} ${_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(`${_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-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(`${_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/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)}
update ${_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)}
update ${_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(`${_text_resume($scope0_id, "#text/1", foo)}:${_text_resume($scope0_id, "#text/2", bar, 2)} ${_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(`${_text_resume($scope0_id, "b", foo)}:${_text_resume($scope0_id, "c", bar, 2)} ${_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(`${_escape(foo)}:${_text_resume($scope0_id, "#text/2", bar, 2)} ${_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(`${_escape(foo)}:${_text_resume($scope0_id, "c", bar, 2)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_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/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)}
clear ${_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)}
clear ${_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)}
update ${_el_resume($scope0_id, "#button/2")}reselect ${_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)}
update ${_el_resume($scope0_id, "c")}reselect ${_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(`post ${_el_resume($scope0_id, "#button/0")}pre ${_el_resume($scope0_id, "#button/1")}dec ${_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(`post ${_el_resume($scope0_id, "a")}pre ${_el_resume($scope0_id, "b")}dec ${_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(`Before ${_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(`Before ${_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(`Before ${_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(`Before ${_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)}
Before ${_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)}
Before ${_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(`Toggle ${_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(`Toggle ${_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(`Multiplier: ${_text_resume($scope0_id, "#text/2", mult, 2)} ${_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(`Multiplier: ${_text_resume($scope0_id, "c", mult, 2)} ${_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")}${_text_resume($scope0_id, "#text/2", disabled ? "enable" : "disable")} ${_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")}${_text_resume($scope0_id, "c", "enable")} ${_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")}toggle ${_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")}toggle ${_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(`${_text_resume($scope0_id, "#text/1", loaded)} ${_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(`${_text_resume($scope0_id, "b", "no")} ${_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(`${_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/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(`${_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/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(`toggle ${_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(`toggle ${_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(`inc ${_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(`inc ${_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(`Inc ${_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(`Inc ${_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(`toggle ${_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(`toggle ${_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(`${_text_resume($scope0_id, "#text/1", text, _serialize_guard($scope0_reason, 0))} ${_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(`${_text_resume($scope0_id, "b", text, _serialize_guard($scope0_reason, 0))} ${_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(`${_text_resume($scope0_id, "#text/1", text, _serialize_guard($scope0_reason, 0))} ${_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(`${_text_resume($scope0_id, "b", text, _serialize_guard($scope0_reason, 0))} ${_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(`${_text_resume($scope0_id, "#text/1", text, $sg__input_value_text)} ${_text_resume($scope0_id, "#text/2", textAlias, $sg__input_value_text * 2)} ${_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(`${_text_resume($scope0_id, "b", text, $sg__input_value_text)} ${_text_resume($scope0_id, "c", textAlias, $sg__input_value_text * 2)} ${_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(`${_text_resume($scope0_id, "#text/1", text, $sg__input_text)} ${_text_resume($scope0_id, "#text/2", textAlias, $sg__input_text * 2)} ${_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(`${_text_resume($scope0_id, "b", text, $sg__input_text)} ${_text_resume($scope0_id, "c", textAlias, $sg__input_text * 2)} ${_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(`${_text_resume($scope0_id, "#text/1", text, _serialize_guard($scope0_reason, 0))} ${_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(`${_text_resume($scope0_id, "b", text, _serialize_guard($scope0_reason, 0))} ${_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(`${_text_resume($scope0_id, "#text/1", clickCount)} ${_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(`${_text_resume($scope0_id, "b", clickCount)} ${_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(`${_text_resume($scope0_id, "#text/1", clickCount)} ${_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(`${_text_resume($scope0_id, "b", clickCount)} ${_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(`increase multiplier (${_text_resume($scope0_id, "#text/1", multiplier, 2)}) ${_el_resume($scope0_id, "#button/0")}increase count ${_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(`increase multiplier (${_text_resume($scope0_id, "b", multiplier, 2)}) ${_el_resume($scope0_id, "a")}increase count ${_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(`${_text_resume($scope0_id, "#text/1", clickCount)} ${_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(`${_text_resume($scope0_id, "b", clickCount)} ${_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(`${_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/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(`${_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/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(`${_text_resume($scope0_id, "#text/1", a.join(""))} ${_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(`${_text_resume($scope0_id, "b", a.join(""))} ${_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(`${_text_resume($scope0_id, "#text/1", data)} ${_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(`${_text_resume($scope0_id, "b", 0)} ${_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])}
Update ${_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])}
Update ${_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)}
Update ${_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)}
Update ${_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")}Click ${_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")}Click ${_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(`${_text_resume($scope1_id, "#text/1", count)} ${_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(`${_text_resume($scope1_id, "b", count)} ${_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(`${_text_resume($scope1_id, "#text/1", count)} ${_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(`${_text_resume($scope1_id, "b", count)} ${_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(`${_text_resume($scope1_id, "#text/1", clickCount)} ${_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(`${_text_resume($scope1_id, "b", clickCount)} ${_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(`Add ${_el_resume($scope0_id, "#button/1")}Remove ${_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(`Add ${_el_resume($scope0_id, "b")}Remove ${_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(`Toggle ${_el_resume($scope0_id, "#button/1")}Reverse ${_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(`Toggle ${_el_resume($scope0_id, "b")}Reverse ${_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!" : "")}Toggle ${_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!")}Toggle ${_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(`${_text_resume($scope0_id, "#text/1", clickCount)} ${_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(`${_text_resume($scope0_id, "b", clickCount)} ${_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(`${_text_resume($scope0_id, "#text/1", a + b)} ${_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(`${_text_resume($scope0_id, "b", 0)} ${_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(`inc ${_text_resume($scope0_id, "#text/1", n, 2)} ${_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(`inc ${_text_resume($scope0_id, "b", n, 2)} ${_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(`${_text_resume($scope0_id, "#text/1", x)} ${_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(`${_text_resume($scope0_id, "b", x)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope2_id, "#text/1", clicked ? message : error.message)} ${_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(`${_text_resume($scope2_id, "b", error.message)} ${_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(`Before ${_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(`Before ${_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")}t ${_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")}t ${_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")}b ${_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")}b ${_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(`${_text_resume($scope0_id, "#text/2", x)} ${_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(`${_text_resume($scope0_id, "c", x)} ${_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(`${_text_resume($scope0_id, "#text/1", input.format(count))} ${_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(`${_text_resume($scope0_id, "b", input.format(count))} ${_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(`${_text_resume($scope0_id, "#text/1", input.format(count))} ${_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(`${_text_resume($scope0_id, "b", input.format(count))} ${_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(`Clicked ${_text_resume($scope0_id, "#text/1", clicks, 2)} times ${_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(`Clicked ${_text_resume($scope0_id, "b", clicks, 2)} times ${_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(`Toggle ${_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(`Toggle ${_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(`inc ${_text_resume($scope0_id, "#text/1", n, 2)} ${_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(`inc ${_text_resume($scope0_id, "b", n, 2)} ${_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(`${_text_resume($scope0_id, "#text/1", loaded)} ${_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(`${_text_resume($scope0_id, "b", loaded)} ${_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")} toggle ${_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")} toggle ${_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(`direct ${_el_resume($scope0_id, "#button/0")}alias ${_el_resume($scope0_id, "#button/1")}nullary ${_el_resume($scope0_id, "#button/2")}defaulted ${_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(`direct ${_el_resume($scope0_id, "a")}alias ${_el_resume($scope0_id, "b")}nullary ${_el_resume($scope0_id, "c")}defaulted ${_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")}resize ${_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")}resize ${_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(`inc ${_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(`inc ${_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(`click ${_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(`click ${_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(`click ${_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(`click ${_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)} Reset ${_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)} Reset ${_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(`bump ${_el_resume($scope0_id, "#button/0")}s body ${_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(`bump ${_el_resume($scope0_id, "a")}s body ${_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)} Toggle ${_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)} Toggle ${_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(`A B C `);
}, $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(`A B C `);
}, $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(`pick c ${_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(`pick c ${_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(`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(`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)} Add ${_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)} Add ${_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)} Reset ${_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)} Reset ${_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(`reset ${_text_resume($scope0_id, "#text/1", value)}
Remove option ${_el_resume($scope0_id, "#button/2")}Add option ${_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(`reset ${_text_resume($scope0_id, "b", value)}
Remove option ${_el_resume($scope0_id, "c")}Add option ${_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)} Reset ${_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)} Reset ${_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(`${_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(`${_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(`A B None `);
});
_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(`A B None `);
});
_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(`${_text_resume($scope0_id, "#text/1", a)} ${_el_resume($scope0_id, "#button/0")} + ${_text_resume($scope0_id, "#text/3", b)} ${_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(`${_text_resume($scope0_id, "b", a)} ${_el_resume($scope0_id, "a")} + ${_text_resume($scope0_id, "d", b)} ${_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(`${_text_resume($scope1_id, "#text/1", count)} ${_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(`${_text_resume($scope1_id, "b", count)} ${_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(`${_text_resume($scope0_id, "#text/1", clickCount)} ${_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(`${_text_resume($scope0_id, "b", clickCount)} ${_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(`press ${_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(`press ${_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(`${_text_resume($scope0_id, "#text/1", x)},${_text_resume($scope0_id, "#text/2", y, 2)} ${_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(`${_text_resume($scope0_id, "b", x)},${_text_resume($scope0_id, "c", y, 2)} ${_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(`${_text_resume($scope0_id, "#text/1", x)} ${_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(`${_text_resume($scope0_id, "b", x)} ${_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(`${_text_resume($scope0_id, "#text/1", x)} ${_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(`${_text_resume($scope0_id, "#text/3", count)} ${_el_resume($scope0_id, "#button/2")}reset ${_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(`${_text_resume($scope0_id, "b", x)} ${_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(`${_text_resume($scope0_id, "d", count)} ${_el_resume($scope0_id, "c")}reset ${_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(`inc ${_el_resume($scope0_id, "#button/2")}assign ${_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(`inc ${_el_resume($scope0_id, "c")}assign ${_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(`${_text_resume($scope0_id, "#text/1", x)} ${_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(`${_text_resume($scope0_id, "b", x)} ${_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(`${_text_resume($scope0_id, "#text/1", x)} ${_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(`${_text_resume($scope0_id, "b", x)} ${_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(`toggle ${_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(`toggle ${_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(`Toggle ${_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(`Toggle ${_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))}
${_text_resume($scope0_id, "#text/2", x)} ${_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
}))}${_text_resume($scope0_id, "c", x)} ${_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(`${_text_resume($scope0_id, "#text/2", x)} ${_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(`${_text_resume($scope0_id, "c", x)} ${_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(`${_text_resume($scope0_id, "#text/2", x)} ${_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(`${_text_resume($scope0_id, "c", x)} ${_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(`${_text_resume($scope0_id, "#text/2", x)} ${_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(`${_text_resume($scope0_id, "c", x)} ${_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(`${_text_resume($scope0_id, "#text/2", x)} ${_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(`${_text_resume($scope0_id, "c", x)} ${_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(`${_text_resume($scope0_id, "#text/3", x)} ${_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(`${_text_resume($scope0_id, "d", x)} ${_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(`${_text_resume($scope0_id, "#text/2", x)} ${_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(`${_text_resume($scope0_id, "c", x)} ${_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)}
${_text_resume($scope1_id, "#text/3", y)} ${_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)}
${_text_resume($scope1_id, "d", y)} ${_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(`${_text_resume($scope0_id, "#text/1", input.label, _serialize_guard($scope0_reason, 1))} ${_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(`${_text_resume($scope0_id, "b", input.label, _serialize_guard($scope0_reason, 1))} ${_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)}
update ${_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)}
update ${_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(`inc ${_text_resume($scope0_id, "#text/1", n, 2)} ${_el_resume($scope0_id, "#button/0")}summary bodydialog 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(`inc ${_text_resume($scope0_id, "b", n, 2)} ${_el_resume($scope0_id, "a")}summary bodydialog 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)}
b ${_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(`${_escape($global$1.x)} `);
- 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(`Toggle ${_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(`${_escape($global$1.x)} `);
- writeScope($scope2_id, {});
+ _scope($scope2_id, {});
return 0;
}
}, $scope0_id, "b", 1, 1, 1, 0, 1);
_html(`Toggle ${_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(`${_escape(v)} ${_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(`${_escape(v)} ${_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("");
_attr_content("#button/0", $scope0_id, (count, MyThing));
_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("");
_attr_content("a", $scope0_id, MyThing);
_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(`${_text_resume($scope0_id, "#text/1", clickCount)} ${_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(`${_text_resume($scope0_id, "b", clickCount)} ${_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(`toggle ${_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(`toggle ${_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(`toggle ${_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")}Swap ${_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")}Swap ${_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(`Count: ${_text_resume($scope0_id, "#text/1", x, 2)} ${_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(`Count: ${_text_resume($scope0_id, "b", x, 2)} ${_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(`${_text_resume($scope0_id, "#text/1", x)} ${_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(`reset ${_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(`${_text_resume($scope0_id, "b", x)} ${_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(`reset ${_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(`inc ${_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(`inc ${_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(`swap ${_el_resume($scope0_id, "#button/2")}read ${_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(`swap ${_el_resume($scope0_id, "c")}read ${_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(`${_text_resume($scope0_id, "#text/3", clicks)} ${_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(`${_text_resume($scope0_id, "d", clicks)} ${_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(`${_text_resume($scope0_id, "#text/1", count)} ${_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(`${_text_resume($scope0_id, "b", count)} ${_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(`${_text_resume($scope0_id, "#text/1", clickCount)} ${_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(`${_text_resume($scope0_id, "b", clickCount)} ${_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(`Cleanup ${_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(`Cleanup ${_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(`${_text_resume($scope1_id, "#text/1", item.id)} ${_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(`${_text_resume($scope1_id, "#text/1", item.id)} ${_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(`Click me ${_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(`