www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17256] New: Inconsistent output between json and ddoc

https://issues.dlang.org/show_bug.cgi?id=17256

          Issue ID: 17256
           Summary: Inconsistent output between json and ddoc
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: yshuiv7 gmail.com

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

--
Mar 14 2017