diff --git a/components/codetools/finddeclarationtool.pas b/components/codetools/finddeclarationtool.pas index 9f557feeb1..e3c7b41df1 100644 --- a/components/codetools/finddeclarationtool.pas +++ b/components/codetools/finddeclarationtool.pas @@ -2277,6 +2277,9 @@ begin MoveCursorToNodeStart(TypeNode); ReadNextAtom; Result+=GetAtom; + if (TypeNode.FirstChild<>nil) + and (TypeNode.FirstChild.Desc = ctnClassInheritance) then + Result += ExtractNode(TypeNode.FirstChild, []); end; ctnConstant: begin