aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc/outputs/io_out/html_snippet.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-09-21 14:29:48 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-09-22 17:16:20 -0400
commit9f93ed4ced8e7434b89e93b50c3464e34e4767fb (patch)
tree39b0762b86687888b9438db61d26051048f9274f /src/sisudoc/outputs/io_out/html_snippet.d
parentcheck required tools; skipped test is incomplete (diff)
cleanup: misc. (previously deferred)
dr_document_make in three identifier spellings becomes document_make, which is what the file has been called since the rename. The mixin import audit, a template declares its imports at template scope and they are then visible in every scope it is mixed into (which is how a template-level split once hijacked a UFCS lookup in code that had not been touched). Disabling htmlSnippet's imports and rebuilding names the consumers that were relying on them rather than on their own: across twelve mixin sites, exactly one. metadata.d now imports the `to` it uses. The templates keep their imports, their own functions needing them, and narrowing those is a change of its own rather than a cleanup. And the standing FIX in source_pod.d: the insert digest line for a non pod source recorded the insert's path, where every other line in digests.txt is a filename and a digest naming a file that is not in the pod under that name cannot be checked against it. (assisted by Claude-Code)
Diffstat (limited to 'src/sisudoc/outputs/io_out/html_snippet.d')
-rw-r--r--src/sisudoc/outputs/io_out/html_snippet.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sisudoc/outputs/io_out/html_snippet.d b/src/sisudoc/outputs/io_out/html_snippet.d
index f960cea..462e78a 100644
--- a/src/sisudoc/outputs/io_out/html_snippet.d
+++ b/src/sisudoc/outputs/io_out/html_snippet.d
@@ -49,6 +49,13 @@
+/
module sisudoc.outputs.io_out.html_snippet;
@safe:
+/+ ↓ these are at template scope, so they are visible in every scope this
+ template is mixed into: twelve of them, across the output writers.
+ Removing them leaves one consumer that was relying on the leak rather than
+ on its own imports, and that one now imports what it uses. They stay here
+ because the template's own functions need them, and narrowing them to those
+ functions is a change of its own rather than a cleanup. FIX later.
++/
template htmlSnippet() {
import std.file;
import std.outbuffer;