Op 26/12/2023 om 18:20 schreef Michael Van Canneyt via fpc-devel:

To fix this either we have to e.g. keep a list of packages and a list of units and then try to disambiguate to only pick the longest match. That maybe have risks that other corner cases be found or that the list of units is not yet complete at any point when this system is inside fpdoc. This requires no changes to the .xmls

This is the road to take. It's similar to what the compiler does, after all.
Not the easiest, not the safest, if at any time during the fpdoc run, the complete list of units is available.

The complete list is always available.

If you say so.   It is still ambiguous though, even if most common cases can disambiguated.   (a.b.c.d  is either symbol d in unit b.c  or field d in structure type c in unit b), which is why I didn't favor it.

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to