Skip to content

[kxml_compiler]Simplify the generated code for single sequence child elements #21

@martonmiklos

Description

@martonmiklos

Hi guys,

I am have an XSD generated code where there are a lot elements which have only have one sequence type child (and no attributes).
Example:
Library -> Symbols -> Symbol::List

In this example (I think) it would be very convenient if the Symbol::List could be accessed directly from the Library itself.
(Currently I access them with

lib->symbols().symbolList()
).

I have implemented it in my simplify_single_child_lists:
https://github.com/cornelius/kode/compare/master...martonmiklos:simplify_single_child_lists?expand=1

If you have a bit time and find this feature useful please take a look on it.
Any review comment is welcome!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions