[Issue 9755] New: JSON output is missing the protection attribute for templates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 19 00:22:58 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9755

           Summary: JSON output is missing the protection attribute for
                    templates
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: sludwig at outerproduct.org


--- Comment #0 from Sönke Ludwig <sludwig at outerproduct.org> 2013-03-19 00:22:56 PDT ---
The following code snipped returns JSON output without the protection level of
the template or its member:

---
private struct Test(T) {}
---

JSON output (using "dmd -o- -Xfout.json", slightly reformatted):

[{
  "kind" : "module",
  "file" : "bug_template_json.d",
  "members" : [
   {
    "kind" : "template",
    "name" : "Test(T)",
    "line" : 1,
    "parameters" : [{"name" : "T", "kind" : "type"}],
    "members" : [
     {
      "name" : "Test",
      "kind" : "struct",
      "line" : 1,
      "members" : []
     }
    ]
   }
  ]
}]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list