mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 19:35:59 +02:00
codetools: fixed crash in class completion searching ancestor
git-svn-id: trunk@33984 -
This commit is contained in:
parent
cafb155a02
commit
123e380712
@ -7037,6 +7037,7 @@ var
|
||||
InclProcCall: Boolean;
|
||||
Beauty: TBeautifyCodeOptions;
|
||||
Params: TFindDeclarationParams;
|
||||
Tool: TFindDeclarationTool;
|
||||
begin
|
||||
if not AddInheritedCodeToOverrideMethod then exit;
|
||||
{$IFDEF CTDEBUG}
|
||||
@ -7052,15 +7053,16 @@ begin
|
||||
try
|
||||
ClassNode:=CodeCompleteClassNode;
|
||||
while FindAncestorOfClass(ClassNode,Params,True) do begin
|
||||
Tool:=Params.NewCodeTool;
|
||||
ClassNode:=Params.NewNode;
|
||||
Params.ContextNode:=ClassNode;
|
||||
Params.IdentifierTool:=Params.NewCodeTool;
|
||||
Params.IdentifierTool:=Tool;
|
||||
// FirstChild skips keyword 'procedure' or 'function'
|
||||
Params.SetIdentifier(Self,@Src[ProcNode.FirstChild.StartPos],nil);
|
||||
// Found ancestor definition.
|
||||
if FindIdentifierInContext(Params) then begin
|
||||
if Tool.FindIdentifierInContext(Params) then begin
|
||||
if Params.NewNode<>nil then
|
||||
InclProcCall:=not ProcNodeHasSpecifier(Params.NewNode,psABSTRACT);
|
||||
InclProcCall:=not Tool.ProcNodeHasSpecifier(Params.NewNode,psABSTRACT);
|
||||
Break;
|
||||
end;
|
||||
end;
|
||||
|
@ -30,8 +30,6 @@
|
||||
-clean up old entries
|
||||
-When, How?
|
||||
-maximum number of units
|
||||
-when package file not found delete package and all units only in this package
|
||||
-when file not found delete unit
|
||||
-gzip? lot of cpu, may be faster on first load
|
||||
}
|
||||
unit CodyIdentifiersDlg;
|
||||
|
@ -31,6 +31,10 @@ msgstr "מספרי שורות"
|
||||
msgid "Line Overview"
|
||||
msgstr "סקירה של כל השורה"
|
||||
|
||||
#: syndesignstringconstants.syndsresetmouseactions
|
||||
msgid "Reset mouse actions"
|
||||
msgstr ""
|
||||
|
||||
#: syndesignstringconstants.syndsseparator
|
||||
msgid "Separator"
|
||||
msgstr "מפריד"
|
||||
|
@ -31,6 +31,10 @@ msgstr "Numeri di riga"
|
||||
msgid "Line Overview"
|
||||
msgstr "Sommario riga"
|
||||
|
||||
#: syndesignstringconstants.syndsresetmouseactions
|
||||
msgid "Reset mouse actions"
|
||||
msgstr ""
|
||||
|
||||
#: syndesignstringconstants.syndsseparator
|
||||
msgid "Separator"
|
||||
msgstr "Separatore"
|
||||
|
@ -21,6 +21,10 @@ msgstr ""
|
||||
msgid "Line Overview"
|
||||
msgstr ""
|
||||
|
||||
#: syndesignstringconstants.syndsresetmouseactions
|
||||
msgid "Reset mouse actions"
|
||||
msgstr ""
|
||||
|
||||
#: syndesignstringconstants.syndsseparator
|
||||
msgid "Separator"
|
||||
msgstr ""
|
||||
|
@ -29,6 +29,10 @@ msgstr "Números de Linha"
|
||||
msgid "Line Overview"
|
||||
msgstr "Resumo Linha"
|
||||
|
||||
#: syndesignstringconstants.syndsresetmouseactions
|
||||
msgid "Reset mouse actions"
|
||||
msgstr ""
|
||||
|
||||
#: syndesignstringconstants.syndsseparator
|
||||
msgid "Separator"
|
||||
msgstr "Separador"
|
||||
|
@ -29,6 +29,10 @@ msgstr "Números de Linha"
|
||||
msgid "Line Overview"
|
||||
msgstr "Resumo Linha"
|
||||
|
||||
#: syndesignstringconstants.syndsresetmouseactions
|
||||
msgid "Reset mouse actions"
|
||||
msgstr ""
|
||||
|
||||
#: syndesignstringconstants.syndsseparator
|
||||
msgid "Separator"
|
||||
msgstr "Separador"
|
||||
|
@ -29,6 +29,10 @@ msgstr "Номера строк"
|
||||
msgid "Line Overview"
|
||||
msgstr "Граница строк"
|
||||
|
||||
#: syndesignstringconstants.syndsresetmouseactions
|
||||
msgid "Reset mouse actions"
|
||||
msgstr ""
|
||||
|
||||
#: syndesignstringconstants.syndsseparator
|
||||
msgid "Separator"
|
||||
msgstr "Линия отделения поля (лев)"
|
||||
|
@ -29,6 +29,10 @@ msgstr "Номери Рядків"
|
||||
msgid "Line Overview"
|
||||
msgstr "Огляд Ліній"
|
||||
|
||||
#: syndesignstringconstants.syndsresetmouseactions
|
||||
msgid "Reset mouse actions"
|
||||
msgstr ""
|
||||
|
||||
#: syndesignstringconstants.syndsseparator
|
||||
msgid "Separator"
|
||||
msgstr "Роздільник"
|
||||
|
@ -499,6 +499,14 @@ msgstr ""
|
||||
msgid "IDE Command"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -498,6 +498,14 @@ msgstr "Výběr"
|
||||
msgid "IDE Command"
|
||||
msgstr "Příkaz IDE"
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -505,6 +505,14 @@ msgstr "Auswahl"
|
||||
msgid "IDE Command"
|
||||
msgstr "IDE-Kommando"
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -492,6 +492,14 @@ msgstr ""
|
||||
msgid "IDE Command"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr ""
|
||||
|
@ -494,6 +494,14 @@ msgstr ""
|
||||
msgid "IDE Command"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -497,6 +497,14 @@ msgstr "בחירה"
|
||||
msgid "IDE Command"
|
||||
msgstr "פקודת IDE"
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -502,6 +502,14 @@ msgstr ""
|
||||
msgid "IDE Command"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -502,6 +502,14 @@ msgstr "Selezione"
|
||||
msgid "IDE Command"
|
||||
msgstr "Comando IDE"
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -500,6 +500,14 @@ msgstr "Žymėjimas"
|
||||
msgid "IDE Command"
|
||||
msgstr "IKA komanda"
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -499,6 +499,14 @@ msgstr ""
|
||||
msgid "IDE Command"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -503,6 +503,14 @@ msgstr "Zaznaczenie"
|
||||
msgid "IDE Command"
|
||||
msgstr "Polecenie IDE"
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -489,6 +489,14 @@ msgstr ""
|
||||
msgid "IDE Command"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr ""
|
||||
|
@ -497,6 +497,14 @@ msgstr "Seleção"
|
||||
msgid "IDE Command"
|
||||
msgstr "Comando IDE"
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -497,6 +497,14 @@ msgstr "Seleção"
|
||||
msgid "IDE Command"
|
||||
msgstr "Comando IDE"
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -498,6 +498,14 @@ msgstr "Выделение"
|
||||
msgid "IDE Command"
|
||||
msgstr "Команда IDE"
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -497,6 +497,14 @@ msgstr "Вибір"
|
||||
msgid "IDE Command"
|
||||
msgstr "Команда IDE"
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
@ -502,6 +502,14 @@ msgstr ""
|
||||
msgid "IDE Command"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrolldown
|
||||
msgid "Wheel scroll down"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_emcwheelscrollup
|
||||
msgid "Wheel scroll up"
|
||||
msgstr ""
|
||||
|
||||
#: syneditstrconst.syns_exporterformathtml
|
||||
msgid "HTML"
|
||||
msgstr "HTML"
|
||||
|
Loading…
Reference in New Issue
Block a user