Codetools: Hunt for issue #37384.

This commit is contained in:
Juha 2021-11-25 02:18:38 +02:00
parent 4d585393be
commit 2849fb27e9

View File

@ -14190,6 +14190,8 @@ end;
procedure TFindDeclarationParams.AddOperandPart(aPart: string);
begin
if aPart=FExtractedOperand then // Hunting for issue #37384
raise Exception.Create('TFindDeclarationParams.AddOperandPart: Adding duplicate "'+aPart+'"');
FExtractedOperand := FExtractedOperand + aPart;
end;