mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 12:39:15 +02:00
codetools: reduced warnings
git-svn-id: trunk@31647 -
This commit is contained in:
parent
d38ed498ab
commit
af824f5ad1
@ -78,6 +78,7 @@ type
|
||||
iliParamNameListValid,
|
||||
iliNodeValid,
|
||||
iliNodeHashValid,
|
||||
iliNodeGoneWarned,
|
||||
iliIsConstructor,
|
||||
iliIsConstructorValid,
|
||||
iliIsDestructor,
|
||||
@ -2737,6 +2738,11 @@ begin
|
||||
Result:=nil;
|
||||
if Tool=nil then
|
||||
exit;
|
||||
|
||||
if (iliNodeValid in Flags)
|
||||
and (FToolNodesDeletedStep<>Tool.NodesDeletedChangeStep) then
|
||||
Exclude(Flags,iliNodeValid);
|
||||
|
||||
if (not (iliNodeValid in Flags)) then begin
|
||||
if iliNodeHashValid in Flags then begin
|
||||
RestoreNode;
|
||||
@ -2744,12 +2750,14 @@ begin
|
||||
Result:=FNode;
|
||||
end;
|
||||
end;
|
||||
exit;
|
||||
end else begin
|
||||
if FToolNodesDeletedStep=Tool.NodesDeletedChangeStep then begin
|
||||
Result:=FNode;
|
||||
end else begin
|
||||
DebugLn(['TIdentifierListItem.GetNode node ',Identifier,' is gone from ',Tool.MainFilename]);
|
||||
if not (iliNodeGoneWarned in Flags) then begin
|
||||
DebugLn(['TIdentifierListItem.GetNode node ',Identifier,' is gone from ',Tool.MainFilename]);
|
||||
Include(Flags,iliNodeGoneWarned);
|
||||
end;
|
||||
FNode:=nil;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user