Bug 9755 – JSON output is missing the protection attribute for templates

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-19T00:22:00Z
Last change time
2013-03-19T17:07:11Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
sludwig

Comments

Comment #0 by sludwig — 2013-03-19T00:22:56Z
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" : [] } ] } ] }]
Comment #1 by andrej.mitrovich — 2013-03-19T11:08:21Z
Comment #2 by github-bugzilla — 2013-03-19T17:05:55Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/214b0fdb26837a7ec0d79070c30d1a116cd571d1 Fixes Issue 9755 - Json template protection attribute output was wrong. https://github.com/D-Programming-Language/dmd/commit/d9b68391db69b84cd37d1fcc6550ec943fc1fa32 Merge pull request #1768 from AndrejMitrovic/Fix9755 Issue 9755 - Json template protection attribute output is wrong.