EncodingState
struct EncodingState : Sendable
The state that must be maintained on behalf of SourceFiles while they are encoded.
-
Creates an empty instance.
Declaration
Swift
public init() -
A mapping from the identity of a
SourceFile‘s storage to a pair, (id,s), whereidis the serialized representation ofSourceFileinstances having thatstorage, andsis the storage itself.Declaration
Swift
fileprivate var allInstances: [ObjectIdentifier : (id: Int, storage: Storage)] -
Returns the corresponding state that should be used to decode the
SourceFilevalues whose encoding updated the value ofself.Declaration
Swift
func decodingState() -> DecodingState
View on GitHub