[fpc-pascal] fcl-passrc: in which line a TPasElement ends?

Michael Van Canneyt michael at freepascal.org
Fri Nov 3 15:31:34 CET 2017



On Fri, 3 Nov 2017, Michael Fuchs wrote:

> Sorry, some message were not sent to list, my fault:
>
>
> Am 03.11.2017 um 14:132 schrieb Michael Van Canneyt:
>
>>> Are there plans for a support in future? Or can you give me some 
>>> advices how I can implement this by myself? I'm afraid I am an
>>> absolutly newbie in this part of of the FCL.>
>> There are no plans to support this. I can't even imagine what you
>> would need this for ?
> I try to write a small tool for code analysis. I need for example to
> discover the line length of methods.

In this case, you can probably simply use

TPasTreeContainer.FinishScope

to record the end of the method.

Michael.



More information about the fpc-pascal mailing list