adrdox icon indicating copy to clipboard operation
adrdox copied to clipboard

error on declarations which have a templated UDA

Open ghost91- opened this issue 7 years ago • 2 comments

Running adrdox on the following code results in errors:

module test.test;

///
struct Foo(T){}

///
@Foo!int void fun() {}

///
@Foo!string struct Bar {}
test.d(7:5)[error]: Declaration expected
test.d(10:5)[error]: Declaration expected

The corresponding symbols are not included in the generated documentation.

When adding parentheses around the template argument, the error messages still appear. However, the symbols appear in the generated documentation, but the UDAs are missing.

ghost91- avatar Jul 31 '18 21:07 ghost91-

ok, i think the parser just doesn't realize that @ can have a thing too

I have been insanely busy these last few weeks (I am getting married next week! and my day job has the busiest time of the year too) but i will try to look into it by the end of this week.

There's a couple parser bugs that need to be fixed.

adamdruppe avatar Jul 31 '18 21:07 adamdruppe

Don't worry, this is not urgent for me at all ;) And congratulations on getting married!

ghost91- avatar Jul 31 '18 21:07 ghost91-