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

Michael Fuchs freepascal at ypa-software.de
Fri Nov 3 15:26:06 CET 2017


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.


> To implement this, you would need to heavily modify one of procedure
> TPasParser.ParseDeclarations(Declarations: TPasDeclarations); or
> function ParseType(Parent: TPasElement; const NamePos:
> TPasSourcePos; const TypeName: String = ''; Full: Boolean = false;
> GenericArgs: TFPList = nil): TPasType;
> 
> depending on what you need

g
Michael



More information about the fpc-pascal mailing list