Bug 9719 – ddoc isn't generated for inner values unless the outer is documented

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-14T06:57:00Z
Last change time
2013-03-15T22:17:58Z
Assigned to
nobody
Creator
simendsjo

Comments

Comment #0 by simendsjo — 2013-03-14T06:57:41Z
struct S { int i; /// not generated } /// This must be present struct A { int i; /// .. for this to be generated }
Comment #1 by hsteoh — 2013-03-15T10:33:02Z
Isn't this a feature? Since otherwise, there would be nothing to attach the member's docs to. If you just reparent the member's docs into the outer scope, then you get confusing docs: struct S { int i; /// suppose this is generated } struct T { int i; /// suppose this is also generated } Now the output might look confusing: int i; suppose this is generated int i; suppose this is also generated IMO it's not a bug to require the containing scope to at least have an empty /// so that the output would at least contain: struct S int i; suppose this is generated struct T int i; suppose this is also generated