* Patch from Anton fixing several constant expressions mantis 19409

git-svn-id: trunk@17550 -
This commit is contained in:
marco 2011-05-24 20:12:09 +00:00
parent 9d580533d9
commit c1498aade1

View File

@ -2640,13 +2640,17 @@ Var
I : Integer;
begin
Result := '';
For I:=0 to High(Params) do
begin
If (Result<>'') then
Result:=Result+', ';
Result:=Result+Params[I].GetDeclaration(Full);
end;
Result:='('+Result+')';
end;
if Kind = pekSet then
Result := '[' + Result + ']'
else
Result := '(' + Result + ')';
end;
procedure TParamsExpr.AddParam(xp:TPasExpr);
@ -2678,9 +2682,10 @@ Function TRecordValues.GetDeclaration(Full : Boolean):AnsiString;
Var
I : Integer;
begin
Result := '';
For I:=0 to High(Fields) do
begin
If Result='' then
If Result<>'' then
Result:=Result+'; ';
Result:=Result+Fields[I].Name+': '+Fields[i].ValueExp.getDeclaration(Full);
end;
@ -2739,9 +2744,10 @@ Var
I : Integer;
begin
Result := '';
For I:=0 to High(Values) do
begin
If Result='' then
If Result<>'' then
Result:=Result+', ';
Result:=Result+Values[i].getDeclaration(Full);
end;