www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to make ddoc/ddox output alias name instead of template

Let's say I'm using TaggedAlgebraic [1]

I have a specialized union:

union _MTYPE
{
   int val;
   string sval;
}

And now I want to use this type everywhere:

alias MType = TaggedAlgebraic!_MTYPE;

Everywhere in my docs where I have a nice function like:

void foo(MType m)

It spits out:

void foo(TaggedAlgebraic!(full.package.name._MTYPE) m)

I'd rather the documentation use MType everywhere. Is there a way to 
force this?

I'm specifically looking for ddox to do this, but any information is 
helpful.

-Steve

[1] https://code.dlang.org/packages/taggedalgebraic
Apr 19 2020