mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 09:32:59 +02:00
codetools: findbasetype: skip current context in type defs
git-svn-id: trunk@39558 -
This commit is contained in:
parent
6b37bec961
commit
0869cb145f
@ -3543,7 +3543,8 @@ var
|
||||
+(fdfGlobals*SubParams.Flags);
|
||||
SubParams.SetIdentifier(Self,@Src[IdentStart],nil);
|
||||
SubParams.ContextNode:=StartNode.Parent;
|
||||
if (SubParams.ContextNode.Desc in AllIdentifierDefinitions) then begin
|
||||
if (SubParams.ContextNode.Desc in (AllIdentifierDefinitions+AllPascalTypes))
|
||||
then begin
|
||||
// pascal allows things like 'var a: a;' -> skip var definition
|
||||
Include(SubParams.Flags,fdfIgnoreCurContextNode);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user