Bug 17256 – Inconsistent output between json and ddoc

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-03-14T12:50:09Z
Last change time
2017-12-18T22:55:55Z
Assigned to
No Owner
Creator
Yuxuan Shui

Comments

Comment #0 by yshuiv7 — 2017-03-14T12:50:09Z
Example: struct A(bool b) { version(D_Ddoc) { /// Doc 1 void method1(); } static if (b) { /// Doc 2 void method2(); } else { /// Doc 3 void method3(); } } method1 and method2 will be in the ddoc output, but none of them are in the json output
Comment #1 by github-bugzilla — 2017-10-30T17:05:19Z
Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/608b82452befcd6463106b68e6c1b3e40887597c fix Issue 17256 - Inconsistent output between json and ddoc JSON should include version blocks in templates, same as ddoc.
Comment #2 by github-bugzilla — 2017-12-18T22:55:55Z
Commit pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/608b82452befcd6463106b68e6c1b3e40887597c fix Issue 17256 - Inconsistent output between json and ddoc