• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

eclipse-aascw / aas-core-codegen
85%

Build:
DEFAULT BRANCH: main
Repo Added 08 Sep 2026 12:32PM UTC
Token 6OEr7MwyCApRy9pVaul2mNkdHJbxMzUly regen
Build 39 Last
Files 269
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: main
CHANGE BRANCH
x
Reset
Sync Branches
  • main
  • mristin/Carry-the-literal-text-on-the-Java-enum
  • mristin/Compose-Go-XML-de-serialization
  • mristin/Compose-Go-XML-serialization
  • mristin/Compose-Java-XML-serialization
  • mristin/Compose-the-Python-XML-deserialization
  • mristin/Compose-the-Python-XML-serialization
  • mristin/Compose-the-TypeScript-XML-de-serialization
  • mristin/De-compose-XML-de-serialization-in-Java
  • mristin/Decompose-csharp-xml-serialization
  • mristin/Decompose-csharp-xmlization-property-reading
  • mristin/Fix-the-type-monikers-in-CSharp-and-Golang
  • mristin/Index-the-TypeScript-enum-tables
  • mristin/Report-the-XML-serialization-error-path
  • mristin/Simplify-JSON-and-XML-serialization
  • mristin/Support-named-unions
  • mristin/Support-tuples
  • remove-textwrap-dedent
  • simplify-csharp-jsonization-modeltype

16 Sep 2026 06:06PM UTC coverage: 85.341% (+0.008%) from 85.333%
35132326392

push

github

web-flow
Compose the TypeScript XML de-serialization (#698)

The XML de-serialization in TypeScript was written out property by property.
Instead, we give every parser one shape,

    type ContentParser<T> = (cursor) => Either<T, DeserializationError>

and compose them.

The framing is shared as well. ``parseElementContent`` parses the content and
consumes the closing tag; ``parseNamedElement`` is that plus an opening tag,
which retires both ``parseNamedVElement`` and ``parseNamedClassElement`` --
they only ever differed in what they read between the tags, and that is now
the argument. The property loop calls the tail directly, since it has already
read the opening tag and switched on its local name; there is deliberately
no third framer for a property, as it would duplicate ``parseNamedElement``
for the sake of one check. That check, that a property does not occur twice,
sits in front of the parse instead, and only the message it reports is
shared, in ``duplicatePropertyError``.

No closure is allocated any more. The previous code built its item parser
as an arrow at the call site. Everything is now a hoisted function
declaration, composed by passing function references, so the order in which
we emit them does not matter either.

``xmlization.ts`` for the AAS meta-model goes from 17,216 to 11,439 lines:
the class parsers from 12,176 to 6,498 (-47%) and the dispatchers from 1,773
to 1,144 (-35%).

397 of 413 new or added lines in 1 file covered. (96.13%)

34139 of 40003 relevant lines covered (85.34%)

2.56 hits per line

Relevant lines Covered
Build:
Build:
40003 RELEVANT LINES 34139 COVERED LINES
2.56 HITS PER LINE
Source Files on main
  • Tree
  • List 269
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
35132326392 main Compose the TypeScript XML de-serialization (#698) The XML de-serialization in TypeScript was written out property by property. Instead, we give every parser one shape, type ContentParser<T> = (cursor) => Either<T, DeserializationError> and... push 16 Sep 2026 06:13PM UTC web-flow github
85.34
35120798618 main Report the XML serialization error path in Python (#697) The XML serialization in Python could not fail: it wrote to the stream and never looked back. The other backends report where the serialization broke -- Go and C++ carry a path of property ... push 16 Sep 2026 04:20PM UTC web-flow github
85.33
35117506481 main Fix the type monikers in C# and Go (#696) The XML de/serializers which are keyed by a *structural* type -- a list, a tuple, an item at a fixed element name -- are named after a moniker of that type. Both the C# and the Golang moniker were ambiguo... push 16 Sep 2026 03:52PM UTC web-flow github
85.34
35087842039 main Compose the Python XML serialization (#695) Every concrete class carried two methods on the ``_Serializer``: a twelve-line ``visit_<cls>`` which only framed an element around the sequence of properties, and a ``_write_<cls>_as_sequence`` in which... push 16 Sep 2026 11:03AM UTC web-flow github
85.33
35064236266 main Compose the Python XML de-serialization (#694) Every concrete class got a ``_ReaderAndSetterFor<Cls>`` in which every property contributed a field, an entry in a bound-method dispatch map, and a twelve-line ``read_and_set_*`` method whose body wa... push 16 Sep 2026 06:36AM UTC web-flow github
85.35
35062787678 main Index the TypeScript enumeration tables instead of hashing (#693) A generated TypeScript enumeration is numeric and dense: ``_generate_enum`` emits ``FirstLiteral = 0`` and lets the rest auto-increment, and ``_generate_model_type_enum`` spells ou... push 16 Sep 2026 06:19AM UTC web-flow github
85.32
34992909053 main Carry the literal text on the Java enum (#692) Until now a generated Java enumeration was bare -- no fields, no methods, no interface -- and its string representation lived only in a private ``HashMap<E, String>`` in ``Stringification``. Every en... push 15 Sep 2026 04:11PM UTC web-flow github
85.32
34982437814 main Compose the Java XML serialization (#691) (#691) Write-side dual of #690, as #687 was of #686 in C# and #689 of #688 in Go. ``visit{Cls}`` was a verbatim copy of ``serializeElement``: 38 methods of 18 lines each spelling out the start tag, the n... push 15 Sep 2026 02:40PM UTC web-flow github
85.32
34890273264 main Compose the Java XML de-serialization (#690) Java is the third backend to have its XML read side decomposed, after C# (#686) and Go (#688), and it carried the repetition #686 described at four levels rather than three. Every property inlined its... push 14 Sep 2026 08:05PM UTC web-flow github
85.3
34782402679 main Compose the Go XML serialization (#689) Write-side dual of #688, as #687 was of #686 in C#. Measured on the AAS meta-model fixture, the serialization region of ``xmlization.go`` goes 11,080 -> 4,727 lines (-57%), and the file as a whole 16,692 -... push 13 Sep 2026 09:04PM UTC web-flow github
85.29
See All Builds (39)

Badge your Repo: aas-core-codegen

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc