Codetools: Find nested type in nested function. Issue #29246, patch by Penilopa P.

This commit is contained in:
Juha 2024-03-05 22:41:41 +02:00
parent dd0bc54bc3
commit 3ab3101044

View File

@ -5468,8 +5468,9 @@ var
if SubParams.ContextNode.Desc=ctnParameterList then
// skip search in parameter list
SubParams.ContextNode:=SubParams.ContextNode.Parent;
if SubParams.ContextNode.Desc=ctnProcedureHead then
// skip search in proc parameters
if (SubParams.ContextNode.Desc=ctnProcedureHead)
and (StartNode.Desc<>ctnIdentifier) then
// skip search in proc parameters if it is not the function result
SubParams.ContextNode:=SubParams.ContextNode.Parent;
MoveCursorToCleanPos(CleanPos);