ManifestFeatures

The markers of requires this reader understands: a marker names a change in what part of a Manifest means, which a reader that does not know it would misread, so ManifestTree.read refuses a Manifest that requires one outside KNOWN, wherever it stands: on the Manifest (Manifest.requires), on a context (ContextManifest.requires) or on an aggregate (AggregateManifest.requires). A value that only widens a set, such as a new enum value, needs no marker: readers read it leniently. Format 1 has none yet. One set serves every level.

Properties

Link copied to clipboard

The markers this reader understands.

Functions

Link copied to clipboard
fun check(where: String, requires: List<String>)

Refuses, an IllegalArgumentException, the requires of where (the Manifest, the context shop, the aggregate shop.cart) that hold a marker outside KNOWN, naming the level, the node and the markers.

Link copied to clipboard

The markers of several requires united, sorted and distinct: what a projection (a merge, a contract) keeps where it makes one node of several, since a reader must understand what any of them requires. A marker never moves to another level.