mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 17:16:01 +02:00
parent
466edbbd14
commit
285dbf5846
@ -1360,7 +1360,7 @@ function TPascalReaderTool.FindMainBeginEndNode: TCodeTreeNode;
|
|||||||
begin
|
begin
|
||||||
Result:=Tree.Root;
|
Result:=Tree.Root;
|
||||||
if (Result=nil) then exit;
|
if (Result=nil) then exit;
|
||||||
if (Result.Desc=ctnProgram) then
|
if (Result.Desc in [ctnProgram,ctnLibrary]) then
|
||||||
Result:=Result.LastChild
|
Result:=Result.LastChild
|
||||||
else begin
|
else begin
|
||||||
Result:=FindImplementationNode;
|
Result:=FindImplementationNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user