소스 검색

* 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