瀏覽代碼

* Output table with enumerated explanations for set

git-svn-id: trunk@19626 -
michael 13 年之前
父節點
當前提交
5d71bf3b60
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      utils/fpdoc/dwlinear.pp

+ 6 - 4
utils/fpdoc/dwlinear.pp

@@ -877,10 +877,12 @@ begin
       WriteLabel(TypeDecl);
       WriteIndex(TypeDecl);
       If TypeDecl is TPasEnumType then
-        begin
-        WriteENumElements(TypeDecl as TPasEnumType);
-        end;
-      WriteDescr(TypeDecl);
+        WriteENumElements(TypeDecl as TPasEnumType)
+      else If (TypeDecl is TPasSetType)
+              and (TPasSetType(TypeDecl).EnumType is TPasEnumType)
+              and (TPasSetType(TypeDecl).EnumType.Name='') then
+        WriteENumElements(TPasSetType(TypeDecl).EnumType as TPasEnumType);
+      WriteDescr(TypeDecl,DocNode);
       If Assigned(DocNode) and Assigned(DocNode.Version) then
         begin
         Writeln(Format('%s : ',[SDocVersion]));