Open zeenix opened 4 years ago
It would be useful if the comments could be carried over.
A simple "carry over" won't be enough. The doc comments needs to be parsed and converted. gdbus-codegen
already does that so we can look at it's source to see how/what it does for inspiration.
As for the other comments (non-doc), I don't think we need to do anything about those.
XML returned by
org.freedesktop.DBus.Introspectable.Introspect
doesn't.
Correct and the reason is AFAIK that the xml is typically generated (our own implementation doesn't included the docs either) at runtime. However, I don't think we need to worry about this fact.
As for the other comments (non-doc), I don't think we need to do anything about those.
Actually, I wouldn't mind those being carried over verbatim but not strong feelings.
In GitLab by @tim-seoss on Nov 2, 2020, 15:57
DBus Interface definitions usually include documenting comments, e.g. the following excerpt :
zbus-xmlgen
currently discards these, and creates its own entries such as:It would be useful if the comments could be carried over.
serde-xml-rs
doesn't appear (at initial quick inspection) to offer a mechanism to read XML comments, so it may be necessary to use the underlyingxml-rs
to access (just) the comment data?n.b. Although the interface definitions from package source code / documentation etc. include these comments, XML returned by
org.freedesktop.DBus.Introspectable.Introspect
doesn't.