mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:59:19 +02:00
added debugging information
git-svn-id: trunk@10466 -
This commit is contained in:
parent
b2c9e59472
commit
b66c203a3c
@ -1009,14 +1009,25 @@ var
|
||||
OldCodePos: TCodePosition;
|
||||
begin
|
||||
Result:=false;
|
||||
|
||||
|
||||
{$IFDEF VerboseCompleteMethod}
|
||||
DebugLn(['TCodeCompletionCodeTool.CompleteMethod A ',ProcNode<>nil]);
|
||||
{$ENDIF}
|
||||
// check if cursor in a method
|
||||
ProcNode:=CursorNode.GetNodeOfType(ctnProcedure);
|
||||
{$IFDEF VerboseCompleteMethod}
|
||||
DebugLn(['TCodeCompletionCodeTool.CompleteMethod B ',ProcNode<>nil]);
|
||||
{$ENDIF}
|
||||
if (ProcNode=nil) and (CursorNode.Desc=ctnProcedure) then
|
||||
ProcNode:=CursorNode;
|
||||
{$IFDEF VerboseCompleteMethod}
|
||||
DebugLn(['TCodeCompletionCodeTool.CompleteMethod C ',ProcNode<>nil]);
|
||||
{$ENDIF}
|
||||
if (ProcNode=nil) or (ProcNode.Desc<>ctnProcedure)
|
||||
or ((ProcNode.SubDesc and ctnsForwardDeclaration)<>0)
|
||||
or (not NodeIsMethodBody(ProcNode)) then begin
|
||||
{$IFDEF VerboseCompleteMethod}
|
||||
DebugLn(['TCodeCompletionCodeTool.CompleteMethod node is not a method body ',ProcNode<>nil]);
|
||||
{$ENDIF}
|
||||
exit;
|
||||
end;
|
||||
|
||||
@ -1051,6 +1062,9 @@ begin
|
||||
ProcCode:=ExtractProcHead(ProcNode,
|
||||
[phpWithStart,phpWithoutClassName,phpWithVarModifiers,phpWithParameterNames,
|
||||
phpWithDefaultValues,phpWithResultType,phpWithCallingSpecs]);
|
||||
{$IFDEF VerboseCompleteMethod}
|
||||
DebugLn(['TCodeCompletionCodeTool.CompleteMethod Adding ProcName="',ProcName,'"']);
|
||||
{$ENDIF}
|
||||
AddClassInsertion(CleanProcCode,ProcCode,ProcName,ncpPrivateProcs);
|
||||
|
||||
// apply changes
|
||||
|
@ -1,5 +1,3 @@
|
||||
{ This is an automatically generated lazarus resource file }
|
||||
|
||||
LazarusResources.Add('TMyComponent1','FORMDATA',[
|
||||
'TPF0'#13'TMyComponent1'#12'MyComponent1'#4'left'#3'.'#1#3'top'#3'R'#2#0#11'T'
|
||||
+'OpenDialog'#11'OpenDialog1'#5'Title'#6#18'Open existing file'#11'FilterInde'
|
||||
|
Loading…
Reference in New Issue
Block a user