Hi,
If you mean I should try something like this:
repeat
writeln(Format('%d %s', [CodeNode.Desc, CodeNode.DescAsString]));
CodeNode := CodeNode.Next;
if CodeNode.Desc = ctnImplementation then
CodeNode := CodeNode.FirstChild;
until CodeNode = nil;
Then unfortunately it doesn't work. I already thought of that too.
Darius
Vincent Snijders wrote:
Darius Blaszijk schreef:
Hi,
I have problems understanding how to traverse a CodeTree. The code
I'm talking about is pasted below together with the testunit I parsed.
The result I get from the code is:
4 Unit
5 Interface Section
16 Uses Section
6 Implementation
I would expect though that I would also see the items behind the
implementation section. How can I access them?
Looking at the code explorer I exptect, that those items are child
node, so try accessing the FirstChild property of a CodeTreeNode.
Vincent
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives