From 16925fa4b43faa2eec1436a012bdb6f863cc539a Mon Sep 17 00:00:00 2001 From: ondrej Date: Wed, 6 Jan 2016 19:53:50 +0000 Subject: [PATCH] codetools: support static array helpers git-svn-id: trunk@51216 - --- components/codetools/codetree.pas | 2 +- components/codetools/finddeclarationtool.pas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/codetools/codetree.pas b/components/codetools/codetree.pas index b6ed4b0195..eaf3c4195f 100644 --- a/components/codetools/codetree.pas +++ b/components/codetools/codetree.pas @@ -199,7 +199,7 @@ const [ctnProcedure]; AllPointContexts = AllClasses+AllSourceTypes+ [ctnEnumerationType,ctnInterface,ctnImplementation,ctnTypeType, - ctnUseUnitNamespace,ctnUseUnitClearName,ctnOpenArrayType]; + ctnUseUnitNamespace,ctnUseUnitClearName,ctnRangedArrayType,ctnOpenArrayType]; // CodeTreeNodeSubDescriptors diff --git a/components/codetools/finddeclarationtool.pas b/components/codetools/finddeclarationtool.pas index 0cb7abc8b2..73fa288642 100644 --- a/components/codetools/finddeclarationtool.pas +++ b/components/codetools/finddeclarationtool.pas @@ -4331,7 +4331,7 @@ begin // find class helper functions SearchInHelpersInTheEnd := False; if (fdfSearchInHelpers in Flags) - and (ContextNode.Desc in [ctnClass,ctnRecordType,ctnTypeType,ctnObjCClass,ctnEnumerationType,ctnOpenArrayType]) + and (ContextNode.Desc in [ctnClass,ctnRecordType,ctnTypeType,ctnObjCClass,ctnEnumerationType,ctnRangedArrayType,ctnOpenArrayType]) and (ContextNode.Parent<>nil) and (ContextNode.Parent.Desc = ctnTypeDefinition) then begin if (fdfSearchInHelpersInTheEnd in Flags) then