SnapshotExtractor

Builds a Snapshot from compiled @Serializable SerialDescriptors — the anti-corruption boundary between kotlinx-serialization and the pure engine. The rest of the tool depends only on Snapshot, so a future compiler-plugin extractor (Approach C) can drop in behind this interface without touching the differ, classifier, or rules (design §3–§4).

Inheritors

Functions

Link copied to clipboard
abstract fun extract(roots: Iterable<SerialDescriptor>, module: SerializersModule = EmptySerializersModule(), config: SnapshotConfig = SnapshotConfig()): Snapshot

Walks the roots descriptor graphs into a Snapshot.