codetools: class completion: fixed checking if ancestor method is proc

git-svn-id: trunk@33985 -
This commit is contained in:
mattias 2011-12-05 23:30:24 +00:00
parent 123e380712
commit b940e9e6a6

View File

@ -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;