mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-17 04:01:16 +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;
|
Tool:=Params.NewCodeTool;
|
||||||
ClassNode:=Params.NewNode;
|
ClassNode:=Params.NewNode;
|
||||||
Params.ContextNode:=ClassNode;
|
Params.ContextNode:=ClassNode;
|
||||||
Params.IdentifierTool:=Tool;
|
Params.IdentifierTool:=Self;
|
||||||
// FirstChild skips keyword 'procedure' or 'function'
|
// FirstChild skips keyword 'procedure' or 'function'
|
||||||
Params.SetIdentifier(Self,@Src[ProcNode.FirstChild.StartPos],nil);
|
Params.SetIdentifier(Self,@Src[ProcNode.FirstChild.StartPos],nil);
|
||||||
// Found ancestor definition.
|
|
||||||
if Tool.FindIdentifierInContext(Params) then begin
|
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);
|
InclProcCall:=not Tool.ProcNodeHasSpecifier(Params.NewNode,psABSTRACT);
|
||||||
Break;
|
Break;
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user