codetools: TFindDeclarationTool.FindEnumeratorOfClass: fixed enumerator in other unit

git-svn-id: trunk@32823 -
This commit is contained in:
mattias 2011-10-11 18:13:07 +00:00
parent a7b9001416
commit 722f1a1d1f

View File

@ -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]);