소스 검색

fcl-passrc: paswrite: prepare 'type' section for types only when type has parent like module interface section etc.

git-svn-id: trunk@36787 -
maciej-izak 8 년 전
부모
커밋
ddc7631e09
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      packages/fcl-passrc/src/paswrite.pp

+ 2 - 1
packages/fcl-passrc/src/paswrite.pp

@@ -150,7 +150,8 @@ end;
 
 procedure TPasWriter.WriteType(AType: TPasType);
 begin
-  PrepareDeclSection('type');
+  if AType.Parent is TPasSection  then
+    PrepareDeclSection('type');
   if AType.ClassType = TPasUnresolvedTypeRef then
     wrt(AType.Name)
   else if AType.ClassType = TPasClassType then