June 26, 2014 [Issue 12995] New: Include UDA in JSON output | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12995 Issue ID: 12995 Summary: Include UDA in JSON output Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nobody@puremagic.com Reporter: sfrijters@gmail.com 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" } ] } ] -- |
Copyright © 1999-2021 by the D Language Foundation