mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 05:41:21 +02:00
codetools: find declaration: added robust check
git-svn-id: trunk@22467 -
This commit is contained in:
parent
9e7750c617
commit
e19baa54d3
@ -1431,9 +1431,10 @@ begin
|
|||||||
Result:=(fsfIncludeDirective in SearchSmartFlags);
|
Result:=(fsfIncludeDirective in SearchSmartFlags);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
if CursorNode=nil then
|
if CursorNode=nil then begin
|
||||||
// raise exception
|
// raise exception
|
||||||
FindDeepestNodeAtPos(CleanCursorPos,true);
|
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
||||||
|
end;
|
||||||
{$IFDEF CTDEBUG}
|
{$IFDEF CTDEBUG}
|
||||||
DebugLn('TFindDeclarationTool.FindDeclaration D CursorNode=',NodeDescriptionAsString(CursorNode.Desc),' HasChilds=',dbgs(CursorNode.FirstChild<>nil));
|
DebugLn('TFindDeclarationTool.FindDeclaration D CursorNode=',NodeDescriptionAsString(CursorNode.Desc),' HasChilds=',dbgs(CursorNode.FirstChild<>nil));
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
Loading…
Reference in New Issue
Block a user