[Issue 12594] Follow anchor naming standards in generated html when parsing templates.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Apr 18 14:53:57 PDT 2014


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

Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
Internal note:

>From a quick glance it looks like 'parent' is not set for a non-instantiated
template member, which probably makes sense if semantic() was not run on the
template. So the call to 'emitAnchorName' won't do much since parent will be
NULL.

I've ran into a similar problem while fixing Issue 648. I think we should
consider implementing a separate ddocSemantic() routine, which will do a
minimal amount of semantic analysis just in order to initialize the fields
required for proper ddoc output. 

If you look at my fix for Issue 648
(https://github.com/D-Programming-Language/dmd/pull/1485/files) you'll see I'm
running a semantic pass, but since I only need minimal information for ddoc to
work it would be less expensive to have a separate and minimal ddocSemantic()
routine instead.

Any thoughts from other devs?

--


More information about the Digitalmars-d-bugs mailing list