Bug 12995 – Include UDA in JSON output

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-26T09:09:26Z
Last change time
2024-12-13T18:21:45Z
Keywords
json
Assigned to
No Owner
Creator
Stefan Frijters
Moved to GitHub: dmd#18842 →

Comments

Comment #0 by sfrijters — 2014-06-26T09:09:26Z
I would like to see user defined attributes for entities included in the JSON output, as these attributes can include important information on how the entities are used in the code. Maybe something like this: enum SomeEnum; @(SomeEnum, "foo") int a; { "kind" : "module", "file" : "testdoc3.d", "members" : [ { "name" : "SomeEnum", "kind" : "enum", "line" : 1, "char" : 1 }, { "name" : "a", "kind" : "variable", "comment" : " Blah\n", "line" : 6, "char" : 25, "deco" : "i", "attributes" : [ { "kind" : "SomeEnum" }, { "kind" : "string", "value" : "foo" } ] } ]
Comment #1 by robert.schadek — 2024-12-13T18:21:45Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18842 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB