mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 13:59:22 +02:00
Codetools: Revert the identifier completion change. Issue #32972.
This commit is contained in:
parent
c42495ffab
commit
3db5d120a5
@ -965,18 +965,14 @@ procedure TIdentifierList.Add(NewItem: TIdentifierListItem);
|
|||||||
var
|
var
|
||||||
AnAVLNode: TAVLTreeNode;
|
AnAVLNode: TAVLTreeNode;
|
||||||
begin
|
begin
|
||||||
if (NewItem.GetDesc = ctnProcedure)
|
if (ilcfDontAllowProcedures in ContextFlags) and (NewItem.GetDesc = ctnProcedure) and
|
||||||
and ( (NewItem.IsFunction or NewItem.IsConstructor) // definition not finished yet
|
not (NewItem.IsFunction or NewItem.IsConstructor)
|
||||||
or (ilcfDontAllowProcedures in ContextFlags) ) // ???
|
then
|
||||||
then begin
|
begin
|
||||||
Assert(NewItem.FResultType='', 'TIdentifierList.Add: FResultType is not empty');
|
|
||||||
if ilcfDontAllowProcedures in ContextFlags then
|
|
||||||
DebugLn('TIdentifierList.Add: ilcfDontAllowProcedures in ContextFlags, Desc = ctnProcedure');
|
|
||||||
NewItem.Free;
|
NewItem.Free;
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
if NewItem.FResultType<>'' then
|
|
||||||
DebugLn(['TIdentifierList.Add: ResultType=',NewItem.FResultType]);
|
|
||||||
AnAVLNode:=FIdentView.FindKey(NewItem,@CompareIdentListItemsForIdents);
|
AnAVLNode:=FIdentView.FindKey(NewItem,@CompareIdentListItemsForIdents);
|
||||||
if AnAVLNode=nil then begin
|
if AnAVLNode=nil then begin
|
||||||
if History<>nil then
|
if History<>nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user