DecodingState
struct DecodingState : Codable
The state that must be maintained on behalf of SourceFiles while they are decoded.
-
Creates an empty instance.
Empty instances are stored in a
StatefulDecoder, and are eventually replaced during the decoding of anAST.Declaration
Swift
public init() -
Creates an instance containing
allInstances.Declaration
Swift
fileprivate init(allInstances: [Storage]) -
The values that will be used to reconstitute
SourceFiles.The ID serialized for a
SourceFileis used as an index intoallInstancesto find the correspondingstorage.Declaration
Swift
fileprivate let allInstances: [Storage]
View on GitHub