mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 06:49:12 +02:00
codetools: fixed TCodeTreeNode.ConsistencyCheck
git-svn-id: trunk@16859 -
This commit is contained in:
parent
942fc72cd3
commit
992d5f74ab
@ -1593,14 +1593,14 @@ end;
|
|||||||
procedure TCodeToolManager.WriteError;
|
procedure TCodeToolManager.WriteError;
|
||||||
begin
|
begin
|
||||||
if FWriteExceptions then begin
|
if FWriteExceptions then begin
|
||||||
{$IFDEF CTDEBUG}
|
|
||||||
WriteDebugReport(true,false,false,false,false);
|
|
||||||
{$ENDIF}
|
|
||||||
DbgOut('### TCodeToolManager.HandleException: "'+ErrorMessage+'"');
|
DbgOut('### TCodeToolManager.HandleException: "'+ErrorMessage+'"');
|
||||||
if ErrorLine>0 then DbgOut(' at Line=',DbgS(ErrorLine));
|
if ErrorLine>0 then DbgOut(' at Line=',DbgS(ErrorLine));
|
||||||
if ErrorColumn>0 then DbgOut(' Col=',DbgS(ErrorColumn));
|
if ErrorColumn>0 then DbgOut(' Col=',DbgS(ErrorColumn));
|
||||||
if ErrorCode<>nil then DbgOut(' in "',ErrorCode.Filename,'"');
|
if ErrorCode<>nil then DbgOut(' in "',ErrorCode.Filename,'"');
|
||||||
DebugLn('');
|
DebugLn('');
|
||||||
|
{$IFDEF CTDEBUG}
|
||||||
|
WriteDebugReport(true,false,false,false,false);
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -650,9 +650,9 @@ begin
|
|||||||
if (NextBrother=nil) and (Parent.LastChild<>Self) then
|
if (NextBrother=nil) and (Parent.LastChild<>Self) then
|
||||||
raise Exception.Create('');
|
raise Exception.Create('');
|
||||||
end;
|
end;
|
||||||
if (NextBrother<>nil) and (NextBrother.Parent<>Parent) then;
|
if (NextBrother<>nil) and (NextBrother.Parent<>Parent) then
|
||||||
raise Exception.Create('');
|
raise Exception.Create('');
|
||||||
if (PriorBrother<>nil) and (PriorBrother.Parent<>Parent) then;
|
if (PriorBrother<>nil) and (PriorBrother.Parent<>Parent) then
|
||||||
raise Exception.Create('');
|
raise Exception.Create('');
|
||||||
if (FirstChild<>nil) and (FirstChild.Parent<>Self) then
|
if (FirstChild<>nil) and (FirstChild.Parent<>Self) then
|
||||||
raise Exception.Create('');
|
raise Exception.Create('');
|
||||||
|
@ -3804,7 +3804,6 @@ function TStandardCodeTool.GetPasDocComments(const StartPos: TCodeXYPosition;
|
|||||||
var
|
var
|
||||||
CleanCursorPos: integer;
|
CleanCursorPos: integer;
|
||||||
ANode: TCodeTreeNode;
|
ANode: TCodeTreeNode;
|
||||||
p: LongInt;
|
|
||||||
NextNode: TCodeTreeNode;
|
NextNode: TCodeTreeNode;
|
||||||
EndPos: LongInt;
|
EndPos: LongInt;
|
||||||
TypeNode: TCodeTreeNode;
|
TypeNode: TCodeTreeNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user