Skip to main content

Module document

Module document 

Source
Expand description

The lowered semantic document graph (manifest §5, §6 stage 2).

Document owns every Node and hands them out through their stable NodeId. Each node carries a NodeKind, a SourceSpan, a ContentHash, a StyleId, and an AttrMap of AttrValues.

Structs§

Document
The lowered semantic document graph (manifest §5, §6 stage 2).
Node
A semantic document node (manifest §5.1).
NodeId
Stable identifier for a document node.
NodeSpec
Blueprint for allocating a node in the document arena.
StyleId
Identifier for a resolved style bundle.

Enums§

AttrValue
Attribute value carried on a semantic Node.
NodeKind
The kinds of nodes Mosaic recognises (manifest §5.1).

Type Aliases§

AttrMap
Attribute map carried on each node. Keys are interned strings in a later iteration; for now plain String keys are fine for the stub.