Export actual used class structure as Xml / Uml / anything?

74 views
Skip to first unread message

der Raab

unread,
Feb 6, 2017, 4:06:58 PM2/6/17
to Haxe
Hi again! I'd love to create some sort of overview / diagram / infographic from an actual compiled project.

We're using quite a huge library for our daily project work and sometimes it would be great to print / show a complete overview of all used classes within the actual compiled and delivered project. Most of the projects use the Html5 target - but using the -xml target option while using some JavaScript related apis will simply create no output - which makes sense - but won't help. :)

So I wonder if there is a way to simply ignore all js.* imports and still get all other classes included in the xml?

And if so - is there a way to use dce to include just the really used code?

Or is this something that could be done by some crazy macro magic? Hm.

Juraj Kirchheim

unread,
Feb 7, 2017, 5:49:36 AM2/7/17
to haxe...@googlegroups.com
As for macro magic you can always use `Context.onGenerate` to grab a list of all types and then loop through them,
examine which ones have been excluded (I believe they have an @:exclude metadata) and print out any information you're interested in.

Best,
Juraj



--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

der Raab

unread,
Feb 14, 2017, 11:16:26 AM2/14/17
to Haxe
Thanks for that - I'll give it a try! :)
Reply all
Reply to author
Forward
0 new messages