浏览代码

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

git-svn-id: trunk@7325 -
michael 18 年之前
父节点
当前提交
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