Jedi code format: fix the var count for stats.

This commit is contained in:
DomingoGP 2024-03-01 11:33:56 +01:00
parent 105219a3b7
commit cbe87487db

View File

@ -636,8 +636,7 @@ begin
for liLoop := 0 to pcNode.ChildNodeCount - 1 do
begin
lcLeafItem := pcNode.ChildNodes[liLoop];
if (lcLeafItem is TSourceToken) and
(TSourceToken(lcLeafItem).TokenType = ttWord) then
if (lcLeafItem <> nil) and (lcLeafItem.NodeType = nIdentifier) then
Inc(Result);
end;
end;