mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-11 15:20:35 +01:00
codetools: class completion: fixed checking if ancestor method is proc
git-svn-id: trunk@33985 -
This commit is contained in:
parent
123e380712
commit
b940e9e6a6
@ -7056,12 +7056,13 @@ begin
|
||||
Tool:=Params.NewCodeTool;
|
||||
ClassNode:=Params.NewNode;
|
||||
Params.ContextNode:=ClassNode;
|
||||
Params.IdentifierTool:=Tool;
|
||||
Params.IdentifierTool:=Self;
|
||||
// FirstChild skips keyword 'procedure' or 'function'
|
||||
Params.SetIdentifier(Self,@Src[ProcNode.FirstChild.StartPos],nil);
|
||||
// Found ancestor definition.
|
||||
if Tool.FindIdentifierInContext(Params) then begin
|
||||
if Params.NewNode<>nil then
|
||||
// Found ancestor definition.
|
||||
if (Params.NewNode<>nil)
|
||||
and (Params.NewNode.Desc in [ctnProcedure,ctnProcedureHead]) then
|
||||
InclProcCall:=not Tool.ProcNodeHasSpecifier(Params.NewNode,psABSTRACT);
|
||||
Break;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user