mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:39:28 +02:00
Codetools: Fix SmartHint for generic specialized types. Issue #29860.
This commit is contained in:
parent
425db255bd
commit
5719672f10
@ -3198,11 +3198,16 @@ function TFindDeclarationTool.GetSmartHint(Node: TCodeTreeNode;
|
||||
function MoveToLastIdentifierThroughDots(ExtTool: TFindDeclarationTool): Boolean;
|
||||
var
|
||||
LastPos: TAtomPosition;
|
||||
HasSpecialize: Boolean;
|
||||
begin
|
||||
LastPos := ExtTool.CurPos;
|
||||
ExtTool.ReadNextAtom;
|
||||
if ExtTool.CurPos.Flag = cafWord then
|
||||
if ExtTool.CurPos.Flag = cafWord then begin
|
||||
HasSpecialize := ExtTool.UpAtomIs('SPECIALIZE');
|
||||
ExtTool.ReadNextAtom;
|
||||
if HasSpecialize then
|
||||
LastPos := ExtTool.CurPos; // Type starts after "specialize".
|
||||
end;
|
||||
while ExtTool.CurPos.Flag = cafPoint do
|
||||
begin
|
||||
ExtTool.ReadNextAtom;
|
||||
|
Loading…
Reference in New Issue
Block a user