mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 10:49:16 +02:00
codetools: find declaration: search in system units if program has no header
git-svn-id: trunk@30983 -
This commit is contained in:
parent
e41d0bfaf5
commit
94614e7872
@ -2823,6 +2823,15 @@ var
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function SearchDefault: boolean;
|
||||||
|
begin
|
||||||
|
Result:=false;
|
||||||
|
if (not (fdfIgnoreUsedUnits in Params.Flags))
|
||||||
|
and FindIdentifierInHiddenUsedUnits(Params) then begin
|
||||||
|
Result:=CheckResult(true,false);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
function SearchInSourceName: boolean;
|
function SearchInSourceName: boolean;
|
||||||
// returns: true if ok to exit
|
// returns: true if ok to exit
|
||||||
// false if search should continue
|
// false if search should continue
|
||||||
@ -2844,10 +2853,6 @@ var
|
|||||||
if not (fdfCollect in Params.Flags) then
|
if not (fdfCollect in Params.Flags) then
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
if (not (fdfIgnoreUsedUnits in Params.Flags))
|
|
||||||
and FindIdentifierInHiddenUsedUnits(Params) then begin
|
|
||||||
Result:=CheckResult(true,false);
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function SearchInProperty: boolean;
|
function SearchInProperty: boolean;
|
||||||
@ -3224,6 +3229,9 @@ begin
|
|||||||
DebugLn('[TFindDeclarationTool.FindIdentifierInContext] IgnoreCurContext ');
|
DebugLn('[TFindDeclarationTool.FindIdentifierInContext] IgnoreCurContext ');
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
if LastContextNode=Tree.Root then begin
|
||||||
|
if SearchDefault then exit;
|
||||||
|
end;
|
||||||
if LastContextNode=ContextNode then begin
|
if LastContextNode=ContextNode then begin
|
||||||
// same context -> search in prior context
|
// same context -> search in prior context
|
||||||
if not LeavingContextIsPermitted then break;
|
if not LeavingContextIsPermitted then break;
|
||||||
|
Loading…
Reference in New Issue
Block a user