mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 19:52:26 +02:00
codetools: fixed: not searching with context in parent nodes
git-svn-id: trunk@15267 -
This commit is contained in:
parent
baab4f3e05
commit
252f7ee831
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user