|
From: Michalis K. <mic...@gm...> - 2011-08-08 10:43:33
|
Hi, I recently converted my game engine to heavily use FPC generics, so of course I needed PasDoc to properly support them too :) Done. Both FPC and Delphi generics flavor is now fully handled by PasDoc as far as I know. Both specialization of generics, and declaring generic classes, work. Also, hierarchy of FPC FGL containers (TFPSList, TFPGList and friends) is added to the default knowledge of PasDoc "external classes hierarchy", so they'll show up nicely in "Class Hierarchy" diagrams too. The whole thing was tested on (much extended now) tests/ok_generic.pas (and my sources). There are of course little things to improve (the types on type identifiers list "<T1,T2>", could be parsed better and added to the internal types of the class; OTOH, they will have to be treated specially anyway, as these types are not defined at the generic declaration --- that's the whole point of generics, after all). But I think that the result looks acceptable already :) Enjoy :), Michalis |