* Fix generating docs

This commit is contained in:
Michaël Van Canneyt 2025-01-29 21:43:42 +01:00
parent 53e4c5b5fb
commit 370883c86a

View File

@ -5345,19 +5345,22 @@ begin
T:=T+' '+SafeName;
S.Add(T);
end;
ProcType.GetArguments(S);
If (ProcType is TPasFunctionType)
and Assigned(TPasFunctionType(Proctype).ResultEl) then
With TPasFunctionType(ProcType).ResultEl.ResultType do
begin
T:=' : ';
If (Name<>'') then
T:=T+SafeName
else
T:=T+GetDeclaration(False);
S.Add(T);
end;
GetModifiers(S);
if Assigned(ProcType) then
begin
ProcType.GetArguments(S);
If (ProcType is TPasFunctionType)
and Assigned(TPasFunctionType(Proctype).ResultEl) then
With TPasFunctionType(ProcType).ResultEl.ResultType do
begin
T:=' : ';
If (Name<>'') then
T:=T+SafeName
else
T:=T+GetDeclaration(False);
S.Add(T);
end;
GetModifiers(S); // needs proctype
end;
Result:=IndentStrings(S,Length(S[0]));
finally
S.Free;