Re: [fpc-pascal] Read comments via fcl-passrc

2018-04-23 Thread Michael Fuchs
Am 23.04.2018 um 13:39 schrieb Michael Van Canneyt: >> Can I save the comments in the DocComment property of every element or >> is this used somewhere else? > > It's normally not used; The idea is to use this in a pasdoc->fpdoc > converter. Great, then I will capture it for my project. Thanks.

Re: [fpc-pascal] Read comments via fcl-passrc

2018-04-23 Thread Michalis Kamburelis
Michael Van Canneyt wrote: > > > On Mon, 23 Apr 2018, Michael Fuchs wrote: > > > Am 23.04.2018 um 12:43 schrieb Mattias Gaertner: > >>> I found TPasTreeContainer.NeedComments but it does nothing. > >> > >> Set that to true. Then create the parser. > > > > Ok, so I can not use the function ParseSo

Re: [fpc-pascal] Read comments via fcl-passrc

2018-04-23 Thread Michael Van Canneyt
On Mon, 23 Apr 2018, Michael Fuchs wrote: Am 23.04.2018 um 12:43 schrieb Mattias Gaertner: I found TPasTreeContainer.NeedComments but it does nothing. Set that to true. Then create the parser. Ok, so I can not use the function ParseSource from unit PParser anymore and have to write my own

Re: [fpc-pascal] Read comments via fcl-passrc

2018-04-23 Thread Michael Fuchs
Am 23.04.2018 um 12:43 schrieb Mattias Gaertner: >> I found TPasTreeContainer.NeedComments but it does nothing. > > Set that to true. Then create the parser. Ok, so I can not use the function ParseSource from unit PParser anymore and have to write my own one? > Read Parser.SavedComments on every

Re: [fpc-pascal] Read comments via fcl-passrc

2018-04-23 Thread Mattias Gaertner
On Mon, 23 Apr 2018 12:24:26 +0200 Michael Fuchs wrote: > Hi, > > while working with fcl-passrc I search for a possibility to get the > comments of a source file in the parsed tree. > > I found TPasTreeContainer.NeedComments but it does nothing. Set that to true. Then create the parser. Read P