mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 17:52:59 +02:00
Codetools: Fix setting "SubParams.Flags" in SearchIdentifier nested in TFindDeclarationTool.FindBaseTypeOfNode.
- "SubParams.Flags" originally copied flags from the outer search (masked with fdfGlobals). - Beforefa76ed282c
"SubParams" was named"Params" - In2cbc2f4f5a
the code was refactored into a subroutine. "Params" became a new local var (with a newly created instance). So "... +(fdfGlobals*Params.Flags);" no longer copied the existing flags.
This commit is contained in:
parent
8344427500
commit
0e3c87e83d
@ -5268,7 +5268,7 @@ var
|
||||
debugln(['TFindDeclarationTool.FindBaseTypeOfNode.SearchIdentifier Identifier=',GetIdentifier(@Src[IdentStart])]);
|
||||
{$ENDIF}
|
||||
SubParams.Flags:=[fdfSearchInParentNodes,fdfExceptionOnNotFound]
|
||||
+(fdfGlobals*SubParams.Flags);
|
||||
+(fdfGlobals*Params.Flags);
|
||||
SubParams.ContextNode:=StartNode.Parent;
|
||||
if (SubParams.ContextNode.Desc in (AllIdentifierDefinitions))
|
||||
then begin
|
||||
|
Loading…
Reference in New Issue
Block a user