mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 22:47:59 +02:00
* Fix generating docs
This commit is contained in:
parent
53e4c5b5fb
commit
370883c86a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user