www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11815] New: JSON output of Template members has no protection information

https://d.puremagic.com/issues/show_bug.cgi?id=11815

           Summary: JSON output of Template members has no protection
                    information
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: gaboonviper gmx.net


--- Comment #0 from Boyd <gaboonviper gmx.net> 2013-12-25 00:20:09 PST ---
The following code snipped returns JSON output without the protection level of
its member:

---
struct NoMemberProtection(T)
{
    private string NoProtection;
}
---

JSON Output:

{
    "kind" : "template",
    "line" : 3,
    "name" : "NoMemberProtection",
    "parameters" : [
        {
            "name" : "T",
            "kind" : "type"
        }
    ],
    "members" : [
        {
            "name" : "NoMemberProtection",
            "kind" : "struct",
            "line" : 3,
            "members" : [
                {
                    "name" : "NoProtection",
                    "kind" : "variable",
                    "line" : 5,
                    "type" : "string"
                }
            ]
        }
    ]
}

This bug seems similar to bug 9755

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