[Issue 19800] JSON output does not include scoped imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 18 16:59:42 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19800

--- Comment #3 from GoaLitiuM <goalitium at dissues.mail.kapsi.fi> ---
I'm trying to build a dependency tree of the imported modules for a build tool
to find out which modules are needed to rebuild after one of the files are
changed. This works with the -X switch and having the imports outside the
functions, but are missed when imported in a scope.

I don't know what the intended output should be but I assumed the import would
be listed under the members of the main function (in this particular case), but
they are only listed under the members of the modules if the module is imported
outside any functions.

--


More information about the Digitalmars-d-bugs mailing list