mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 15:56:10 +02:00
codetools: TFindDeclarationTool.FindEnumeratorOfClass: fixed enumerator in other unit
git-svn-id: trunk@32823 -
This commit is contained in:
parent
a7b9001416
commit
722f1a1d1f
@ -9923,9 +9923,9 @@ begin
|
||||
Params.Flags:=[fdfSearchInAncestors];
|
||||
if ExceptionOnNotFound then
|
||||
Include(Params.Flags,fdfExceptionOnNotFound);
|
||||
Params.SetIdentifier(Self,'Current',nil);
|
||||
Params.SetIdentifier(EnumeratorContext.Tool,'Current',nil);
|
||||
//DebugLn(['TFindDeclarationTool.FindEnumeratorOfClass search current ...']);
|
||||
if not FindIdentifierInContext(Params) then exit;
|
||||
if not EnumeratorContext.Tool.FindIdentifierInContext(Params) then exit;
|
||||
PropTool:=Params.NewCodeTool;
|
||||
PropNode:=Params.NewNode;
|
||||
//DebugLn(['TFindDeclarationTool.FindEnumeratorOfClass PropNode=',PropNode.DescAsString]);
|
||||
|
Loading…
Reference in New Issue
Block a user