On Tue, 15 Oct 2019 16:38:35 -0400
Ryan Joseph <generic...@gmail.com> wrote:

> Another related question about functions. 
> 
> In unit files there is a InterfaceSection/ImplementationSection in
> TPasModule and I can use those to get a list of functions (because
> they descend from TPasSection). In a program file there only seems to
> be a InitializationSection but this doesn’t contain the same list of
> functions.   
> 
> So, how do I find the functions in a program module?

When parsing a program the module is a TPasProgram, which has a
ProgramSection.

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

Reply via email to