public extension PureYAML.Model { /// A key-value pair in a located mapping: the key (as a ``Key``), the source span of the /// key node, and the located value. Parallel to ``Pair`` but carrying source coordinates. struct LocatedPair: Equatable, Sendable { public var keyNode: Key public var keyRange: SourceRange public var value: LocatedValue public init(keyNode: Key, keyRange: SourceRange, value: LocatedValue) { self.keyNode = keyNode self.keyRange = keyRange self.value = value } /// The position-free pair, projecting the located value back to a plain ``Value``. public var pair: Pair { Pair(keyNode: keyNode, value: value.value) } } }