mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 11:39:25 +02:00
codetools: enumerator can be also a record
git-svn-id: trunk@50826 -
This commit is contained in:
parent
44119ab600
commit
599e0821fb
@ -11746,7 +11746,7 @@ begin
|
||||
{$IFDEF ShowForInEval}
|
||||
DebugLn(['TFindDeclarationTool.FindEnumeratorOfClass EnumeratorContext=',FindContextToString(EnumeratorContext)]);
|
||||
{$ENDIF}
|
||||
if (EnumeratorContext.Node=nil) or (EnumeratorContext.Node.Desc<>ctnClass)
|
||||
if (EnumeratorContext.Node=nil) or not(EnumeratorContext.Node.Desc in [ctnClass,ctnRecordType])
|
||||
then begin
|
||||
if ExceptionOnNotFound then begin
|
||||
ProcTool.MoveCursorToCleanPos(ProcNode.StartPos);
|
||||
|
Loading…
Reference in New Issue
Block a user