mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 10:59:05 +02:00
codetools: TPascalReaderTool.GetNodeIdentifier: check if node starts at end of code, bug #19076
git-svn-id: trunk@30178 -
This commit is contained in:
parent
67b58b4044
commit
ab79608453
@ -1313,7 +1313,7 @@ end;
|
||||
function TPascalReaderTool.GetNodeIdentifier(Node: TCodeTreeNode): PChar;
|
||||
begin
|
||||
Result:=nil;
|
||||
if Node=nil then exit;
|
||||
if (Node=nil) or (Node.StartPos>SrcLen) then exit;
|
||||
case Node.Desc of
|
||||
ctnProcedure,ctnProcedureHead:
|
||||
Result:=GetProcNameIdentifier(Node);
|
||||
|
Loading…
Reference in New Issue
Block a user