Explorar o código

* Fixed description of array type without index (open array)

git-svn-id: trunk@7325 -
michael %!s(int64=18) %!d(string=hai) anos
pai
achega
2212c78609
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      packages/fcl-passrc/src/pastree.pp

+ 4 - 1
packages/fcl-passrc/src/pastree.pp

@@ -1115,7 +1115,10 @@ end;
 
 
 function TPasArrayType.GetDeclaration (full : boolean) : string;
 function TPasArrayType.GetDeclaration (full : boolean) : string;
 begin
 begin
-  Result:='Array['+IndexRange+'] of ';
+  Result:='Array';
+  If (IndexRange<>'') then
+    Result:=Result+'['+IndexRange+']';
+  Result:=Result+' of ';
   If IsPacked then
   If IsPacked then
      Result := 'packed '+Result;      // 12/04/04 Dave - Added
      Result := 'packed '+Result;      // 12/04/04 Dave - Added
   If Assigned(Eltype) then
   If Assigned(Eltype) then