Просмотр исходного кода

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

git-svn-id: trunk@7325 -
michael 18 лет назад
Родитель
Сommit
2212c78609
1 измененных файлов с 4 добавлено и 1 удалено
  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;
 begin
-  Result:='Array['+IndexRange+'] of ';
+  Result:='Array';
+  If (IndexRange<>'') then
+    Result:=Result+'['+IndexRange+']';
+  Result:=Result+' of ';
   If IsPacked then
      Result := 'packed '+Result;      // 12/04/04 Dave - Added
   If Assigned(Eltype) then