We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 687bc8f commit 68bb59dCopy full SHA for 68bb59d
Sources/SwiftDocC/Infrastructure/Link Resolution/PathHierarchy+Serialization.swift
@@ -37,9 +37,11 @@ extension PathHierarchy.FileRepresentation {
37
}
38
39
let nodes = [Node](unsafeUninitializedCapacity: lookup.count) { buffer, initializedCount in
40
- for node in lookup.values {
+ for (identifier, node) in lookup {
41
+ assert(identifier == node.identifier, "Every node lookup should match a node with that identifier.")
42
+
43
buffer.initializeElement(
- at: identifierMap[node.identifier]!,
44
+ at: identifierMap[identifier]!,
45
to: Node(
46
name: node.name,
47
rawSpecialBehavior: node.specialBehaviors.rawValue,
0 commit comments