mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 20:19:16 +02:00
codetools: parameter hints in initialization and finalization section
git-svn-id: trunk@33198 -
This commit is contained in:
parent
bc59ea1543
commit
e8de1dd378
@ -2427,8 +2427,8 @@ var
|
|||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
// check if in a begin..end block
|
// check if in a begin..end block
|
||||||
if (CursorNode.Desc<>ctnBeginBlock)
|
if CursorNode.GetNodeOfTypes([ctnBeginBlock,ctnInitialization,ctnFinalization])=nil
|
||||||
and (not CursorNode.HasParentOfType(ctnBeginBlock)) then begin
|
then begin
|
||||||
DebugLn(['TIdentCompletionTool.FindCodeContext.CheckContextIsParameter not in a begin block']);
|
DebugLn(['TIdentCompletionTool.FindCodeContext.CheckContextIsParameter not in a begin block']);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user