[Issue 19800] New: JSON output does not include scoped imports
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Apr 10 07:19:34 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=19800
          Issue ID: 19800
           Summary: JSON output does not include scoped imports
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: goalitium at dissues.mail.kapsi.fi
The JSON output generated by -X does not include modules imported within
functions:
void main()
{
   import std.stdio;
   writeln("hi");
}
Compiled and run with following command:
dmd -Xf- -run main.d
run.dlang.io link to same snippet of code: https://run.dlang.io/is/C91HBX
JSON output:
[
 {
  "kind" : "module",
  "file" : "onlineapp.d",
  "members" : [
   {
    "name" : "main",
    "kind" : "function",
    "line" : 1,
    "char" : 6,
    "deco" : "FZv",
    "endline" : 5,
    "endchar" : 1
   }
  ]
 }
]
--
    
    
More information about the Digitalmars-d-bugs
mailing list