codetools: fixed: not searching with context in parent nodes

git-svn-id: trunk@15267 -
This commit is contained in:
mattias 2008-05-28 08:17:30 +00:00
parent baab4f3e05
commit 252f7ee831

View File

@ -4366,9 +4366,10 @@ begin
MoveCursorToCleanPos(WithVarNode.StartPos);
RaiseException(ctsExprTypeMustBeClassOrRecord);
end;
// search identifier in with context
// search identifier in 'with' context
// Note: do not search in parent nodes (e.g. with ListBox1 do Items)
Params.Load(OldInput,false);
Exclude(Params.Flags,fdfExceptionOnNotFound);
Params.Flags:=Params.Flags-[fdfExceptionOnNotFound,fdfSearchInParentNodes];
Params.ContextNode:=WithVarExpr.Context.Node;
Result:=WithVarExpr.Context.Tool.FindIdentifierInContext(Params);
Params.Load(OldInput,true);