Generate docs for generated code?

wjoe invalid at example.com
Fri Jul 23 10:04:55 UTC 2021


Is there a way for the compiler to consider doc comments in auto 
generated, mixed in code?
E.g.
```D
string fooImpl = q{
    /// Bar does fancy things.
    const void bar() { /*do something fancy*/ }
};

/// This is Foo
struct Foo(A, B, C) {
   mixin(fooImpl);
}
```

So that the documentation for ```struct Foo``` has that of the 
member ```bar()``` ?


More information about the Digitalmars-d-learn mailing list