Bug 3404 – JSON output should retain original alias names

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-10-15T02:54:00Z
Last change time
2013-01-19T23:09:21Z
Keywords
json
Assigned to
nobody
Creator
ary

Comments

Comment #0 by ary — 2009-10-15T02:54:38Z
For this input: --- module main; alias int myInt; myInt x; --- The JSON output is: --- { "name" : "main", "kind" : "module", "file" : "main.d", "members" : [ { "name" : "myInt", "kind" : "alias", "type" : "int", "line" : 5} ,{ "name" : "x", "kind" : "variable", "type" : "int", "line" : 7} ] } --- But the last one should be: --- { "name" : "x", "kind" : "variable", "type" : "myInt", "line" : 7} --- That is, aliases should not be forgotten. This is especially important for binding libraries where aliases are heavily used.
Comment #1 by ricochet1k — 2012-03-14T13:00:39Z
Comment #2 by bugzilla — 2013-01-19T20:17:07Z
Comment #3 by github-bugzilla — 2013-01-19T23:08:06Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9f349dff74fcfc5154e2f77b5254bf87dbdb3240 fix Issue 3404 - JSON output should retain original alias names https://github.com/D-Programming-Language/dmd/commit/bac55b34ee296d73e977812582945234d651d6d8 Merge pull request #1515 from WalterBright/b18 fix Issue 3404 - JSON output should retain original alias names