On Thu, 12 Jul 2012, Seth Grover wrote:

Greetings! I've been using fcl-passrc (PParser and PasTree) to create
a tool to help me with coverage analysis. Using the example provided
in the package directory as a starting point, I've created a tool
which finds the "begin" line number for each function/procedure
definition and inserts a line of code there to help me keep track
which functions are called and which aren't in my coverage tests. I've
got it working great and it's giving me some really useful
information.

I was looking at the idea of increasing my granularity by doing this
for every code block rather than just once at the beginning of every
function. However, as I'm descending down through the parse tree, I'm
finding that most of the TPasImplBlock objects have empty
SourceFilename values and SourceLinenumber is 0. TPasProcedure's
TProcedureBody's TPasImplBlock has the source file/line number
information set, but if I descend any lower than that the deeper
TPasImplBlock do not.

Could someone with insight into this area give me any idea of why this is?

Oversight, a bug.

I am currently working on the parser, I'll look into this.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to