codetools: support identifier cache for identifiers prefixed with & (e.g. enum values).

git-svn-id: trunk@50320 -
This commit is contained in:
ondrej 2015-11-12 14:58:35 +00:00
parent da9c319b92
commit 7fa343bb58

View File

@ -574,8 +574,10 @@ var
NewEntry: PInterfaceIdentCacheEntry;
OldNode: TAVLTreeNode;
begin
if (Identifier<>nil) and (Identifier^ = '&') then
Inc(Identifier);
if (GetIdentLen(Identifier)=0) then
RaiseCatchableException('');
raise Exception.Create('TInterfaceIdentifierCache.Add: empty identifier'); //RaiseCatchableException(''); oooooo
if FItems=nil then
FItems:=TAVLTree.Create(@CompareTInterfaceIdentCacheEntry);
OldNode:=FindAVLNode(Identifier);