From 4ed82e203b4a82742953790be8a5be9edf6780d9 Mon Sep 17 00:00:00 2001
From: dpiercey
Date: Mon, 3 Feb 2025 11:38:49 -0700
Subject: [PATCH] chore: update snapshots
---
.../__snapshots__/html.expected/template.js | 5 ++-
.../html.expected/tags/custom-tag/index.js | 6 +++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 +--
.../html.expected/tags/hello/index.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 16 ++++++---
.../html.expected/tags/my-button.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/tags/my-button.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/tags/my-button.js | 7 +++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/tags/my-button.js | 6 +++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/tags/my-button.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/tags/my-button.js | 5 ++-
.../__snapshots__/html.expected/template.js | 8 +++--
.../html.expected/tags/counter.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 6 +++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../html.expected/tags/comments.js | 15 +++++---
.../__snapshots__/html.expected/template.js | 4 +--
.../html.expected/tags/layout.js | 4 ++-
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 12 +++++--
.../__snapshots__/html.expected/tags/child.js | 5 ++-
.../__snapshots__/html.expected/template.js | 13 +++++--
.../__snapshots__/html.expected/tags/child.js | 4 +--
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/tags/child.js | 4 +--
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/template.js | 12 ++++---
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 6 ++--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 5 ++-
.../html.expected/tags/FancyButton.js | 5 ++-
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/tags/child.js | 5 ++-
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/tags/child.js | 5 ++-
.../__snapshots__/html.expected/template.js | 19 +++++++----
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/tags/child.js | 4 +--
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/tags/child.js | 5 ++-
.../__snapshots__/html.expected/template.js | 13 +++++--
.../__snapshots__/html.expected/tags/child.js | 5 ++-
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/tags/child.js | 5 ++-
.../__snapshots__/html.expected/template.js | 19 +++++++----
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/tags/child.js | 4 +--
.../__snapshots__/html.expected/template.js | 8 +++--
.../html.expected/tags/counter.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/ssr-sanitized.expected.md | 6 ----
.../__snapshots__/ssr.expected.md | 34 ++-----------------
.../tags/display-intersection.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/tags/counter.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 6 ++--
.../html.expected/tags/checkbox.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/tags/checkbox.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/.name-cache.json | 6 +++-
.../dom.expected/template.hydrate.js | 28 ++++++++++++---
.../__snapshots__/dom.expected/template.js | 8 +++--
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/resume.expected.md | 4 +--
.../__snapshots__/ssr.expected.md | 4 +--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/template.js | 13 ++++---
.../html.expected/tags/my-let.js | 4 ++-
.../html.expected/tags/my-tag.js | 4 +--
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/tags/custom-tag.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../html.expected/tags/custom-tag.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../html.expected/tags/custom-tag.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../html.expected/tags/child/index.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 +--
.../html.expected/tags/counter.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/tags/child.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/tags/child.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/tags/child.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/tags/child.js | 4 +--
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 10 ++++--
.../__snapshots__/html.expected/template.js | 8 +++--
.../html.expected/tags/custom-tag.js | 4 +--
.../__snapshots__/html.expected/template.js | 17 ++++++----
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../html.expected/tags/custom-tag.js | 4 +--
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../html.expected/tags/tag-a/index.js | 6 +++-
.../html.expected/tags/tag-b/index.js | 6 +++-
.../__snapshots__/html.expected/template.js | 14 +++++++-
.../html.expected/tags/custom-tag.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/tags/counter.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../html.expected/tags/child/index.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 +--
.../html.expected/tags/counter.js | 4 ++-
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/template.js | 29 ++++++++++++----
.../__snapshots__/html.expected/template.js | 10 ++++--
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/template.js | 10 ++++--
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/tags/parent-el.js | 4 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 6 ++--
.../__snapshots__/html.expected/template.js | 14 ++++----
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/tags/child.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 6 +++-
.../__snapshots__/html.expected/template.js | 6 +++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 7 +++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/template.js | 8 +++--
.../html.expected/tags/2counters.js | 5 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../html.expected/tags/hello-setter.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 6 +++-
.../__snapshots__/html.expected/template.js | 18 ++++++----
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/tags/child.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 7 +++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 7 +++-
.../__snapshots__/html.expected/template.js | 4 +--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 8 +++--
.../__snapshots__/html.expected/template.js | 14 +++++---
.../__snapshots__/html.expected/template.js | 14 +++++---
.../__snapshots__/html.expected/template.js | 18 ++++++----
.../__snapshots__/html.expected/template.js | 8 ++---
.../html.expected/tags/counter.js | 4 ++-
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/template.js | 5 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/components/custom-tag.js | 5 ++-
.../__snapshots__/ssr.expected.md | 4 +--
.../html.expected/components/tags-counter.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../__snapshots__/html.expected/tags/hello.js | 4 +--
.../html.expected/components/tags-counter.js | 4 ++-
.../__snapshots__/html.expected/template.js | 4 ++-
.../html.expected/components/tags-layout.js | 4 ++-
.../__snapshots__/resume.expected.md | 12 +++----
.../__snapshots__/ssr.expected.md | 4 +--
.../html.expected/components/tags-layout.js | 4 ++-
.../__snapshots__/resume.expected.md | 12 +++----
.../__snapshots__/ssr.expected.md | 4 +--
.../__snapshots__/html.expected/template.js | 8 +++--
.../html.expected/components/tags-layout.js | 4 ++-
.../__snapshots__/resume.expected.md | 12 +++----
.../__snapshots__/ssr.expected.md | 4 +--
.../__snapshots__/html.expected/template.js | 9 +++--
.../__snapshots__/html.expected/template.js | 4 ++-
230 files changed, 991 insertions(+), 464 deletions(-)
diff --git a/packages/runtime-tags/src/__tests__/fixtures/assignment-before-tag-var/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/assignment-before-tag-var/__snapshots__/html.expected/template.js
index 26ffa471e9..2aa261eea3 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/assignment-before-tag-var/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/assignment-before-tag-var/__snapshots__/html.expected/template.js
@@ -5,8 +5,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const lastClickCount = undefined;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}${_$.escapeXML(clickCount)}${_$.markResumeNode(_scope0_id, "#text/1")} was ${_$.escapeXML(lastClickCount)}${_$.markResumeNode(_scope0_id, "#text/2")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_clickCount");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "6:6",
+ "lastClickCount": "7:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.expected/tags/custom-tag/index.js b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.expected/tags/custom-tag/index.js
index ed29eecbf6..d1f1a81423 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.expected/tags/custom-tag/index.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.expected/tags/custom-tag/index.js
@@ -10,9 +10,13 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _dynamicScope = _$.peekNextScope();
_$.dynamicTagInput(_scope0_id, "#text/0", content, {});
_$.write(`${_$.escapeXML(x)}${_$.markResumeNode(_scope0_id, "#text/1")}
`);
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#text/0!": _$.writeExistingScope(_dynamicScope),
"#text/0(": _$.normalizeDynamicRenderer(content)
+ }), "__tests__/tags/custom-tag/index.marko", 0, {
+ "_pattern_": "1:17",
+ "x": "1:19",
+ "content": "1:22"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/custom-tag/index.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.expected/template.js
index c5a61d499e..c48c94c9c0 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.expected/template.js
@@ -27,8 +27,10 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_customTag({
thing: _thing
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", 0, {
+ "x": "1:10"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.expected/template.js
index 783da43f16..8678217dd7 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/html.expected/template.js
@@ -4,8 +4,8 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope0_id = _$.nextScopeId();
const _childScope = _$.peekNextScope();
_hello({});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#childScope/0": _$.writeExistingScope(_childScope)
- });
+ }), "__tests__/template.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.expected/template.js
index 4666b519f3..0e9f584989 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/html.expected/template.js
@@ -24,9 +24,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_$.write("Body content");
}), "__tests__/template.marko_1_renderer", _scope0_id));
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#text/0!": _$.writeExistingScope(_dynamicScope),
"#text/0(": _$.normalizeDynamicRenderer(x)
+ }), "__tests__/template.marko", 0, {
+ "x": "1:10"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.expected/template.js
index a7dbc85a8f..c79da06825 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.expected/template.js
@@ -7,8 +7,8 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = input;
const _childScope = _$.peekNextScope();
_hello({});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#childScope/0": _$.writeExistingScope(_childScope)
- });
+ }), "__tests__/template.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.expected/template.js
index a6b8208a4c..b286854885 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/html.expected/template.js
@@ -4,8 +4,8 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope0_id = _$.nextScopeId();
const _childScope = _$.peekNextScope();
_hello({});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#childScope/0": _$.writeExistingScope(_childScope)
- });
+ }), "__tests__/template.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.expected/tags/hello/index.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.expected/tags/hello/index.js
index 8fcbbc9cd2..51fbbe419c 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.expected/tags/hello/index.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.expected/tags/hello/index.js
@@ -3,9 +3,9 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope0_id = _$.nextScopeId();
const _dynamicScope = _$.peekNextScope();
_$.dynamicTagInput(_scope0_id, "#text/0", input.foo, {});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#text/0!": _$.writeExistingScope(_dynamicScope),
"#text/0(": _$.normalizeDynamicRenderer(input.foo)
- });
+ }), "__tests__/tags/hello/index.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/hello/index.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.expected/template.js
index c361b822b2..047b2ed467 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags/__snapshots__/html.expected/template.js
@@ -11,8 +11,8 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
}), "__tests__/template.marko_1_renderer", _scope0_id)
})
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#childScope/0": _$.writeExistingScope(_childScope)
- });
+ }), "__tests__/template.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.expected/template.js
index a193fa2329..99d6ab19a6 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-boolean-dynamic/__snapshots__/html.expected/template.js
@@ -4,8 +4,10 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const disabled = true;
_$.write(`${_$.markResumeNode(_scope0_id, "#input/0")}${_$.markResumeNode(_scope0_id, "#button/1")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_disabled");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"disabled": disabled
+ }), "__tests__/template.marko", 0, {
+ "disabled": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.expected/template.js
index 417aab566b..ab60dab7d8 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-class/__snapshots__/html.expected/template.js
@@ -38,13 +38,16 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
}), "__tests__/template.marko_1_renderer", _scope0_id)
})
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"c": c,
"d": d,
"#childScope/1": _$.writeExistingScope(_childScope),
"#childScope/2": _$.writeExistingScope(_childScope2),
"#text/3!": _$.writeExistingScope(_dynamicScope),
"#text/3(": _$.normalizeDynamicRenderer(input.test)
+ }), "__tests__/template.marko", 0, {
+ "c": "2:10",
+ "d": "2:13"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.expected/template.js
index bbc3af2faa..d9d9de6fcd 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-escape/__snapshots__/html.expected/template.js
@@ -2,9 +2,9 @@ import * as _$ from "@marko/runtime-tags/debug/html";
const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope0_id = _$.nextScopeId();
_$.write(`${_$.markResumeNode(_scope0_id, "#div/0")}`);
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"input_foo": input.foo,
"input_bar": input.bar
- });
+ }), "__tests__/template.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.expected/template.js
index e58907a4c0..dbac85a065 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-style/__snapshots__/html.expected/template.js
@@ -40,12 +40,15 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
}), "__tests__/template.marko_1_renderer", _scope0_id)
})
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#childScope/1": _$.writeExistingScope(_childScope),
"#childScope/2": _$.writeExistingScope(_childScope2),
"#childScope/3": _$.writeExistingScope(_childScope3),
"#text/4!": _$.writeExistingScope(_dynamicScope),
"#text/4(": _$.normalizeDynamicRenderer(test)
+ }), "__tests__/template.marko", 0, {
+ "color": "1:10",
+ "test": "1:17"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.expected/template.js
index 280636f68b..95ee639140 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/await-tag/__snapshots__/html.expected/template.js
@@ -8,8 +8,10 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_$.write(`Got: ${_$.escapeXML(value)} ${_$.escapeXML(count)}${_$.markResumeNode(_scope1_id, "#text/1")}`);
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_count/subscriber");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
+ }), "__tests__/template.marko", "5:4", {
+ "value": "5:10"
});
_$.resumeClosestBranch(_scope1_id);
});
@@ -17,8 +19,10 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope2_id = _$.nextScopeId();
_$.write(`Got: ${_$.escapeXML(value)} ${_$.escapeXML(count)}${_$.markResumeNode(_scope2_id, "#text/1")}`);
_$.writeEffect(_scope2_id, "__tests__/template.marko_2_count/subscriber");
- _$.writeScope(_scope2_id, {
+ _$.debug(_$.writeScope(_scope2_id, {
"_": _$.ensureScopeWithId(_scope0_id)
+ }), "__tests__/template.marko", "9:4", {
+ "value": "9:10"
});
_$.resumeClosestBranch(_scope2_id);
});
@@ -26,15 +30,19 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope3_id = _$.nextScopeId();
_$.write(`Got: ${_$.escapeXML(value)} ${_$.escapeXML(count)}${_$.markResumeNode(_scope3_id, "#text/1")}`);
_$.writeEffect(_scope3_id, "__tests__/template.marko_3_count/subscriber");
- _$.writeScope(_scope3_id, {
+ _$.debug(_$.writeScope(_scope3_id, {
"_": _$.ensureScopeWithId(_scope0_id)
+ }), "__tests__/template.marko", "13:4", {
+ "value": "13:10"
});
_$.resumeClosestBranch(_scope3_id);
});
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_count");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"count": count
+ }), "__tests__/template.marko", 0, {
+ "count": "3:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.expected/tags/my-button.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.expected/tags/my-button.js
index 563e3f8777..86c85b5cf5 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.expected/tags/my-button.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.expected/tags/my-button.js
@@ -7,8 +7,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = input;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/tags/my-button.marko_0_onClick");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"onClick": onClick
+ }), "__tests__/tags/my-button.marko", 0, {
+ "onClick": "1:10",
+ "text": "1:19"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/my-button.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.expected/template.js
index 4436819a4b..e2afbc31dd 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-attrs/__snapshots__/html.expected/template.js
@@ -10,9 +10,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
clickCount++;
}, "__tests__/template.marko_0/onClick", _scope0_id)
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount,
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.expected/tags/my-button.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.expected/tags/my-button.js
index 50f13d6a8e..92857833a1 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.expected/tags/my-button.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.expected/tags/my-button.js
@@ -10,8 +10,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = attrs;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/tags/my-button.marko_0_onClick");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"onClick": onClick
+ }), "__tests__/tags/my-button.marko", 0, {
+ "text": "2:10",
+ "onClick": "3:10"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/my-button.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.expected/template.js
index 4436819a4b..e2afbc31dd 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-alias/__snapshots__/html.expected/template.js
@@ -10,9 +10,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
clickCount++;
}, "__tests__/template.marko_0/onClick", _scope0_id)
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount,
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.expected/tags/my-button.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.expected/tags/my-button.js
index 878d2a7b6c..af2e2418ab 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.expected/tags/my-button.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.expected/tags/my-button.js
@@ -14,8 +14,13 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = input;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/tags/my-button.marko_0_onClick");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"onClick": onClick
+ }), "__tests__/tags/my-button.marko", 0, {
+ "onClick": "1:10",
+ "_pattern_": "1:26",
+ "text": "1:28",
+ "textAlias": "2:25"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/my-button.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.expected/template.js
index 3318065b10..61a2f00a13 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/html.expected/template.js
@@ -21,10 +21,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
text: clickCount
})
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount,
"#childScope/0": _$.writeExistingScope(_childScope),
"#childScope/1": _$.writeExistingScope(_childScope2)
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.expected/tags/my-button.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.expected/tags/my-button.js
index dda3caa8a1..7f386daac2 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.expected/tags/my-button.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.expected/tags/my-button.js
@@ -10,8 +10,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = input;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/tags/my-button.marko_0_onClick");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"onClick": onClick
+ }), "__tests__/tags/my-button.marko", 0, {
+ "onClick": "1:10",
+ "text": "1:19",
+ "textAlias": "2:16"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/my-button.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.expected/template.js
index 4436819a4b..e2afbc31dd 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias/__snapshots__/html.expected/template.js
@@ -10,9 +10,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
clickCount++;
}, "__tests__/template.marko_0/onClick", _scope0_id)
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount,
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.expected/tags/my-button.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.expected/tags/my-button.js
index 563e3f8777..86c85b5cf5 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.expected/tags/my-button.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.expected/tags/my-button.js
@@ -7,8 +7,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = input;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/tags/my-button.marko_0_onClick");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"onClick": onClick
+ }), "__tests__/tags/my-button.marko", 0, {
+ "onClick": "1:10",
+ "text": "1:19"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/my-button.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.expected/template.js
index 4436819a4b..e2afbc31dd 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-input/__snapshots__/html.expected/template.js
@@ -10,9 +10,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
clickCount++;
}, "__tests__/template.marko_0/onClick", _scope0_id)
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount,
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.expected/tags/my-button.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.expected/tags/my-button.js
index eb4f2afe23..0cb15feabb 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.expected/tags/my-button.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.expected/tags/my-button.js
@@ -10,10 +10,13 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_$.dynamicTagInput(_scope0_id, "#text/1", content, {});
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/tags/my-button.marko_0_onClick");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"onClick": onClick,
"#text/1!": _$.writeExistingScope(_dynamicScope),
"#text/1(": _$.normalizeDynamicRenderer(content)
+ }), "__tests__/tags/my-button.marko", 0, {
+ "onClick": "1:10",
+ "content": "1:19"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/my-button.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.expected/template.js
index 62dae71db0..69bcc24d3d 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component-renderBody/__snapshots__/html.expected/template.js
@@ -12,15 +12,17 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_$.write(`${_$.escapeXML(clickCount)}${_$.markResumeNode(_scope1_id, "#text/0")}`);
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_clickCount/subscriber");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "2:2");
_$.resumeClosestBranch(_scope1_id);
}), "__tests__/template.marko_1_renderer", _scope0_id)
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount,
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.expected/tags/counter.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.expected/tags/counter.js
index 151dbd3a64..2d8ba670c5 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.expected/tags/counter.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.expected/tags/counter.js
@@ -4,8 +4,10 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const clickCount = 0;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/tags/counter.marko_0_clickCount");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount
+ }), "__tests__/tags/counter.marko", 0, {
+ "clickCount": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.expected/template.js
index f29868a7af..202a7c46e4 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-component/__snapshots__/html.expected/template.js
@@ -6,8 +6,8 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _childScope = _$.peekNextScope();
_counter({});
_$.write("");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#childScope/0": _$.writeExistingScope(_childScope)
- });
+ }), "__tests__/template.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.expected/template.js
index e48a90f36d..786a500024 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter-multiple-nodes/__snapshots__/html.expected/template.js
@@ -9,20 +9,23 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
if (show) {
const _scope1_id = _$.nextScopeId();
_$.write(`The count is ${_$.escapeXML(count)}${_$.markResumeNode(_scope1_id, "#text/0")}`);
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "5:2");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId = _scope1_id;
}
}, _scope0_id, "#text/2");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_show");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_count");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"show": show,
"count": count,
"#text/2(": _ifRenderer,
"#text/2!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "show": "1:6",
+ "count": "2:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.expected/template.js
index 957340ffdf..2bdf9568ca 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-conditional-counter/__snapshots__/html.expected/template.js
@@ -9,20 +9,23 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
if (show) {
const _scope1_id = _$.nextScopeId();
_$.write(`${_$.escapeXML(count)}${_$.markResumeNode(_scope1_id, "#text/0")}`);
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "5:2");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId = _scope1_id;
}
}, _scope0_id, "#text/2");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_show");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_count");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"show": show,
"count": count,
"#text/2(": _ifRenderer,
"#text/2!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "show": "1:6",
+ "count": "2:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-converge-in-if/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-converge-in-if/__snapshots__/html.expected/template.js
index 753204be05..0a0ae26f5d 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-converge-in-if/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-converge-in-if/__snapshots__/html.expected/template.js
@@ -7,15 +7,18 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
if (true) {
const _scope1_id = _$.nextScopeId();
_$.write(`${_$.escapeXML(a + b)}${_$.markResumeNode(_scope1_id, "#text/0")}`);
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "3:2");
_ifScopeId = _scope1_id;
}
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"a": a,
"b": b,
"#text/0!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "a": "1:6",
+ "b": "2:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.expected/template.js
index 8755893c09..d2f1b4e7cd 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-const-event-handler/__snapshots__/html.expected/template.js
@@ -7,9 +7,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
}, "__tests__/template.marko_0/increment", _scope0_id);
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_increment");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount,
"increment": increment
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "1:6",
+ "increment": "2:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.expected/template.js
index aac2029be5..8415c532c5 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/html.expected/template.js
@@ -7,9 +7,13 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}${_$.markResumeNode(_scope0_id, "#button/2")}${_$.escapeXML(multipliedCount)}${_$.markResumeNode(_scope0_id, "#text/3")}
`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_count");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_multiplier");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"count": count,
"multiplier": multiplier
+ }), "__tests__/template.marko", 0, {
+ "count": "1:6",
+ "multiplier": "2:6",
+ "multipliedCount": "3:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.expected/template.js
index fce01b6450..374a48cc7f 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-counter/__snapshots__/html.expected/template.js
@@ -4,8 +4,10 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const clickCount = 0;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}
`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_clickCount");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "2:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.expected/template.js
index 571ffb369d..771c444a7d 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-dynamic-native-tag/__snapshots__/html.expected/template.js
@@ -11,9 +11,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_$.write("Hello World");
}), "__tests__/template.marko_1_renderer", _scope0_id));
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#text/0!": _$.writeExistingScope(_dynamicScope),
"#text/0(": _$.normalizeDynamicRenderer(tagName)
+ }), "__tests__/template.marko", 0, {
+ "tagName": "1:10"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.expected/template.js
index 0b77ac3869..aea816770e 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-execution-order/__snapshots__/html.expected/template.js
@@ -11,18 +11,21 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
if (show) {
const _scope1_id = _$.nextScopeId();
_$.write(`${_$.escapeXML(message.text)}${_$.markResumeNode(_scope1_id, "#text/0")}`);
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "8:2");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId = _scope1_id;
}
}, _scope0_id, "#text/1");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"message_text": message?.text,
"#text/1(": _ifRenderer,
"#text/1!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "message": "1:6",
+ "show": "2:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.expected/template.js
index 1ce95da7fd..ecf9062d43 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-fn-with-block/__snapshots__/html.expected/template.js
@@ -4,8 +4,10 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const count = 0;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_count");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"count": count
+ }), "__tests__/template.marko", 0, {
+ "count": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.expected/template.js
index 0a0045693f..4f521b575c 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-handler-multi-ref-nested/__snapshots__/html.expected/template.js
@@ -5,9 +5,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const b = 1;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_a_b");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"a": a,
"b": b
+ }), "__tests__/template.marko", 0, {
+ "a": "1:6",
+ "b": "2:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.expected/tags/comments.js b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.expected/tags/comments.js
index 5f7657cb29..66f46d0b4d 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.expected/tags/comments.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.expected/tags/comments.js
@@ -17,10 +17,10 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
comments: comment.comments,
path: id
});
- _$.writeScope(_scope2_id, {
+ _$.debug(_$.writeScope(_scope2_id, {
"#childScope/0": _$.writeExistingScope(_childScope),
"_": _$.ensureScopeWithId(_scope1_id)
- });
+ }), "__tests__/tags/comments.marko", "10:8");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/tags/comments.marko_2_renderer");
_ifScopeId = _scope2_id;
}
@@ -28,7 +28,7 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_scope1_.set(i, _$.ensureScopeWithId(_scope1_id));
_$.write(`${_$.markResumeNode(_scope1_id, "#li/0")}`);
_$.writeEffect(_scope1_id, "__tests__/tags/comments.marko_1_open");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"comment_comments": comment?.comments,
"i": i,
"id": id,
@@ -36,12 +36,17 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
"#text/4(": _ifRenderer,
"#text/4!": _$.getScopeById(_ifScopeId),
"_": _$.ensureScopeWithId(_scope0_id)
+ }), "__tests__/tags/comments.marko", "2:4", {
+ "comment": "2:8",
+ "i": "2:17",
+ "id": "3:12",
+ "open": "4:10"
});
}, _scope0_id, "#ul/0");
_$.write(`${_$.markResumeNode(_scope0_id, "#ul/0")}`);
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"input_path": input.path,
"#ul/0(": _scope1_.size ? _scope1_ : undefined
- });
+ }), "__tests__/tags/comments.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/comments.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.expected/template.js
index 447f829d8c..736a2fd2b6 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/__snapshots__/html.expected/template.js
@@ -4,8 +4,8 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope0_id = _$.nextScopeId();
const _childScope = _$.peekNextScope();
_comments(input);
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#childScope/0": _$.writeExistingScope(_childScope)
- });
+ }), "__tests__/template.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.expected/tags/layout.js b/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.expected/tags/layout.js
index ab53df12a0..1801b57e63 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.expected/tags/layout.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.expected/tags/layout.js
@@ -8,9 +8,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _dynamicScope = _$.peekNextScope();
_$.dynamicTagInput(_scope0_id, "#text/0", content, {});
_$.writeTrailers("
-
-
-
-
-");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#text/0!": _$.writeExistingScope(_dynamicScope),
"#text/0(": _$.normalizeDynamicRenderer(content)
+ }), "__tests__/tags/layout.marko", 0, {
+ "content": "1:10"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/layout.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.expected/template.js
index 91409c0b21..4c3864d6d6 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-layout/__snapshots__/html.expected/template.js
@@ -11,15 +11,17 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_$.write(`
Hello ${_$.escapeXML(name)}${_$.markResumeNode(_scope1_id, "#text/0")}
`);
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_name/subscriber");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "2:2");
_$.resumeClosestBranch(_scope1_id);
}), "__tests__/template.marko_1_renderer", _scope0_id)
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"name": name,
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", 0, {
+ "name": "1:10"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.expected/template.js
index 89ea6098de..6f4c226775 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/html.expected/template.js
@@ -5,9 +5,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const index = 0;
_$.write(`
${_$.escapeXML(items[0])}${_$.markResumeNode(_scope0_id, "#text/0")}
${_$.escapeXML(items[index])}${_$.markResumeNode(_scope0_id, "#text/1")}
${_$.markResumeNode(_scope0_id, "#button/2")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_items_index");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"items": items,
"index": index
+ }), "__tests__/template.marko", 0, {
+ "items": "1:5",
+ "index": "2:5"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.expected/template.js
index 9d50bc1971..b50d883545 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/html.expected/template.js
@@ -15,22 +15,28 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
name: `${outer}.${inner}`
});
_scope2_.set(_index, _$.ensureScopeWithId(_scope2_id));
- _$.writeScope(_scope2_id, {
+ _$.debug(_$.writeScope(_scope2_id, {
"#childScope/0": _$.writeExistingScope(_childScope),
"_": _$.ensureScopeWithId(_scope1_id)
+ }), "__tests__/template.marko", "5:4", {
+ "inner": "5:8"
});
}, _scope1_id, "#text/0");
_scope1_.set(_index2, _$.ensureScopeWithId(_scope1_id));
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"outer": outer,
"#text/0(": _scope2_.size ? _scope2_ : undefined,
"_": _$.ensureScopeWithId(_scope0_id)
+ }), "__tests__/template.marko", "4:2", {
+ "outer": "4:6"
});
}, _scope0_id, "#text/1");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_items");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"items": items,
"#text/1(": _scope1_.size ? _scope1_ : undefined
+ }), "__tests__/template.marko", 0, {
+ "items": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.expected/tags/child.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.expected/tags/child.js
index db85bae3aa..e367f27769 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.expected/tags/child.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.expected/tags/child.js
@@ -9,10 +9,13 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _dynamicScope = _$.peekNextScope();
_$.dynamicTagInput(_scope0_id, "#text/0", content, value);
_$.write("");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"value": value,
"#text/0!": _$.writeExistingScope(_dynamicScope),
"#text/0(": _$.normalizeDynamicRenderer(content)
+ }), "__tests__/tags/child.marko", 0, {
+ "content": "1:9",
+ "value": "1:18"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/child.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.expected/template.js
index 864784ca02..13b73d6fc8 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-params/__snapshots__/html.expected/template.js
@@ -17,26 +17,33 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope2_id = _$.nextScopeId();
_$.write(`
${_$.escapeXML(outer)}${_$.markResumeNode(_scope2_id, "#text/0")}.${_$.escapeXML(inner)}${_$.markResumeNode(_scope2_id, "#text/1")}
`);
_$.writeEffect(_scope2_id, "__tests__/template.marko_2_outer/subscriber");
- _$.writeScope(_scope2_id, {
+ _$.debug(_$.writeScope(_scope2_id, {
"_": _$.ensureScopeWithId(_scope1_id)
+ }), "__tests__/template.marko", "7:6", {
+ "inner": "7:12"
});
_$.resumeClosestBranch(_scope2_id);
}), "__tests__/template.marko_2_renderer", _scope1_id)
});
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_y/subscriber");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"outer": outer,
"#childScope/0": _$.writeExistingScope(_childScope),
"_": _$.ensureScopeWithId(_scope0_id)
+ }), "__tests__/template.marko", "6:2", {
+ "outer": "6:8"
});
_$.resumeClosestBranch(_scope1_id);
}), "__tests__/template.marko_1_renderer", _scope0_id)
});
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_x");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"x": x,
"y": y,
"#childScope/1": _$.writeExistingScope(_childScope2)
+ }), "__tests__/template.marko", 0, {
+ "x": "1:6",
+ "y": "2:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.expected/tags/child.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.expected/tags/child.js
index 72e94e09eb..54984c85aa 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.expected/tags/child.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.expected/tags/child.js
@@ -3,9 +3,9 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope0_id = _$.nextScopeId();
const _dynamicScope = _$.peekNextScope();
_$.dynamicTagInput(_scope0_id, "#text/0", input.content, {});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#text/0!": _$.writeExistingScope(_dynamicScope),
"#text/0(": _$.normalizeDynamicRenderer(input.content)
- });
+ }), "__tests__/tags/child.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/child.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.expected/template.js
index 44ad4601c8..b52e0d3de3 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-custom-tag/__snapshots__/html.expected/template.js
@@ -10,15 +10,17 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_$.write(`${_$.markResumeNode(_scope1_id, "#button/0")}`);
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_count/subscriber");
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_count");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "2:2");
_$.resumeClosestBranch(_scope1_id);
}), "__tests__/template.marko_1_renderer", _scope0_id)
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"count": count,
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", 0, {
+ "count": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.expected/tags/child.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.expected/tags/child.js
index 72e94e09eb..54984c85aa 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.expected/tags/child.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.expected/tags/child.js
@@ -3,9 +3,9 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope0_id = _$.nextScopeId();
const _dynamicScope = _$.peekNextScope();
_$.dynamicTagInput(_scope0_id, "#text/0", input.content, {});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#text/0!": _$.writeExistingScope(_dynamicScope),
"#text/0(": _$.normalizeDynamicRenderer(input.content)
- });
+ }), "__tests__/tags/child.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/child.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.expected/template.js
index 6bb12d5125..1fa2dedb83 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-dynamic-tag/__snapshots__/html.expected/template.js
@@ -9,15 +9,17 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_$.write(`${_$.markResumeNode(_scope1_id, "#button/0")}`);
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_count/subscriber");
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_count");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "4:4");
_$.resumeClosestBranch(_scope1_id);
}), "__tests__/template.marko_1_renderer", _scope0_id));
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"count": count,
"#text/0!": _$.writeExistingScope(_dynamicScope),
"#text/0(": _$.normalizeDynamicRenderer(false || Child)
+ }), "__tests__/template.marko", 0, {
+ "count": "3:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.expected/template.js
index 0bebc8b540..b0690038cf 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-for/__snapshots__/html.expected/template.js
@@ -8,13 +8,17 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_scope1_.set(_index, _$.ensureScopeWithId(_scope1_id));
_$.write(`${_$.markResumeNode(_scope1_id, "#button/0")}`);
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_num");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"num": num,
"_": _$.ensureScopeWithId(_scope0_id)
+ }), "__tests__/template.marko", "3:2", {
+ "num": "3:6"
});
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#text/0(": _scope1_.size ? _scope1_ : undefined
+ }), "__tests__/template.marko", 0, {
+ "selected": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.expected/template.js
index ef809fca1e..b5d8be0e06 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-nested-scope-if/__snapshots__/html.expected/template.js
@@ -9,26 +9,28 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_$.write(`${_$.markResumeNode(_scope1_id, "#button/0")}`);
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_clickCount");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "3:4");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId = _scope1_id;
} else {
const _scope2_id = _$.nextScopeId();
_$.write(`The button was clicked ${_$.escapeXML(clickCount)}${_$.markResumeNode(_scope2_id, "#text/0")} times.`);
- _$.writeScope(_scope2_id, {
+ _$.debug(_$.writeScope(_scope2_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "8:4");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_2_renderer");
_ifScopeId = _scope2_id;
}
}, _scope0_id, "#text/0");
_$.write("");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount,
"#text/0(": _ifRenderer,
"#text/0!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "2:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.expected/template.js
index 8fe1089a0b..0584806682 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-push-pop-list/__snapshots__/html.expected/template.js
@@ -9,15 +9,20 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_scope1_.set(_index, _$.ensureScopeWithId(_scope1_id));
_$.write(`${_$.escapeXML(item)}${_$.markResumeNode(_scope1_id, "#text/0")}`);
- _$.writeScope(_scope1_id, {});
+ _$.debug(_$.writeScope(_scope1_id, {}), "__tests__/template.marko", "5:4", {
+ "item": "5:8"
+ });
}, _scope0_id, "#text/0");
_$.write(`${_$.markResumeNode(_scope0_id, "#button/1")}${_$.markResumeNode(_scope0_id, "#button/2")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_items");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_id_items");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"id": id,
"items": items,
"#text/0(": _scope1_.size ? _scope1_ : undefined
+ }), "__tests__/template.marko", 0, {
+ "id": "2:8",
+ "items": "3:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.expected/template.js
index a1abfbe031..bb5fe07030 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/html.expected/template.js
@@ -12,15 +12,20 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_scope1_.set(_by(x, _index), _$.ensureScopeWithId(_scope1_id));
_$.write(`
${_$.escapeXML(x)}${_$.markResumeNode(_scope1_id, "#text/0")}`);
- _$.writeScope(_scope1_id, {});
+ _$.debug(_$.writeScope(_scope1_id, {}), "__tests__/template.marko", "4:4", {
+ "x": "4:8"
+ });
}, _scope0_id, "#ul/0");
_$.write(`${_$.markResumeNode(_scope0_id, "#ul/0")}${_$.markResumeNode(_scope0_id, "#button/1")}${_$.markResumeNode(_scope0_id, "#button/2")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_list");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_open");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"open": open,
"list": list,
"#ul/0(": _scope1_.size ? _scope1_ : undefined
+ }), "__tests__/template.marko", 0, {
+ "open": "1:6",
+ "list": "2:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.expected/template.js
index 62ba4131ae..06140f0020 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/html.expected/template.js
@@ -8,17 +8,19 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
if (show) {
const _scope1_id = _$.nextScopeId();
_$.write("Hello!");
- _$.writeScope(_scope1_id, {});
+ _$.debug(_$.writeScope(_scope1_id, {}), "__tests__/template.marko", "3:4");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId = _scope1_id;
}
}, _scope0_id, "#text/0");
_$.write(`${_$.markResumeNode(_scope0_id, "#button/1")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_show");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"show": show,
"#text/0(": _ifRenderer,
"#text/0!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "show": "2:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.expected/template.js
index e4ee1318c9..265cc105a9 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/basic-unused-ref/__snapshots__/html.expected/template.js
@@ -6,8 +6,10 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const clickCount = 0;
_$.write(`
${_$.markResumeNode(_scope0_id, "#button/0")}
`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_clickCount");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "4:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.expected/template.js
index c795535201..d89cea0375 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/batched-updates-cleanup/__snapshots__/html.expected/template.js
@@ -9,19 +9,22 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
if (show) {
const _scope1_id = _$.nextScopeId();
_$.write(`${_$.escapeXML(message)}${_$.markResumeNode(_scope1_id, "#text/0")}`);
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "4:2");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId = _scope1_id;
}
}, _scope0_id, "#text/1");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_show");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"show": show,
"message": message,
"#text/1(": _ifRenderer,
"#text/1!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "show": "1:6",
+ "message": "2:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.expected/template.js
index b1ab85558d..45fed5e23b 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/html.expected/template.js
@@ -5,9 +5,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const b = 0;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_a_b");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"a": a,
"b": b
+ }), "__tests__/template.marko", 0, {
+ "a": "1:6",
+ "b": "2:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.expected/tags/FancyButton.js b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.expected/tags/FancyButton.js
index 0093a275e5..5963462738 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.expected/tags/FancyButton.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.expected/tags/FancyButton.js
@@ -10,10 +10,13 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_$.dynamicTagInput(_scope0_id, "#text/1", content, {});
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/tags/FancyButton.marko_0_attrs");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"attrs": attrs,
"#text/1!": _$.writeExistingScope(_dynamicScope),
"#text/1(": _$.normalizeDynamicRenderer(content)
+ }), "__tests__/tags/FancyButton.marko", 0, {
+ "content": "1:10",
+ "attrs": "1:22"
});
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/FancyButton.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.expected/template.js
index 2d699345c7..56927d4f07 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/body-content/__snapshots__/html.expected/template.js
@@ -12,15 +12,17 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_$.write(`${_$.escapeXML(clickCount)}${_$.markResumeNode(_scope1_id, "#text/0")}`);
_$.writeEffect(_scope1_id, "__tests__/template.marko_1_clickCount/subscriber");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "2:2");
_$.resumeClosestBranch(_scope1_id);
}), "__tests__/template.marko_1_renderer", _scope0_id)
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"clickCount": clickCount,
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", 0, {
+ "clickCount": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.expected/tags/child.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.expected/tags/child.js
index aee7c3371d..32ba68e83e 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.expected/tags/child.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.expected/tags/child.js
@@ -7,9 +7,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = input;
_$.write(`
${_$.escapeXML(name)}${_$.markResumeNode(_scope0_id, "#text/0")}
${_$.escapeXML(name)}${_$.markResumeNode(_scope0_id, "#text/1")}${_$.escapeXML(name)}${_$.markResumeNode(_scope0_id, "#text/2")}
`);
_$.writeEffect(_scope0_id, "__tests__/tags/child.marko_0_name_write");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"name": name,
"write": write
+ }), "__tests__/tags/child.marko", 0, {
+ "name": "1:9",
+ "write": "1:15"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.expected/template.js
index e794661e2a..969fefcbce 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-for-shallow/__snapshots__/html.expected/template.js
@@ -17,15 +17,20 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
name: item
});
_scope1_.set(_index, _$.ensureScopeWithId(_scope1_id));
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", "7:2", {
+ "item": "7:6"
});
}, _scope0_id, "#text/2");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_items");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"items": items,
"write": write,
"#text/2(": _scope1_.size ? _scope1_ : undefined
+ }), "__tests__/template.marko", 0, {
+ "items": "1:6",
+ "write": "5:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.expected/tags/child.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.expected/tags/child.js
index 0d4efad241..8d86ef07b8 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.expected/tags/child.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.expected/tags/child.js
@@ -7,9 +7,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = input;
_$.write(`
${_$.escapeXML(name)}${_$.markResumeNode(_scope0_id, "#text/0")} a
${_$.escapeXML(name)}${_$.markResumeNode(_scope0_id, "#text/1")} a${_$.escapeXML(name)}${_$.markResumeNode(_scope0_id, "#text/2")} a
`);
_$.writeEffect(_scope0_id, "__tests__/tags/child.marko_0_name_write");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"name": name,
"write": write
+ }), "__tests__/tags/child.marko", 0, {
+ "name": "1:9",
+ "write": "1:15"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.expected/template.js
index 7bd8b567b6..5acc21d4de 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/html.expected/template.js
@@ -39,32 +39,32 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
write: write,
name: "Inner"
});
- _$.writeScope(_scope3_id, {
+ _$.debug(_$.writeScope(_scope3_id, {
"#childScope/0": _$.writeExistingScope(_childScope3)
- });
+ }), "__tests__/template.marko", "17:10");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_3_renderer");
_ifScopeId = _scope3_id;
}
}, _scope2_id, "#text/1");
_$.write("");
_$.writeEffect(_scope2_id, "__tests__/template.marko_2_showInner/subscriber");
- _$.writeScope(_scope2_id, {
+ _$.debug(_$.writeScope(_scope2_id, {
"#childScope/0": _$.writeExistingScope(_childScope2),
"#text/1(": _ifRenderer,
"#text/1!": _$.getScopeById(_ifScopeId),
"_": _$.ensureScopeWithId(_scope1_id)
- });
+ }), "__tests__/template.marko", "14:6");
_$.register(_ifRenderer2 = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_2_renderer");
_ifScopeId2 = _scope2_id;
}
}, _scope1_id, "#text/1");
_$.write("");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"#childScope/0": _$.writeExistingScope(_childScope),
"_": _$.ensureScopeWithId(_scope0_id),
"#text/1(": _ifRenderer2,
"#text/1!": _$.getScopeById(_ifScopeId2)
- });
+ }), "__tests__/template.marko", "11:2");
_$.register(_ifRenderer3 = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId3 = _scope1_id;
}
@@ -72,13 +72,18 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_showInner");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_showMiddle");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_showOuter");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"showOuter": showOuter,
"showMiddle": showMiddle,
"showInner": showInner,
"write": write,
"#text/4(": _ifRenderer3,
"#text/4!": _$.getScopeById(_ifScopeId3)
+ }), "__tests__/template.marko", 0, {
+ "showOuter": "1:6",
+ "showMiddle": "2:6",
+ "showInner": "3:6",
+ "write": "9:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.expected/template.js
index c894c9f453..c03db50271 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-same-scope/__snapshots__/html.expected/template.js
@@ -10,18 +10,20 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_$.write("
a
bc
");
_$.writeEffect(_scope1_id, "__tests__/template.marko_1");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "6:2");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId = _scope1_id;
}
}, _scope0_id, "#text/2");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_show");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"show": show,
"#text/2(": _ifRenderer,
"#text/2!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "show": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.expected/tags/child.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.expected/tags/child.js
index 37305d66f2..8ca88220e8 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.expected/tags/child.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.expected/tags/child.js
@@ -3,9 +3,9 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope0_id = _$.nextScopeId();
_$.write("
a
bc
");
_$.writeEffect(_scope0_id, "__tests__/tags/child.marko_0_input");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"input": input
- });
+ }), "__tests__/tags/child.marko", 0);
_$.resumeClosestBranch(_scope0_id);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/child.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.expected/template.js
index ab27b9aa2c..cfce42be02 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/html.expected/template.js
@@ -15,19 +15,21 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
el().innerHTML = state;
}, "__tests__/template.marko_1/write", _scope1_id)
});
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id),
"#childScope/0": _$.writeExistingScope(_childScope)
- });
+ }), "__tests__/template.marko", "6:2");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId = _scope1_id;
}
}, _scope0_id, "#text/2");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_show");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"show": show,
"#text/2(": _ifRenderer,
"#text/2!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "show": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.expected/tags/child.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.expected/tags/child.js
index 6a6dc7926d..5bfdef7540 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.expected/tags/child.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.expected/tags/child.js
@@ -7,9 +7,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = input;
_$.write(`
${_$.escapeXML(name)}${_$.markResumeNode(_scope0_id, "#text/0")}
`);
_$.writeEffect(_scope0_id, "__tests__/tags/child.marko_0_name_write");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"name": name,
"write": write
+ }), "__tests__/tags/child.marko", 0, {
+ "name": "1:9",
+ "write": "1:15"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.expected/template.js
index e74fdc8b6f..b2539b679e 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-deep/__snapshots__/html.expected/template.js
@@ -28,25 +28,32 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
});
_scope2_.set(_index, _$.ensureScopeWithId(_scope2_id));
_$.write("");
- _$.writeScope(_scope2_id, {
+ _$.debug(_$.writeScope(_scope2_id, {
"#childScope/0": _$.writeExistingScope(_childScope2),
"_": _$.ensureScopeWithId(_scope1_id)
+ }), "__tests__/template.marko", "10:6", {
+ "middleItem": "10:10"
});
}, _scope1_id, "#text/1");
_scope1_.set(_index2, _$.ensureScopeWithId(_scope1_id));
_$.write("");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"outerItem": outerItem,
"#childScope/0": _$.writeExistingScope(_childScope),
"#text/1(": _scope2_.size ? _scope2_ : undefined,
"_": _$.ensureScopeWithId(_scope0_id)
+ }), "__tests__/template.marko", "7:2", {
+ "outerItem": "7:6"
});
}, _scope0_id, "#text/2");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_items");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"items": items,
"write": write,
"#text/2(": _scope1_.size ? _scope1_ : undefined
+ }), "__tests__/template.marko", 0, {
+ "items": "1:6",
+ "write": "5:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.expected/tags/child.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.expected/tags/child.js
index 6a6dc7926d..5bfdef7540 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.expected/tags/child.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.expected/tags/child.js
@@ -7,9 +7,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = input;
_$.write(`
${_$.escapeXML(name)}${_$.markResumeNode(_scope0_id, "#text/0")}
`);
_$.writeEffect(_scope0_id, "__tests__/tags/child.marko_0_name_write");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"name": name,
"write": write
+ }), "__tests__/tags/child.marko", 0, {
+ "name": "1:9",
+ "write": "1:15"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.expected/template.js
index a8463e051c..c8f1698e21 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-for-shallow/__snapshots__/html.expected/template.js
@@ -17,15 +17,20 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
name: item
});
_scope1_.set(_index, _$.ensureScopeWithId(_scope1_id));
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"#childScope/0": _$.writeExistingScope(_childScope)
+ }), "__tests__/template.marko", "7:2", {
+ "item": "7:6"
});
}, _scope0_id, "#text/2");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_items");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"items": items,
"write": write,
"#text/2(": _scope1_.size ? _scope1_ : undefined
+ }), "__tests__/template.marko", 0, {
+ "items": "1:6",
+ "write": "5:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.expected/tags/child.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.expected/tags/child.js
index c579ce7fc1..ab124a7887 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.expected/tags/child.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.expected/tags/child.js
@@ -7,9 +7,12 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
} = input;
_$.write(`
${_$.escapeXML(name)}${_$.markResumeNode(_scope0_id, "#text/0")}
`);
_$.writeEffect(_scope0_id, "__tests__/tags/child.marko_0_name_write");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"name": name,
"write": write
+ }), "__tests__/tags/child.marko", 0, {
+ "name": "1:9",
+ "write": "1:15"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.expected/template.js
index 30b57ffc3b..adc49db738 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/html.expected/template.js
@@ -39,32 +39,32 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
write: write,
name: "Inner"
});
- _$.writeScope(_scope3_id, {
+ _$.debug(_$.writeScope(_scope3_id, {
"#childScope/0": _$.writeExistingScope(_childScope3)
- });
+ }), "__tests__/template.marko", "17:10");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_3_renderer");
_ifScopeId = _scope3_id;
}
}, _scope2_id, "#text/1");
_$.write("");
_$.writeEffect(_scope2_id, "__tests__/template.marko_2_showInner/subscriber");
- _$.writeScope(_scope2_id, {
+ _$.debug(_$.writeScope(_scope2_id, {
"#childScope/0": _$.writeExistingScope(_childScope2),
"#text/1(": _ifRenderer,
"#text/1!": _$.getScopeById(_ifScopeId),
"_": _$.ensureScopeWithId(_scope1_id)
- });
+ }), "__tests__/template.marko", "14:6");
_$.register(_ifRenderer2 = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_2_renderer");
_ifScopeId2 = _scope2_id;
}
}, _scope1_id, "#text/1");
_$.write("");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"#childScope/0": _$.writeExistingScope(_childScope),
"_": _$.ensureScopeWithId(_scope0_id),
"#text/1(": _ifRenderer2,
"#text/1!": _$.getScopeById(_ifScopeId2)
- });
+ }), "__tests__/template.marko", "11:2");
_$.register(_ifRenderer3 = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId3 = _scope1_id;
}
@@ -72,13 +72,18 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_showInner");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_showMiddle");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_showOuter");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"showOuter": showOuter,
"showMiddle": showMiddle,
"showInner": showInner,
"write": write,
"#text/4(": _ifRenderer3,
"#text/4!": _$.getScopeById(_ifScopeId3)
+ }), "__tests__/template.marko", 0, {
+ "showOuter": "1:6",
+ "showMiddle": "2:6",
+ "showInner": "3:6",
+ "write": "9:8"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.expected/template.js
index 9ef45182fa..18f0a65a05 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/html.expected/template.js
@@ -10,18 +10,20 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope1_id = _$.nextScopeId();
_$.write("
child
");
_$.writeEffect(_scope1_id, "__tests__/template.marko_1");
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id)
- });
+ }), "__tests__/template.marko", "6:2");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId = _scope1_id;
}
}, _scope0_id, "#text/2");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_show");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"show": show,
"#text/2(": _ifRenderer,
"#text/2!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "show": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.expected/tags/child.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.expected/tags/child.js
index a5aa54b735..dbf96320e5 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.expected/tags/child.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.expected/tags/child.js
@@ -3,9 +3,9 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const _scope0_id = _$.nextScopeId();
_$.write("
child
");
_$.writeEffect(_scope0_id, "__tests__/tags/child.marko_0_input");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"input": input
- });
+ }), "__tests__/tags/child.marko", 0);
_$.resumeClosestBranch(_scope0_id);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/tags/child.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.expected/template.js
index 897a663988..019395a843 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/html.expected/template.js
@@ -15,19 +15,21 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
el().innerHTML = state;
}, "__tests__/template.marko_1/write", _scope1_id)
});
- _$.writeScope(_scope1_id, {
+ _$.debug(_$.writeScope(_scope1_id, {
"_": _$.ensureScopeWithId(_scope0_id),
"#childScope/0": _$.writeExistingScope(_childScope)
- });
+ }), "__tests__/template.marko", "6:2");
_$.register(_ifRenderer = /* @__PURE__ */_$.createRenderer(() => {}), "__tests__/template.marko_1_renderer");
_ifScopeId = _scope1_id;
}
}, _scope0_id, "#text/2");
_$.writeEffect(_scope0_id, "__tests__/template.marko_0_show");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"show": show,
"#text/2(": _ifRenderer,
"#text/2!": _$.getScopeById(_ifScopeId)
+ }), "__tests__/template.marko", 0, {
+ "show": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.expected/tags/counter.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.expected/tags/counter.js
index a4965004f4..5ba0ce12a0 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.expected/tags/counter.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.expected/tags/counter.js
@@ -4,9 +4,11 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
const count = 0;
_$.write(`${_$.markResumeNode(_scope0_id, "#button/0")}`);
_$.writeEffect(_scope0_id, "__tests__/tags/counter.marko_0_count");
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"input": input,
"count": count
+ }), "__tests__/tags/counter.marko", 0, {
+ "count": "1:6"
});
_$.resumeClosestBranch(_scope0_id);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.expected/template.js b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.expected/template.js
index a16ee633e8..25b8f67a66 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.expected/template.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/html.expected/template.js
@@ -7,8 +7,8 @@ const _renderer = /* @__PURE__ */_$.createRenderer((input, _tagVar) => {
_counter({
format: formatNumber
});
- _$.writeScope(_scope0_id, {
+ _$.debug(_$.writeScope(_scope0_id, {
"#childScope/0": _$.writeExistingScope(_childScope)
- });
+ }), "__tests__/template.marko", 0);
});
export default /* @__PURE__ */_$.createTemplate("__tests__/template.marko", _renderer);
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/ssr-sanitized.expected.md b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/ssr-sanitized.expected.md
index 1fb24b6c49..e69de29bb2 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/ssr-sanitized.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/ssr-sanitized.expected.md
@@ -1,6 +0,0 @@
-# Render End
-```html
-
-```
diff --git a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/ssr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/ssr.expected.md
index b32c289d81..6df9ebe772 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/ssr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/component-attrs-import-value/__snapshots__/ssr.expected.md
@@ -1,34 +1,4 @@
-# Write
-```html
-
+# Emit error
```
-
-# Render End
-```html
-
-
-