PureYAML/Sources/Tagged
Mihaela Mihaljevic 2a84d6616f feat(tagged): preserve anchors, aliases, and per-node styles end to end
Tagged.Scalar/Sequence/Mapping gain anchor and style fields
(Tagged.ScalarStyle, Tagged.CollectionStyle), Tagged.Node gains an
alias(anchor:node:) case carrying both the reference and its resolution,
and parseTagged populates all of it from the parse events instead of
discarding anchors and expanding aliases into copies.

PureYAML.dump(_ node: Tagged.Node, options:) re-emits anchors, alias
references, tags, and per-node styles over the document-wide policy.
Plain scalars re-emit their source spelling (NO stays NO, an empty null
stays empty); literal blocks cover keep chomping, single-line strip
chomping, leading blank lines, and whitespace-led first lines via an
explicit indentation indicator; folded scalars re-emit as > when the
folding rules invert exactly and degrade to a literal block otherwise.

The round-trip law parseTagged(dump(parseTagged(d))) == parseTagged(d)
is corpus-tested over every real-world fixture, with one documented
degradation: single-quoted content containing line breaks re-emits
double-quoted, value unchanged.

Closes #9
2026-07-12 13:20:12 +02:00
..
Tagged.Check.Builtins.swift feat(validation): enforce tagged mapping-key uniqueness 2026-06-28 17:03:20 +02:00
Tagged.CollectionStyle.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.ConstructionContext.swift feat(tagged): add typed constructor policy 2026-06-05 16:24:11 +02:00
Tagged.ConstructionError.swift feat(tagged): add typed constructor policy 2026-06-05 16:24:11 +02:00
Tagged.Constructor.swift fix(ci): prepare 0.1.0 release 2026-06-05 21:20:20 +02:00
Tagged.Document.swift feat(tagged): add tag-preserving validation 2026-06-05 15:35:52 +02:00
Tagged.Dumper.Scalars.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.Dumper.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.EventComposer.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.Mapping.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.Node.ModelValue.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.Node.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.NodeKind.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.Pair.swift refactor(code-style): one top-level type per source file 2026-06-26 06:14:21 +02:00
Tagged.Parser.swift feat(tagged): add tag-preserving validation 2026-06-05 15:35:52 +02:00
Tagged.Scalar.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.ScalarStyle.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.Sequence.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
Tagged.Tag.swift feat(tagged): add tag-preserving validation 2026-06-05 15:35:52 +02:00
Tagged.Validator.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00