mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 23:30:22 +02:00
codetools: class completion: checking for ancestor: fixed tool
git-svn-id: trunk@34019 -
This commit is contained in:
parent
f87c768ab5
commit
844c2556c5
@ -7052,7 +7052,8 @@ begin
|
|||||||
Params:=TFindDeclarationParams.Create;
|
Params:=TFindDeclarationParams.Create;
|
||||||
try
|
try
|
||||||
ClassNode:=CodeCompleteClassNode;
|
ClassNode:=CodeCompleteClassNode;
|
||||||
while FindAncestorOfClass(ClassNode,Params,True) do begin
|
Tool:=Self;
|
||||||
|
while Tool.FindAncestorOfClass(ClassNode,Params,True) do begin
|
||||||
Tool:=Params.NewCodeTool;
|
Tool:=Params.NewCodeTool;
|
||||||
ClassNode:=Params.NewNode;
|
ClassNode:=Params.NewNode;
|
||||||
Params.ContextNode:=ClassNode;
|
Params.ContextNode:=ClassNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user