PureXML/Sources/Schema
Mihaela Mihaljevic b3e126c430 feat(editor): schema-driven completions and what-is-missing
Slice 3 of #94. From the compiled schema, compute exactly what is allowed at an
element, for autocomplete and "what's missing".

- ContentNFA.follow(after:) returns the precise follow-set: the element-name
  labels the content automaton can accept next after the children already
  present, plus whether the content may legally end there.
- Schema.Completions reports the allowed next elements, the complete flag (false
  means a required child is still expected), a wildcard flag, and each declared
  attribute with its required and present status.
- CompletionEngine resolves an element's declared type along a coding path (the
  global declaration, then each parent's content model) and computes the
  completions; Schema.Document.completions(at:in:) is the entry over a ranged
  tree.

Tests pin the follow-set as the children accumulate (name then qty then the
optional note, complete flipping true), the attribute required/present status,
and resolution for a nested element by its coding path.
2026-06-08 13:27:37 +02:00
..
BuiltinType.swift
ComplexType.swift feat(xsd): xsi:nil/nillable and fixed/default value constraints 2026-06-08 13:03:06 +02:00
ComplexValidator.swift feat(xsd): xsi:nil/nillable and fixed/default value constraints 2026-06-08 13:03:06 +02:00
ContentMatcher.swift feat(editor): schema-driven completions and what-is-missing 2026-06-08 13:27:37 +02:00
DateTimeParser.swift
DateTimeValue.swift
DecimalValue.swift
IdentityConstraint.swift
IdentityValidator.swift
Lexical.swift
Primitive.swift
RelaxNGCompactLexer.swift
RelaxNGCompactParser.swift
RelaxNGDerivative.swift
RelaxNGParser.swift
RelaxNGPattern.swift
RelaxNGSchema.swift
SchemaDocument.swift feat(editor): schema-driven completions and what-is-missing 2026-06-08 13:27:37 +02:00
SimpleType.swift
XSDCompletions.swift feat(editor): schema-driven completions and what-is-missing 2026-06-08 13:27:37 +02:00
XSDContext.swift feat(xsd): xsi:nil/nillable and fixed/default value constraints 2026-06-08 13:03:06 +02:00
XSDParser.swift feat(xsd): xsi:nil/nillable and fixed/default value constraints 2026-06-08 13:03:06 +02:00
XSDSimpleParser.swift
XSDValidations.swift feat(xsd): xsi:nil/nillable and fixed/default value constraints 2026-06-08 13:03:06 +02:00