mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 20:09:12 +02:00
codetools: GetSmartHint: ctnSetType: append initial value, from Ondrej Pokorny
git-svn-id: trunk@49835 -
This commit is contained in:
parent
87f3fd5da2
commit
ca9e9967a2
@ -2706,8 +2706,7 @@ function TFindDeclarationTool.GetSmartHint(Node: TCodeTreeNode;
|
|||||||
end;
|
end;
|
||||||
var
|
var
|
||||||
IdentNode, TypeNode, ANode: TCodeTreeNode;
|
IdentNode, TypeNode, ANode: TCodeTreeNode;
|
||||||
ClassStr: String;
|
ClassStr, NodeStr, SetStr: String;
|
||||||
NodeStr: String;
|
|
||||||
Params: TFindDeclarationParams;
|
Params: TFindDeclarationParams;
|
||||||
Tool: TFindDeclarationTool;
|
Tool: TFindDeclarationTool;
|
||||||
HelperForNode: TCodeTreeNode;
|
HelperForNode: TCodeTreeNode;
|
||||||
@ -2796,6 +2795,11 @@ begin
|
|||||||
Delete(Result, Length(Result), 1);
|
Delete(Result, Length(Result), 1);
|
||||||
|
|
||||||
Result += ' = ['+Copy(ProceedWithSmartHint(Self), 4, 1000)+']';
|
Result += ' = ['+Copy(ProceedWithSmartHint(Self), 4, 1000)+']';
|
||||||
|
SetStr := ProceedWithSmartHint(Self);
|
||||||
|
if (Length(SetStr) > 2) and (SetStr[2] = '=') then
|
||||||
|
SetStr := Copy(SetStr, 4, 1000);
|
||||||
|
if (SetStr <> '') then
|
||||||
|
Result += ' = ['+SetStr+']';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
ctnIdentifier, ctnSpecialize, ctnSpecializeType,
|
ctnIdentifier, ctnSpecialize, ctnSpecializeType,
|
||||||
|
Loading…
Reference in New Issue
Block a user