blob: 99ae1f10fa037fb21aefa6473420684bdd8c2220 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/// A node in a tree view of a Norg document. Includes its block and children.
public struct NorgNode: Equatable, Hashable, Sendable, Codable {
public var block: NorgBlock
public var children: [NorgNode]
public init(block: NorgBlock, children: [NorgNode] = []) {
self.block = block
self.children = children
}
}
|