3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-12 19:58:28 +01:00

Answer architecture round 2: 0 🔴, 0 🟡 (0 misread); heldTextLength private to writableContent

This commit is contained in:
2026-10-23 14:56:10 +02:00
parent 893a65982c
commit 25aa975c91
+1 -1
View File
@@ -94,7 +94,7 @@ export function identicalMarks(left: readonly AdfMark[], right: readonly AdfMark
}
// The length of the text the nodes hold, the nodes below them included.
export function heldTextLength(nodes: readonly AdfNode[]): number {
function heldTextLength(nodes: readonly AdfNode[]): number {
let length = 0
const pending = [...nodes]
for (let node = pending.pop(); node !== undefined; node = pending.pop()) {