diff --git a/components/codetools/finddeclarationtool.pas b/components/codetools/finddeclarationtool.pas index 20c6d75e62..36b391d453 100644 --- a/components/codetools/finddeclarationtool.pas +++ b/components/codetools/finddeclarationtool.pas @@ -2554,13 +2554,7 @@ begin // program without source name Result:='program '+ExtractFileNameOnly(MainFilename)+' '; end else begin - Result+=GetAtom+' '; - - if Node.Desc = ctnProperty then begin // add class name - ClassStr := ExtractClassName(Node, False, True); - if ClassStr <> '' then Result += ClassStr + '.'; - end; - + Result+=GetAtom+' '; // keyword Result := Result + ReadIdentifierWithDots + ' '; end; end;