mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 22:09:28 +02:00
Codetools: Find nested type in nested function. Issue #29246, patch by Penilopa P.
This commit is contained in:
parent
dd0bc54bc3
commit
3ab3101044
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user