mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 02:00:30 +01:00
codetools: support identifier cache for identifiers prefixed with & (e.g. enum values).
git-svn-id: trunk@50320 -
This commit is contained in:
parent
da9c319b92
commit
7fa343bb58
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user