mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 15:15:44 +01:00
Answer architecture round 2: 0 🔴, 0 🟡 (0 misread); heldTextLength private to writableContent
This commit is contained in:
+1
-1
@@ -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.
|
// 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
|
let length = 0
|
||||||
const pending = [...nodes]
|
const pending = [...nodes]
|
||||||
for (let node = pending.pop(); node !== undefined; node = pending.pop()) {
|
for (let node = pending.pop(); node !== undefined; node = pending.pop()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user