@xpack/doxygen2docusaurus 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +2 -1
- package/bin/doxygen2docusaurus.js +1 -1
- package/dist/cli/main.d.ts +0 -14
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +0 -34
- package/dist/cli/main.js.map +1 -1
- package/dist/docusaurus/cli-options.d.ts +3 -292
- package/dist/docusaurus/cli-options.d.ts.map +1 -1
- package/dist/docusaurus/cli-options.js +6 -290
- package/dist/docusaurus/cli-options.js.map +1 -1
- package/dist/docusaurus/generator.d.ts +0 -172
- package/dist/docusaurus/generator.d.ts.map +1 -1
- package/dist/docusaurus/generator.js +20 -280
- package/dist/docusaurus/generator.js.map +1 -1
- package/dist/docusaurus/renderers/descriptiontype.d.ts +0 -417
- package/dist/docusaurus/renderers/descriptiontype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/descriptiontype.js +11 -555
- package/dist/docusaurus/renderers/descriptiontype.js.map +1 -1
- package/dist/docusaurus/renderers/docinternalstype.d.ts +0 -132
- package/dist/docusaurus/renderers/docinternalstype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docinternalstype.js +0 -156
- package/dist/docusaurus/renderers/docinternalstype.js.map +1 -1
- package/dist/docusaurus/renderers/doclisttype.d.ts +0 -22
- package/dist/docusaurus/renderers/doclisttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doclisttype.js +0 -42
- package/dist/docusaurus/renderers/doclisttype.js.map +1 -1
- package/dist/docusaurus/renderers/doctabletype.d.ts +0 -88
- package/dist/docusaurus/renderers/doctabletype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doctabletype.js +1 -113
- package/dist/docusaurus/renderers/doctabletype.js.map +1 -1
- package/dist/docusaurus/renderers/doctitletype.d.ts +0 -22
- package/dist/docusaurus/renderers/doctitletype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/doctitletype.js +0 -42
- package/dist/docusaurus/renderers/doctitletype.js.map +1 -1
- package/dist/docusaurus/renderers/docvariablelisttype.d.ts +0 -44
- package/dist/docusaurus/renderers/docvariablelisttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docvariablelisttype.js +1 -69
- package/dist/docusaurus/renderers/docvariablelisttype.js.map +1 -1
- package/dist/docusaurus/renderers/docxrefsecttype.d.ts +0 -22
- package/dist/docusaurus/renderers/docxrefsecttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/docxrefsecttype.js +0 -38
- package/dist/docusaurus/renderers/docxrefsecttype.js.map +1 -1
- package/dist/docusaurus/renderers/element-renderer-base.d.ts +0 -74
- package/dist/docusaurus/renderers/element-renderer-base.d.ts.map +1 -1
- package/dist/docusaurus/renderers/element-renderer-base.js +0 -64
- package/dist/docusaurus/renderers/element-renderer-base.js.map +1 -1
- package/dist/docusaurus/renderers/inctype.d.ts +0 -23
- package/dist/docusaurus/renderers/inctype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/inctype.js +0 -41
- package/dist/docusaurus/renderers/inctype.js.map +1 -1
- package/dist/docusaurus/renderers/linkedtexttype.d.ts +0 -22
- package/dist/docusaurus/renderers/linkedtexttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/linkedtexttype.js +0 -45
- package/dist/docusaurus/renderers/linkedtexttype.js.map +1 -1
- package/dist/docusaurus/renderers/listingtype.d.ts +0 -52
- package/dist/docusaurus/renderers/listingtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/listingtype.js +1 -88
- package/dist/docusaurus/renderers/listingtype.js.map +1 -1
- package/dist/docusaurus/renderers/paramtype.d.ts +0 -22
- package/dist/docusaurus/renderers/paramtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/paramtype.js +2 -51
- package/dist/docusaurus/renderers/paramtype.js.map +1 -1
- package/dist/docusaurus/renderers/referencetype.d.ts +0 -23
- package/dist/docusaurus/renderers/referencetype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/referencetype.js +0 -38
- package/dist/docusaurus/renderers/referencetype.js.map +1 -1
- package/dist/docusaurus/renderers/reftexttype.d.ts +0 -22
- package/dist/docusaurus/renderers/reftexttype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/reftexttype.js +0 -38
- package/dist/docusaurus/renderers/reftexttype.js.map +1 -1
- package/dist/docusaurus/renderers/reftype.d.ts +0 -22
- package/dist/docusaurus/renderers/reftype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/reftype.js +0 -38
- package/dist/docusaurus/renderers/reftype.js.map +1 -1
- package/dist/docusaurus/renderers/renderers.d.ts +0 -151
- package/dist/docusaurus/renderers/renderers.d.ts.map +1 -1
- package/dist/docusaurus/renderers/renderers.js +4 -184
- package/dist/docusaurus/renderers/renderers.js.map +1 -1
- package/dist/docusaurus/renderers/substringtype.d.ts +0 -22
- package/dist/docusaurus/renderers/substringtype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/substringtype.js +0 -39
- package/dist/docusaurus/renderers/substringtype.js.map +1 -1
- package/dist/docusaurus/renderers/tableofcontentstype.d.ts +0 -22
- package/dist/docusaurus/renderers/tableofcontentstype.d.ts.map +1 -1
- package/dist/docusaurus/renderers/tableofcontentstype.js +0 -39
- package/dist/docusaurus/renderers/tableofcontentstype.js.map +1 -1
- package/dist/docusaurus/types.d.ts +0 -110
- package/dist/docusaurus/types.d.ts.map +1 -1
- package/dist/docusaurus/types.js +0 -11
- package/dist/docusaurus/types.js.map +1 -1
- package/dist/docusaurus/utils.d.ts +0 -214
- package/dist/docusaurus/utils.d.ts.map +1 -1
- package/dist/docusaurus/utils.js +0 -296
- package/dist/docusaurus/utils.js.map +1 -1
- package/dist/docusaurus/view-model/classes-vm.d.ts +0 -137
- package/dist/docusaurus/view-model/classes-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/classes-vm.js +9 -225
- package/dist/docusaurus/view-model/classes-vm.js.map +1 -1
- package/dist/docusaurus/view-model/collection-base.d.ts +0 -120
- package/dist/docusaurus/view-model/collection-base.d.ts.map +1 -1
- package/dist/docusaurus/view-model/collection-base.js +11 -101
- package/dist/docusaurus/view-model/collection-base.js.map +1 -1
- package/dist/docusaurus/view-model/compound-base-vm.d.ts +2 -147
- package/dist/docusaurus/view-model/compound-base-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/compound-base-vm.js +47 -225
- package/dist/docusaurus/view-model/compound-base-vm.js.map +1 -1
- package/dist/docusaurus/view-model/concepts-vm.d.ts +26 -0
- package/dist/docusaurus/view-model/concepts-vm.d.ts.map +1 -0
- package/dist/docusaurus/view-model/concepts-vm.js +329 -0
- package/dist/docusaurus/view-model/concepts-vm.js.map +1 -0
- package/dist/docusaurus/view-model/description-anchors.d.ts +0 -58
- package/dist/docusaurus/view-model/description-anchors.d.ts.map +1 -1
- package/dist/docusaurus/view-model/description-anchors.js +0 -71
- package/dist/docusaurus/view-model/description-anchors.js.map +1 -1
- package/dist/docusaurus/view-model/files-and-folders-vm.d.ts +0 -247
- package/dist/docusaurus/view-model/files-and-folders-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/files-and-folders-vm.js +61 -353
- package/dist/docusaurus/view-model/files-and-folders-vm.js.map +1 -1
- package/dist/docusaurus/view-model/groups-vm.d.ts +0 -148
- package/dist/docusaurus/view-model/groups-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/groups-vm.js +2 -223
- package/dist/docusaurus/view-model/groups-vm.js.map +1 -1
- package/dist/docusaurus/view-model/members-vm.d.ts +0 -552
- package/dist/docusaurus/view-model/members-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/members-vm.js +17 -702
- package/dist/docusaurus/view-model/members-vm.js.map +1 -1
- package/dist/docusaurus/view-model/namespaces-vm.d.ts +4 -199
- package/dist/docusaurus/view-model/namespaces-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/namespaces-vm.js +79 -284
- package/dist/docusaurus/view-model/namespaces-vm.js.map +1 -1
- package/dist/docusaurus/view-model/options.d.ts +0 -43
- package/dist/docusaurus/view-model/options.d.ts.map +1 -1
- package/dist/docusaurus/view-model/options.js +0 -57
- package/dist/docusaurus/view-model/options.js.map +1 -1
- package/dist/docusaurus/view-model/pages-vm.d.ts +0 -115
- package/dist/docusaurus/view-model/pages-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/pages-vm.js +0 -162
- package/dist/docusaurus/view-model/pages-vm.js.map +1 -1
- package/dist/docusaurus/view-model/tree-entries-vm.d.ts +8 -142
- package/dist/docusaurus/view-model/tree-entries-vm.d.ts.map +1 -1
- package/dist/docusaurus/view-model/tree-entries-vm.js +54 -174
- package/dist/docusaurus/view-model/tree-entries-vm.js.map +1 -1
- package/dist/docusaurus/view-model/view-model.d.ts +0 -125
- package/dist/docusaurus/view-model/view-model.d.ts.map +1 -1
- package/dist/docusaurus/view-model/view-model.js +20 -182
- package/dist/docusaurus/view-model/view-model.js.map +1 -1
- package/dist/docusaurus/workspace.d.ts +1 -126
- package/dist/docusaurus/workspace.d.ts.map +1 -1
- package/dist/docusaurus/workspace.js +8 -221
- package/dist/docusaurus/workspace.js.map +1 -1
- package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts +5 -492
- package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/compounddef-dm.js +23 -672
- package/dist/doxygen/data-model/compounds/compounddef-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts +0 -129
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.js +1 -145
- package/dist/doxygen/data-model/compounds/compoundreftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts +104 -2848
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.js +73 -3975
- package/dist/doxygen/data-model/compounds/descriptiontype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts +0 -165
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js +0 -229
- package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts +0 -70
- package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/doxygentype-dm.js +0 -105
- package/dist/doxygen/data-model/compounds/doxygentype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts +0 -84
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js +1 -122
- package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/inctype-dm.d.ts +0 -116
- package/dist/doxygen/data-model/compounds/inctype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/inctype-dm.js +3 -155
- package/dist/doxygen/data-model/compounds/inctype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts +3 -138
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js +5 -180
- package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts +0 -76
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js +0 -107
- package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts +0 -162
- package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/locationtype-dm.js +4 -203
- package/dist/doxygen/data-model/compounds/locationtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts +2 -443
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.js +19 -475
- package/dist/doxygen/data-model/compounds/memberdeftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts +0 -141
- package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/memberreftype-dm.js +0 -176
- package/dist/doxygen/data-model/compounds/memberreftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/membertype-dm.d.ts +0 -101
- package/dist/doxygen/data-model/compounds/membertype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/membertype-dm.js +0 -115
- package/dist/doxygen/data-model/compounds/membertype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts +0 -164
- package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/paramtype-dm.js +0 -208
- package/dist/doxygen/data-model/compounds/paramtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts +0 -139
- package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/referencetype-dm.js +2 -175
- package/dist/doxygen/data-model/compounds/referencetype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts +0 -120
- package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reftexttype-dm.js +2 -141
- package/dist/doxygen/data-model/compounds/reftexttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reftype-dm.d.ts +0 -268
- package/dist/doxygen/data-model/compounds/reftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reftype-dm.js +4 -326
- package/dist/doxygen/data-model/compounds/reftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts +0 -105
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.js +1 -139
- package/dist/doxygen/data-model/compounds/reimplementtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts +0 -168
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js +0 -209
- package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts +0 -267
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js +0 -354
- package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js.map +1 -1
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts +0 -66
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js +0 -97
- package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js.map +1 -1
- package/dist/doxygen/data-model/data-model.d.ts +0 -149
- package/dist/doxygen/data-model/data-model.d.ts.map +1 -1
- package/dist/doxygen/data-model/data-model.js +4 -197
- package/dist/doxygen/data-model/data-model.js.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts +0 -115
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js +4 -129
- package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts +0 -87
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js +0 -118
- package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js.map +1 -1
- package/dist/doxygen/data-model/doxygen-xml-parser.d.ts +0 -253
- package/dist/doxygen/data-model/doxygen-xml-parser.d.ts.map +1 -1
- package/dist/doxygen/data-model/doxygen-xml-parser.js +0 -291
- package/dist/doxygen/data-model/doxygen-xml-parser.js.map +1 -1
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts +0 -98
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.js +2 -122
- package/dist/doxygen/data-model/index/indexcompoundtype-dm.js.map +1 -1
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts +0 -82
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.js +0 -114
- package/dist/doxygen/data-model/index/indexdoxygentype-dm.js.map +1 -1
- package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts +0 -85
- package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts.map +1 -1
- package/dist/doxygen/data-model/index/indexmembertype-dm.js +1 -107
- package/dist/doxygen/data-model/index/indexmembertype-dm.js.map +1 -1
- package/dist/doxygen/data-model/types.d.ts +0 -104
- package/dist/doxygen/data-model/types.d.ts.map +1 -1
- package/dist/doxygen/data-model/types.js +0 -52
- package/dist/doxygen/data-model/types.js.map +1 -1
- package/dist/index.d.ts +4 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -42
- package/dist/index.js.map +1 -1
- package/package.json +45 -51
- package/src/cli/main.ts +122 -0
- package/src/docusaurus/cli-options.ts +560 -0
- package/src/docusaurus/generator.ts +788 -0
- package/src/docusaurus/renderers/descriptiontype.ts +1299 -0
- package/src/docusaurus/renderers/docinternalstype.ts +354 -0
- package/src/docusaurus/renderers/doclisttype.ts +134 -0
- package/src/docusaurus/renderers/doctabletype.ts +220 -0
- package/src/docusaurus/renderers/doctitletype.ts +77 -0
- package/src/docusaurus/renderers/docvariablelisttype.ts +123 -0
- package/src/docusaurus/renderers/docxrefsecttype.ts +84 -0
- package/src/docusaurus/renderers/element-renderer-base.ts +112 -0
- package/src/docusaurus/renderers/inctype.ts +75 -0
- package/src/docusaurus/renderers/linkedtexttype.ts +64 -0
- package/src/docusaurus/renderers/listingtype.ts +235 -0
- package/src/docusaurus/renderers/paramtype.ts +116 -0
- package/src/docusaurus/renderers/referencetype.ts +83 -0
- package/src/docusaurus/renderers/reftexttype.ts +81 -0
- package/src/docusaurus/renderers/reftype.ts +77 -0
- package/src/docusaurus/renderers/renderers.ts +756 -0
- package/src/docusaurus/renderers/substringtype.ts +53 -0
- package/src/docusaurus/renderers/tableofcontentstype.ts +74 -0
- package/src/docusaurus/types.ts +187 -0
- package/src/docusaurus/utils.ts +409 -0
- package/src/docusaurus/view-model/README.md +12 -0
- package/src/docusaurus/view-model/classes-vm.ts +1088 -0
- package/src/docusaurus/view-model/collection-base.ts +352 -0
- package/src/docusaurus/view-model/compound-base-vm.ts +1340 -0
- package/src/docusaurus/view-model/concepts-vm.ts +719 -0
- package/src/docusaurus/view-model/description-anchors.ts +107 -0
- package/src/docusaurus/view-model/files-and-folders-vm.ts +1293 -0
- package/src/docusaurus/view-model/groups-vm.ts +548 -0
- package/src/docusaurus/view-model/members-vm.ts +1943 -0
- package/src/docusaurus/view-model/namespaces-vm.ts +1018 -0
- package/src/docusaurus/view-model/options.ts +95 -0
- package/src/docusaurus/view-model/pages-vm.ts +342 -0
- package/src/docusaurus/view-model/tree-entries-vm.ts +376 -0
- package/src/docusaurus/view-model/view-model.ts +513 -0
- package/src/docusaurus/workspace.ts +588 -0
- package/src/doxygen/data-model/README.md +13 -0
- package/src/doxygen/data-model/compounds/compounddef-dm.ts +1156 -0
- package/src/doxygen/data-model/compounds/compoundreftype-dm.ts +266 -0
- package/src/doxygen/data-model/compounds/descriptiontype-dm.ts +10107 -0
- package/src/doxygen/data-model/compounds/docvarlistentrytype-dm.ts +354 -0
- package/src/doxygen/data-model/compounds/doxygentype-dm.ts +187 -0
- package/src/doxygen/data-model/compounds/enumvaluetype-dm.ts +218 -0
- package/src/doxygen/data-model/compounds/inctype-dm.ts +217 -0
- package/src/doxygen/data-model/compounds/linkedtexttype-dm.ts +288 -0
- package/src/doxygen/data-model/compounds/listofallmemberstype-dm.ts +160 -0
- package/src/doxygen/data-model/compounds/locationtype-dm.ts +284 -0
- package/src/doxygen/data-model/compounds/memberdeftype-dm.ts +874 -0
- package/src/doxygen/data-model/compounds/memberreftype-dm.ts +270 -0
- package/src/doxygen/data-model/compounds/membertype-dm.ts +239 -0
- package/src/doxygen/data-model/compounds/paramtype-dm.ts +302 -0
- package/src/doxygen/data-model/compounds/referencetype-dm.ts +248 -0
- package/src/doxygen/data-model/compounds/reftexttype-dm.ts +234 -0
- package/src/doxygen/data-model/compounds/reftype-dm.ts +430 -0
- package/src/doxygen/data-model/compounds/reimplementtype-dm.ts +201 -0
- package/src/doxygen/data-model/compounds/sectiondeftype-dm.ts +330 -0
- package/src/doxygen/data-model/compounds/tableofcontentstype-dm.ts +563 -0
- package/src/doxygen/data-model/compounds/templateparamlisttype-dm.ts +150 -0
- package/src/doxygen/data-model/data-model.ts +377 -0
- package/src/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.ts +271 -0
- package/src/doxygen/data-model/doxyfile/doxyfiletype-dm.ts +200 -0
- package/src/doxygen/data-model/doxygen-xml-parser.ts +522 -0
- package/src/doxygen/data-model/index/indexcompoundtype-dm.ts +256 -0
- package/src/doxygen/data-model/index/indexdoxygentype-dm.ts +196 -0
- package/src/doxygen/data-model/index/indexmembertype-dm.ts +230 -0
- package/src/doxygen/data-model/types.ts +175 -0
- package/src/doxygen/data-model/xsds/README.md +6 -0
- package/src/doxygen/data-model/xsds/compound.xsd +1699 -0
- package/src/doxygen/data-model/xsds/doxyfile.xsd +355 -0
- package/src/doxygen/data-model/xsds/index.xsd +72 -0
- package/src/doxygen/data-model/xsds/xml.xsd +23 -0
- package/src/index.ts +261 -0
- package/src/tsconfig.json +10 -0
- package/dist/doxygen2docusaurus.d.ts +0 -4774
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/tsdoc-metadata.json +0 -11
|
@@ -1,51 +1,36 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of the xPack project (http://xpack.github.io).
|
|
3
|
-
* Copyright (c) 2025 Liviu Ionescu. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Permission to use, copy, modify, and/or distribute this software
|
|
6
|
-
* for any purpose is hereby granted, under the terms of the MIT license.
|
|
7
|
-
*
|
|
8
|
-
* If a copy of the license was not distributed with this file, it can
|
|
9
|
-
* be obtained from https://opensource.org/licenses/MIT.
|
|
10
|
-
*/
|
|
11
|
-
// ----------------------------------------------------------------------------
|
|
12
1
|
import * as util from 'node:util';
|
|
13
2
|
import assert from 'node:assert';
|
|
14
3
|
import { getPermalinkAnchor, sanitizeAnonymousNamespace } from '../utils.js';
|
|
15
4
|
import { MemberProgramListingDataModel, ParaDataModel, } from '../../doxygen/data-model/compounds/descriptiontype-dm.js';
|
|
16
|
-
// ----------------------------------------------------------------------------
|
|
17
5
|
export const sectionHeaders = {
|
|
18
|
-
typedef: ['Typedefs', 100],
|
|
6
|
+
typedef: ['Typedefs', 100],
|
|
19
7
|
'public-type': ['Public Member Typedefs', 110],
|
|
20
8
|
'protected-type': ['Protected Member Typedefs', 120],
|
|
21
9
|
'private-type': ['Private Member Typedefs', 130],
|
|
22
10
|
'package-type': ['Package Member Typedefs', 140],
|
|
23
|
-
enum: ['Enumerations', 150],
|
|
24
|
-
friend: ['Friends', 160],
|
|
25
|
-
interface: ['Interfaces', 170],
|
|
26
|
-
// Extra, not present in Doxygen.
|
|
11
|
+
enum: ['Enumerations', 150],
|
|
12
|
+
friend: ['Friends', 160],
|
|
13
|
+
interface: ['Interfaces', 170],
|
|
27
14
|
constructorr: ['Constructors', 200],
|
|
28
15
|
'public-constructorr': ['Public Constructors', 200],
|
|
29
16
|
'protected-constructorr': ['Protected Constructors', 210],
|
|
30
17
|
'private-constructorr': ['Private Constructors', 220],
|
|
31
|
-
// Extra, not present in Doxygen.
|
|
32
18
|
'public-destructor': ['Public Destructor', 230],
|
|
33
19
|
'protected-destructor': ['Protected Destructor', 240],
|
|
34
20
|
'private-destructor': ['Private Destructor', 250],
|
|
35
|
-
// Extra, not present in Doxygen.
|
|
36
21
|
operator: ['Operators', 300],
|
|
37
22
|
'public-operator': ['Public Operators', 310],
|
|
38
23
|
'protected-operator': ['Protected Operators', 320],
|
|
39
24
|
'private-operator': ['Private Operators', 330],
|
|
40
25
|
'package-operator': ['Package Operators', 340],
|
|
41
26
|
func: ['Functions', 350],
|
|
42
|
-
function: ['Functions', 350],
|
|
27
|
+
function: ['Functions', 350],
|
|
43
28
|
'public-func': ['Public Member Functions', 360],
|
|
44
29
|
'protected-func': ['Protected Member Functions', 370],
|
|
45
30
|
'private-func': ['Private Member Functions', 380],
|
|
46
31
|
'package-func': ['Package Member Functions', 390],
|
|
47
32
|
var: ['Variables', 400],
|
|
48
|
-
variable: ['Variables', 400],
|
|
33
|
+
variable: ['Variables', 400],
|
|
49
34
|
'public-attrib': ['Public Member Attributes', 410],
|
|
50
35
|
'protected-attrib': ['Protected Member Attributes', 420],
|
|
51
36
|
'private-attrib': ['Private Member Attributes', 430],
|
|
@@ -62,108 +47,29 @@ export const sectionHeaders = {
|
|
|
62
47
|
'protected-static-attrib': ['Protected Static Attributes', 610],
|
|
63
48
|
'private-static-attrib': ['Private Static Attributes', 620],
|
|
64
49
|
'package-static-attrib': ['Package Static Attributes', 630],
|
|
65
|
-
slot: ['Slots', 700],
|
|
50
|
+
slot: ['Slots', 700],
|
|
66
51
|
'public-slot': ['Public Slots', 700],
|
|
67
52
|
'protected-slot': ['Protected Slot', 710],
|
|
68
53
|
'private-slot': ['Private Slot', 720],
|
|
69
54
|
related: ['Related', 800],
|
|
70
|
-
define: ['Macro Definitions', 810],
|
|
71
|
-
prototype: ['Prototypes', 820],
|
|
72
|
-
signal: ['Signals', 830],
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
service: ['Services', 870], // DoxMemberKind only
|
|
55
|
+
define: ['Macro Definitions', 810],
|
|
56
|
+
prototype: ['Prototypes', 820],
|
|
57
|
+
signal: ['Signals', 830],
|
|
58
|
+
dcop: ['DCOP Functions', 840],
|
|
59
|
+
property: ['Properties', 850],
|
|
60
|
+
event: ['Events', 860],
|
|
61
|
+
service: ['Services', 870],
|
|
78
62
|
'user-defined': ['Definitions', 1000],
|
|
79
63
|
};
|
|
80
|
-
// ----------------------------------------------------------------------------
|
|
81
|
-
/**
|
|
82
|
-
* Represents a documentation section containing member definitions and
|
|
83
|
-
* references.
|
|
84
|
-
*
|
|
85
|
-
* @remarks
|
|
86
|
-
* Sections organise related members (functions, variables, types, etc.) within
|
|
87
|
-
* compounds, providing structured grouping based on visibility, type, and
|
|
88
|
-
* functionality. Each section manages both member definitions and references
|
|
89
|
-
* to members defined elsewhere.
|
|
90
|
-
*
|
|
91
|
-
* @public
|
|
92
|
-
*/
|
|
93
64
|
export class Section {
|
|
94
|
-
/**
|
|
95
|
-
* The parent compound containing this section.
|
|
96
|
-
*
|
|
97
|
-
* @remarks
|
|
98
|
-
* References the compound (class, namespace, file, etc.) that owns
|
|
99
|
-
* this section for context and rendering operations.
|
|
100
|
-
*/
|
|
101
65
|
compound;
|
|
102
|
-
/**
|
|
103
|
-
* The section kind identifier from Doxygen.
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
* Specifies the type of section (e.g., 'public-func', 'private-attrib',
|
|
107
|
-
* 'typedef') which determines member organisation and display headers.
|
|
108
|
-
*/
|
|
109
66
|
kind;
|
|
110
|
-
/**
|
|
111
|
-
* The display header name for this section.
|
|
112
|
-
*
|
|
113
|
-
* @remarks
|
|
114
|
-
* Human-readable section title derived from the kind, used for
|
|
115
|
-
* generating section headers in the documentation output.
|
|
116
|
-
*/
|
|
117
67
|
headerName;
|
|
118
|
-
/**
|
|
119
|
-
* Optional section description lines in HTML format.
|
|
120
|
-
*
|
|
121
|
-
* @remarks
|
|
122
|
-
* Contains processed description content for sections that include
|
|
123
|
-
* additional explanatory text beyond the standard header.
|
|
124
|
-
*/
|
|
125
68
|
descriptionLines;
|
|
126
|
-
/**
|
|
127
|
-
* All members in this section including references and definitions.
|
|
128
|
-
*
|
|
129
|
-
* @remarks
|
|
130
|
-
* Contains both member definitions and member references in their
|
|
131
|
-
* original order, used for generating member indices and overviews.
|
|
132
|
-
*/
|
|
133
69
|
indexMembers = [];
|
|
134
|
-
/**
|
|
135
|
-
* Only member definitions in this section, sorted alphabetically.
|
|
136
|
-
*
|
|
137
|
-
* @remarks
|
|
138
|
-
* Filtered collection containing only actual member definitions
|
|
139
|
-
* (not references), sorted by name for detailed documentation rendering.
|
|
140
|
-
*/
|
|
141
70
|
definitionMembers = [];
|
|
142
|
-
/**
|
|
143
|
-
* Private data available only during initialisation.
|
|
144
|
-
*
|
|
145
|
-
* @remarks
|
|
146
|
-
* Temporary storage for section definition data that is cleared
|
|
147
|
-
* after late initialisation to reduce memory usage.
|
|
148
|
-
*
|
|
149
|
-
* @internal
|
|
150
|
-
*/
|
|
151
71
|
_private = {};
|
|
152
|
-
/**
|
|
153
|
-
* Initialises a new Section instance from section definition data.
|
|
154
|
-
*
|
|
155
|
-
* @remarks
|
|
156
|
-
* Processes the section metadata, creates member instances, and organises
|
|
157
|
-
* them into appropriate collections for index and definition rendering.
|
|
158
|
-
* Members are sorted alphabetically for consistent documentation output.
|
|
159
|
-
*
|
|
160
|
-
* @param compound - The parent compound containing this section
|
|
161
|
-
* @param sectionDef - The section definition containing member data
|
|
162
|
-
*
|
|
163
|
-
* @public
|
|
164
|
-
*/
|
|
165
72
|
constructor(compound, sectionDef) {
|
|
166
|
-
// console.log(compound.kind, compound.compoundName, sectionDef.kind)
|
|
167
73
|
this._private._sectionDef = sectionDef;
|
|
168
74
|
this.compound = compound;
|
|
169
75
|
const { kind } = sectionDef;
|
|
@@ -175,8 +81,6 @@ export class Section {
|
|
|
175
81
|
for (const memberDefDataModel of sectionDef.memberDefs) {
|
|
176
82
|
const member = new Member(this, memberDefDataModel);
|
|
177
83
|
members.push(member);
|
|
178
|
-
// Do not add it to the global map since additional checks are needed
|
|
179
|
-
// therefore the procedure is done in the global generator.
|
|
180
84
|
}
|
|
181
85
|
}
|
|
182
86
|
if (sectionDef.members !== undefined) {
|
|
@@ -184,7 +88,6 @@ export class Section {
|
|
|
184
88
|
members.push(new MemberRef(this, memberRef));
|
|
185
89
|
}
|
|
186
90
|
}
|
|
187
|
-
// Original order.
|
|
188
91
|
this.indexMembers = members;
|
|
189
92
|
const definitionMembers = [];
|
|
190
93
|
for (const member of this.indexMembers) {
|
|
@@ -192,100 +95,20 @@ export class Section {
|
|
|
192
95
|
definitionMembers.push(member);
|
|
193
96
|
}
|
|
194
97
|
}
|
|
195
|
-
// Sorted.
|
|
196
98
|
this.definitionMembers = definitionMembers.sort((a, b) => a.name.localeCompare(b.name));
|
|
197
99
|
}
|
|
198
|
-
/**
|
|
199
|
-
* Performs late initialisation for section descriptions.
|
|
200
|
-
*
|
|
201
|
-
* @remarks
|
|
202
|
-
* Processes optional section descriptions into HTML format for rendering.
|
|
203
|
-
* This method is called after all basic initialisation is complete to
|
|
204
|
-
* ensure proper workspace context for description processing.
|
|
205
|
-
*
|
|
206
|
-
* @public
|
|
207
|
-
*/
|
|
208
100
|
initializeLate() {
|
|
209
101
|
const { workspace } = this.compound.collection;
|
|
210
102
|
assert(this._private._sectionDef !== undefined);
|
|
211
103
|
const { _sectionDef: sectionDef } = this._private;
|
|
212
104
|
if (sectionDef.description !== undefined) {
|
|
213
105
|
this.descriptionLines = workspace.renderElementToLines(sectionDef.description, 'html');
|
|
214
|
-
// console.log(this.indexMembers, this.descriptionLines)
|
|
215
106
|
}
|
|
216
107
|
}
|
|
217
|
-
/**
|
|
218
|
-
* Determines if this section contains any member definitions.
|
|
219
|
-
*
|
|
220
|
-
* @remarks
|
|
221
|
-
* Checks whether the section has actual member definitions (not just
|
|
222
|
-
* references) that require detailed documentation rendering. Used to
|
|
223
|
-
* filter sections for output generation.
|
|
224
|
-
*
|
|
225
|
-
* @returns True if the section contains member definitions, false otherwise
|
|
226
|
-
*
|
|
227
|
-
* @public
|
|
228
|
-
*/
|
|
229
108
|
hasDefinitionMembers() {
|
|
230
109
|
return this.definitionMembers.length > 0;
|
|
231
110
|
}
|
|
232
|
-
// --------------------------------------------------------------------------
|
|
233
|
-
// <xsd:simpleType name="DoxSectionKind">
|
|
234
|
-
// <xsd:restriction base="xsd:string">
|
|
235
|
-
// <xsd:enumeration value="user-defined" />
|
|
236
|
-
// <xsd:enumeration value="public-type" />
|
|
237
|
-
// <xsd:enumeration value="public-func" />
|
|
238
|
-
// <xsd:enumeration value="public-attrib" />
|
|
239
|
-
// <xsd:enumeration value="public-slot" />
|
|
240
|
-
// <xsd:enumeration value="signal" />
|
|
241
|
-
// <xsd:enumeration value="dcop-func" />
|
|
242
|
-
// <xsd:enumeration value="property" />
|
|
243
|
-
// <xsd:enumeration value="event" />
|
|
244
|
-
// <xsd:enumeration value="public-static-func" />
|
|
245
|
-
// <xsd:enumeration value="public-static-attrib" />
|
|
246
|
-
// <xsd:enumeration value="protected-type" />
|
|
247
|
-
// <xsd:enumeration value="protected-func" />
|
|
248
|
-
// <xsd:enumeration value="protected-attrib" />
|
|
249
|
-
// <xsd:enumeration value="protected-slot" />
|
|
250
|
-
// <xsd:enumeration value="protected-static-func" />
|
|
251
|
-
// <xsd:enumeration value="protected-static-attrib" />
|
|
252
|
-
// <xsd:enumeration value="package-type" />
|
|
253
|
-
// <xsd:enumeration value="package-func" />
|
|
254
|
-
// <xsd:enumeration value="package-attrib" />
|
|
255
|
-
// <xsd:enumeration value="package-static-func" />
|
|
256
|
-
// <xsd:enumeration value="package-static-attrib" />
|
|
257
|
-
// <xsd:enumeration value="private-type" />
|
|
258
|
-
// <xsd:enumeration value="private-func" />
|
|
259
|
-
// <xsd:enumeration value="private-attrib" />
|
|
260
|
-
// <xsd:enumeration value="private-slot" />
|
|
261
|
-
// <xsd:enumeration value="private-static-func" />
|
|
262
|
-
// <xsd:enumeration value="private-static-attrib" />
|
|
263
|
-
// <xsd:enumeration value="friend" />
|
|
264
|
-
// <xsd:enumeration value="related" />
|
|
265
|
-
// <xsd:enumeration value="define" />
|
|
266
|
-
// <xsd:enumeration value="prototype" />
|
|
267
|
-
// <xsd:enumeration value="typedef" />
|
|
268
|
-
// <xsd:enumeration value="enum" />
|
|
269
|
-
// <xsd:enumeration value="func" />
|
|
270
|
-
// <xsd:enumeration value="var" />
|
|
271
|
-
// </xsd:restriction>
|
|
272
|
-
// </xsd:simpleType>
|
|
273
|
-
/**
|
|
274
|
-
* Determines the display header name for a section based on its kind.
|
|
275
|
-
*
|
|
276
|
-
* @remarks
|
|
277
|
-
* Maps Doxygen section kinds to human-readable header names, handling
|
|
278
|
-
* both standard section types and user-defined sections with custom
|
|
279
|
-
* headers. Falls back to predefined section headers from the global
|
|
280
|
-
* mapping table.
|
|
281
|
-
*
|
|
282
|
-
* @param sectionDef - The section definition containing kind and header data
|
|
283
|
-
* @returns The formatted header name for display
|
|
284
|
-
*
|
|
285
|
-
* @private
|
|
286
|
-
*/
|
|
287
111
|
getHeaderNameByKind(sectionDef) {
|
|
288
|
-
// User defined sections have their own header.
|
|
289
112
|
const { header, kind } = sectionDef;
|
|
290
113
|
if (kind === 'user-defined') {
|
|
291
114
|
if (header !== undefined) {
|
|
@@ -297,9 +120,7 @@ export class Section {
|
|
|
297
120
|
if (header !== undefined) {
|
|
298
121
|
console.warn('header', header, 'ignored in sectionDef of kind', kind);
|
|
299
122
|
}
|
|
300
|
-
// ------------------------------------------------------------------------
|
|
301
123
|
const sectionHeader = sectionHeaders[kind];
|
|
302
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
303
124
|
if (sectionHeader === undefined) {
|
|
304
125
|
console.error(util.inspect(sectionDef, { compact: false, depth: 999 }));
|
|
305
126
|
console.error(sectionDef.constructor.name, 'kind', kind, 'not yet rendered in', this.constructor.name, 'getHeaderNameByKind');
|
|
@@ -307,45 +128,17 @@ export class Section {
|
|
|
307
128
|
}
|
|
308
129
|
return sectionHeader[0].trim();
|
|
309
130
|
}
|
|
310
|
-
/**
|
|
311
|
-
* Determines the display order for this section based on its kind.
|
|
312
|
-
*
|
|
313
|
-
* @remarks
|
|
314
|
-
* Returns a numeric order value used for sorting sections consistently
|
|
315
|
-
* in documentation output. User-defined sections are placed at the end
|
|
316
|
-
* with order 1000, while predefined sections use values from the global
|
|
317
|
-
* mapping table.
|
|
318
|
-
*
|
|
319
|
-
* @returns Numeric order value for section sorting
|
|
320
|
-
*
|
|
321
|
-
* @public
|
|
322
|
-
*/
|
|
323
131
|
getSectionOrderByKind() {
|
|
324
132
|
const { kind } = this;
|
|
325
133
|
if (kind === 'user-defined') {
|
|
326
|
-
return 1000;
|
|
134
|
+
return 1000;
|
|
327
135
|
}
|
|
328
136
|
const header = sectionHeaders[kind];
|
|
329
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
330
137
|
assert(header !== undefined);
|
|
331
138
|
return header[1];
|
|
332
139
|
}
|
|
333
|
-
// --------------------------------------------------------------------------
|
|
334
|
-
/**
|
|
335
|
-
* Renders the section index to HTML table lines.
|
|
336
|
-
*
|
|
337
|
-
* @remarks
|
|
338
|
-
* Generates an HTML table containing all members in this section with
|
|
339
|
-
* their signatures and brief descriptions. Both member definitions and
|
|
340
|
-
* references are included in the index for comprehensive overview.
|
|
341
|
-
*
|
|
342
|
-
* @returns Array of HTML lines representing the section index
|
|
343
|
-
*
|
|
344
|
-
* @public
|
|
345
|
-
*/
|
|
346
140
|
renderIndexToLines() {
|
|
347
141
|
const lines = [];
|
|
348
|
-
// console.log(sectionDef)
|
|
349
142
|
if (this.indexMembers.length > 0) {
|
|
350
143
|
lines.push('');
|
|
351
144
|
lines.push(`## ${this.headerName} Index`);
|
|
@@ -366,25 +159,11 @@ export class Section {
|
|
|
366
159
|
}
|
|
367
160
|
return lines;
|
|
368
161
|
}
|
|
369
|
-
// --------------------------------------------------------------------------
|
|
370
|
-
/**
|
|
371
|
-
* Renders the complete section documentation to HTML lines.
|
|
372
|
-
*
|
|
373
|
-
* @remarks
|
|
374
|
-
* Generates detailed section documentation including header, optional
|
|
375
|
-
* description, and full member definitions. Only sections with member
|
|
376
|
-
* definitions are rendered, ensuring meaningful content output.
|
|
377
|
-
*
|
|
378
|
-
* @returns Array of HTML lines representing the complete section
|
|
379
|
-
*
|
|
380
|
-
* @public
|
|
381
|
-
*/
|
|
382
162
|
renderToLines() {
|
|
383
163
|
const lines = [];
|
|
384
164
|
if (!this.hasDefinitionMembers()) {
|
|
385
165
|
return lines;
|
|
386
166
|
}
|
|
387
|
-
// TODO: filter out members defined in other compounds.
|
|
388
167
|
lines.push('');
|
|
389
168
|
lines.push('<div class="doxySectionDef">');
|
|
390
169
|
lines.push('');
|
|
@@ -404,283 +183,40 @@ export class Section {
|
|
|
404
183
|
return lines;
|
|
405
184
|
}
|
|
406
185
|
}
|
|
407
|
-
// ----------------------------------------------------------------------------
|
|
408
|
-
/**
|
|
409
|
-
* Base class for member instances providing common functionality.
|
|
410
|
-
*
|
|
411
|
-
* @remarks
|
|
412
|
-
* Provides shared properties and methods for both member definitions and
|
|
413
|
-
* member references, establishing a common interface for member handling
|
|
414
|
-
* throughout the documentation generation process.
|
|
415
|
-
*
|
|
416
|
-
* @internal
|
|
417
|
-
*/
|
|
418
186
|
class MemberBase {
|
|
419
|
-
/**
|
|
420
|
-
* The parent section containing this member.
|
|
421
|
-
*
|
|
422
|
-
* @remarks
|
|
423
|
-
* References the section that owns this member for context and
|
|
424
|
-
* access to compound and workspace information.
|
|
425
|
-
*/
|
|
426
187
|
section;
|
|
427
|
-
/**
|
|
428
|
-
* The member name identifier.
|
|
429
|
-
*
|
|
430
|
-
* @remarks
|
|
431
|
-
* Base name of the member used for identification and documentation
|
|
432
|
-
* generation across different member types.
|
|
433
|
-
*/
|
|
434
188
|
name;
|
|
435
|
-
/**
|
|
436
|
-
* Initialises a new MemberBase instance.
|
|
437
|
-
*
|
|
438
|
-
* @remarks
|
|
439
|
-
* Establishes the basic member properties required for all member types,
|
|
440
|
-
* providing foundation for both definitions and references.
|
|
441
|
-
*
|
|
442
|
-
* @param section - The parent section containing this member
|
|
443
|
-
* @param name - The member name identifier
|
|
444
|
-
*
|
|
445
|
-
* @protected
|
|
446
|
-
*/
|
|
447
189
|
constructor(section, name) {
|
|
448
190
|
this.section = section;
|
|
449
191
|
this.name = name;
|
|
450
192
|
}
|
|
451
|
-
/**
|
|
452
|
-
* Performs late initialisation for members.
|
|
453
|
-
*
|
|
454
|
-
* @remarks
|
|
455
|
-
* Base implementation is intentionally empty, allowing subclasses to
|
|
456
|
-
* override with specific initialisation logic as needed.
|
|
457
|
-
*
|
|
458
|
-
* @public
|
|
459
|
-
*/
|
|
460
|
-
// Intentionally left blank for subclasses to override.
|
|
461
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
462
193
|
initializeLate() { }
|
|
463
194
|
}
|
|
464
|
-
/**
|
|
465
|
-
* Represents a complete member definition with full documentation.
|
|
466
|
-
*
|
|
467
|
-
* @remarks
|
|
468
|
-
* Contains comprehensive member information including documentation,
|
|
469
|
-
* signatures, location data, and rendering capabilities. Handles
|
|
470
|
-
* various member types such as functions, variables, enums, and
|
|
471
|
-
* typedefs with their specific documentation requirements.
|
|
472
|
-
*
|
|
473
|
-
* @public
|
|
474
|
-
*/
|
|
475
195
|
export class Member extends MemberBase {
|
|
476
|
-
/**
|
|
477
|
-
* Unique identifier for this member.
|
|
478
|
-
*
|
|
479
|
-
* @remarks
|
|
480
|
-
* Doxygen-generated unique ID used for cross-references, permalinks,
|
|
481
|
-
* and member lookup operations throughout the documentation.
|
|
482
|
-
*/
|
|
483
196
|
id;
|
|
484
|
-
/**
|
|
485
|
-
* The member kind from Doxygen classification.
|
|
486
|
-
*
|
|
487
|
-
* @remarks
|
|
488
|
-
* Specifies the type of member (e.g., 'function', 'variable', 'enum',
|
|
489
|
-
* 'typedef') which determines rendering and documentation behaviour.
|
|
490
|
-
*/
|
|
491
197
|
kind;
|
|
492
|
-
/**
|
|
493
|
-
* Brief description in HTML format.
|
|
494
|
-
*
|
|
495
|
-
* @remarks
|
|
496
|
-
* Optional short description of the member, processed into HTML for
|
|
497
|
-
* display in indices and member overviews.
|
|
498
|
-
*/
|
|
499
198
|
briefDescriptionHtmlString;
|
|
500
|
-
/**
|
|
501
|
-
* Detailed description lines in HTML format.
|
|
502
|
-
*
|
|
503
|
-
* @remarks
|
|
504
|
-
* Comprehensive member documentation including parameters, return values,
|
|
505
|
-
* examples, and detailed explanations processed into HTML lines.
|
|
506
|
-
*/
|
|
507
199
|
detailedDescriptionHtmlLines;
|
|
508
|
-
/**
|
|
509
|
-
* Function argument string from Doxygen.
|
|
510
|
-
*
|
|
511
|
-
* @remarks
|
|
512
|
-
* Contains the complete function signature arguments including types,
|
|
513
|
-
* names, and default values for function-type members.
|
|
514
|
-
*/
|
|
515
200
|
argsstring;
|
|
516
|
-
/**
|
|
517
|
-
* Fully qualified member name.
|
|
518
|
-
*
|
|
519
|
-
* @remarks
|
|
520
|
-
* Complete qualified name including namespace and class scope,
|
|
521
|
-
* used for accurate member identification and documentation.
|
|
522
|
-
*/
|
|
523
201
|
qualifiedName;
|
|
524
|
-
/**
|
|
525
|
-
* Member definition string from Doxygen.
|
|
526
|
-
*
|
|
527
|
-
* @remarks
|
|
528
|
-
* Complete member definition including type, qualifiers, and signature,
|
|
529
|
-
* used for generating accurate member documentation and prototypes.
|
|
530
|
-
*/
|
|
531
202
|
definition;
|
|
532
|
-
/**
|
|
533
|
-
* Member type information in HTML format.
|
|
534
|
-
*
|
|
535
|
-
* @remarks
|
|
536
|
-
* Type specification for the member including template parameters and
|
|
537
|
-
* qualifiers, processed into HTML for documentation display.
|
|
538
|
-
*/
|
|
539
203
|
type;
|
|
540
|
-
/**
|
|
541
|
-
* Member initialiser lines in HTML format.
|
|
542
|
-
*
|
|
543
|
-
* @remarks
|
|
544
|
-
* Variable or constant initialisation values, processed into HTML lines
|
|
545
|
-
* for display in member documentation and indices.
|
|
546
|
-
*/
|
|
547
204
|
initializerHtmlLines;
|
|
548
|
-
/**
|
|
549
|
-
* Location information in Markdown format.
|
|
550
|
-
*
|
|
551
|
-
* @remarks
|
|
552
|
-
* File and line number information for the member definition,
|
|
553
|
-
* formatted as Markdown for documentation display.
|
|
554
|
-
*/
|
|
555
205
|
locationMarkdownLines;
|
|
556
|
-
/**
|
|
557
|
-
* Template parameters string.
|
|
558
|
-
*
|
|
559
|
-
* @remarks
|
|
560
|
-
* Template parameter specification for template members, formatted
|
|
561
|
-
* for display in member documentation headers.
|
|
562
|
-
*/
|
|
563
206
|
templateParameters;
|
|
564
|
-
/**
|
|
565
|
-
* Enumeration values in HTML format.
|
|
566
|
-
*
|
|
567
|
-
* @remarks
|
|
568
|
-
* For enum members, contains the formatted enumeration values table
|
|
569
|
-
* with descriptions, processed into HTML lines.
|
|
570
|
-
*/
|
|
571
207
|
enumHtmlLines;
|
|
572
|
-
/**
|
|
573
|
-
* Function parameters in HTML format.
|
|
574
|
-
*
|
|
575
|
-
* @remarks
|
|
576
|
-
* For function members, contains the processed parameter list with
|
|
577
|
-
* types and names formatted as HTML string.
|
|
578
|
-
*/
|
|
579
208
|
parametersHtmlString;
|
|
580
|
-
/**
|
|
581
|
-
* Program listing for inline code display.
|
|
582
|
-
*
|
|
583
|
-
* @remarks
|
|
584
|
-
* When enabled, contains the source code excerpt for the member
|
|
585
|
-
* definition for inline documentation display.
|
|
586
|
-
*/
|
|
587
209
|
programListing;
|
|
588
|
-
/**
|
|
589
|
-
* Cross-references to members that reference this member.
|
|
590
|
-
*
|
|
591
|
-
* @remarks
|
|
592
|
-
* Markdown-formatted list of members and locations that reference
|
|
593
|
-
* this member, providing reverse lookup capabilities.
|
|
594
|
-
*/
|
|
595
210
|
referencedByMarkdownString;
|
|
596
|
-
/**
|
|
597
|
-
* Cross-references to members referenced by this member.
|
|
598
|
-
*
|
|
599
|
-
* @remarks
|
|
600
|
-
* Markdown-formatted list of members and locations referenced by
|
|
601
|
-
* this member, providing forward lookup capabilities.
|
|
602
|
-
*/
|
|
603
211
|
referencesMarkdownString;
|
|
604
|
-
/**
|
|
605
|
-
* Enumeration values for enum members.
|
|
606
|
-
*
|
|
607
|
-
* @remarks
|
|
608
|
-
* For enumeration members, contains the collection of enum values
|
|
609
|
-
* with their documentation and initialiser values.
|
|
610
|
-
*/
|
|
611
212
|
enumValues;
|
|
612
|
-
/**
|
|
613
|
-
* Collection of member attribute labels.
|
|
614
|
-
*
|
|
615
|
-
* @remarks
|
|
616
|
-
* Contains labels such as 'static', 'inline', 'virtual', 'const' that
|
|
617
|
-
* are displayed as badges in the member documentation.
|
|
618
|
-
*/
|
|
619
213
|
labels = [];
|
|
620
|
-
/**
|
|
621
|
-
* Indicates if the member uses trailing return type syntax.
|
|
622
|
-
*
|
|
623
|
-
* @remarks
|
|
624
|
-
* For C++ functions with trailing return types (auto func() -> Type),
|
|
625
|
-
* affects how the member signature is formatted in documentation.
|
|
626
|
-
*/
|
|
627
214
|
isTrailingType = false;
|
|
628
|
-
/**
|
|
629
|
-
* Indicates if the member is declared as constexpr.
|
|
630
|
-
*
|
|
631
|
-
* @remarks
|
|
632
|
-
* True for constexpr members, affects display formatting and
|
|
633
|
-
* documentation generation for compile-time constants.
|
|
634
|
-
*/
|
|
635
215
|
isConstexpr = false;
|
|
636
|
-
/**
|
|
637
|
-
* Indicates if the member is a strong enum.
|
|
638
|
-
*
|
|
639
|
-
* @remarks
|
|
640
|
-
* True for enum class declarations, affects how enumeration
|
|
641
|
-
* documentation is formatted and displayed.
|
|
642
|
-
*/
|
|
643
216
|
isStrong = false;
|
|
644
|
-
/**
|
|
645
|
-
* Indicates if the member is declared as const.
|
|
646
|
-
*
|
|
647
|
-
* @remarks
|
|
648
|
-
* True for const members, affects member signature display
|
|
649
|
-
* and documentation formatting.
|
|
650
|
-
*/
|
|
651
217
|
isConst = false;
|
|
652
|
-
/**
|
|
653
|
-
* Indicates if the member is declared as static.
|
|
654
|
-
*
|
|
655
|
-
* @remarks
|
|
656
|
-
* True for static members, affects member organisation,
|
|
657
|
-
* display formatting, and section classification.
|
|
658
|
-
*/
|
|
659
218
|
isStatic = false;
|
|
660
|
-
/**
|
|
661
|
-
* Private data available only during initialisation.
|
|
662
|
-
*
|
|
663
|
-
* @remarks
|
|
664
|
-
* Temporary storage for member definition data that is cleared
|
|
665
|
-
* after late initialisation to reduce memory usage.
|
|
666
|
-
*
|
|
667
|
-
* @internal
|
|
668
|
-
*/
|
|
669
219
|
_private = {};
|
|
670
|
-
/**
|
|
671
|
-
* Initialises a new Member instance from member definition data.
|
|
672
|
-
*
|
|
673
|
-
* @remarks
|
|
674
|
-
* Creates a member instance with basic identification information.
|
|
675
|
-
* Full initialisation occurs later during the initializeLate phase
|
|
676
|
-
* when workspace context is available for processing descriptions
|
|
677
|
-
* and cross-references.
|
|
678
|
-
*
|
|
679
|
-
* @param section - The parent section containing this member
|
|
680
|
-
* @param memberDef - The member definition containing member metadata
|
|
681
|
-
*
|
|
682
|
-
* @public
|
|
683
|
-
*/
|
|
684
220
|
constructor(section, memberDef) {
|
|
685
221
|
super(section, memberDef.name);
|
|
686
222
|
this._private._memberDef = memberDef;
|
|
@@ -688,24 +224,12 @@ export class Member extends MemberBase {
|
|
|
688
224
|
this.id = id;
|
|
689
225
|
this.kind = kind;
|
|
690
226
|
}
|
|
691
|
-
/**
|
|
692
|
-
* Performs comprehensive late initialisation for member documentation.
|
|
693
|
-
*
|
|
694
|
-
* @remarks
|
|
695
|
-
* Processes member descriptions, signatures, location data, cross-references,
|
|
696
|
-
* and rendering properties. This method transforms raw Doxygen data into
|
|
697
|
-
* formatted HTML content ready for documentation generation. It handles
|
|
698
|
-
* template parameters, enumeration values, and various member attributes.
|
|
699
|
-
*
|
|
700
|
-
* @public
|
|
701
|
-
*/
|
|
702
227
|
initializeLate() {
|
|
703
228
|
super.initializeLate();
|
|
704
229
|
const { _memberDef: memberDef } = this._private;
|
|
705
230
|
assert(memberDef !== undefined);
|
|
706
231
|
const { workspace } = this.section.compound.collection;
|
|
707
232
|
if (memberDef.briefDescription !== undefined) {
|
|
708
|
-
// console.log(memberDef.briefDescription)
|
|
709
233
|
assert(memberDef.briefDescription.children !== undefined);
|
|
710
234
|
for (const child of memberDef.briefDescription.children) {
|
|
711
235
|
if (child instanceof ParaDataModel) {
|
|
@@ -767,11 +291,9 @@ export class Member extends MemberBase {
|
|
|
767
291
|
if (memberDef.virt !== undefined && memberDef.virt === 'virtual') {
|
|
768
292
|
labels.push('virtual');
|
|
769
293
|
}
|
|
770
|
-
// WARNING: there is no explicit attribute for 'delete'.
|
|
771
294
|
if (memberDef.argsstring?.endsWith('=delete') ?? false) {
|
|
772
295
|
labels.push('delete');
|
|
773
296
|
}
|
|
774
|
-
// WARNING: there is no explicit attribute for 'default'.
|
|
775
297
|
if (memberDef.argsstring?.endsWith('=default') ?? false) {
|
|
776
298
|
labels.push('default');
|
|
777
299
|
}
|
|
@@ -781,7 +303,6 @@ export class Member extends MemberBase {
|
|
|
781
303
|
if (memberDef.mutable?.valueOf() ?? false) {
|
|
782
304
|
labels.push('mutable');
|
|
783
305
|
}
|
|
784
|
-
// WARNING: could not find how to generate 'inherited'.
|
|
785
306
|
this.labels = labels;
|
|
786
307
|
const type = this.type ?? '';
|
|
787
308
|
const templateParamList = memberDef.templateparamlist ??
|
|
@@ -828,24 +349,9 @@ export class Member extends MemberBase {
|
|
|
828
349
|
}
|
|
829
350
|
this.isStrong = memberDef.strong?.valueOf() ?? false;
|
|
830
351
|
this.isConst = memberDef.constt?.valueOf() ?? false;
|
|
831
|
-
// Clear the reference, it is no longer needed.
|
|
832
352
|
this._private._memberDef = undefined;
|
|
833
353
|
}
|
|
834
|
-
/**
|
|
835
|
-
* Filters program listing content for a specific member location.
|
|
836
|
-
*
|
|
837
|
-
* @remarks
|
|
838
|
-
* Extracts relevant source code lines from file program listings based on
|
|
839
|
-
* member location data. Creates a filtered program listing containing only
|
|
840
|
-
* the code relevant to this specific member for inline documentation display.
|
|
841
|
-
*
|
|
842
|
-
* @param location - The location data containing file and line information
|
|
843
|
-
* @returns Filtered program listing or undefined if unavailable
|
|
844
|
-
*
|
|
845
|
-
* @private
|
|
846
|
-
*/
|
|
847
354
|
filterProgramListingForLocation(location) {
|
|
848
|
-
// console.log(location)
|
|
849
355
|
const { workspace } = this.section.compound.collection;
|
|
850
356
|
if (location === undefined) {
|
|
851
357
|
return undefined;
|
|
@@ -876,48 +382,14 @@ export class Member extends MemberBase {
|
|
|
876
382
|
else {
|
|
877
383
|
return undefined;
|
|
878
384
|
}
|
|
879
|
-
// console.log(definitionFile.indexName, startLine, endLine)
|
|
880
385
|
programListing = new MemberProgramListingDataModel(definitionFile.programListing, startLine, endLine);
|
|
881
|
-
// } else if (location.file !== undefined) {
|
|
882
|
-
// definitionFile = workspace.filesByPath.get(location.file)
|
|
883
|
-
// if (definitionFile === undefined) {
|
|
884
|
-
// console.log('no definition')
|
|
885
|
-
// return undefined
|
|
886
|
-
// }
|
|
887
|
-
// if (definitionFile.programListing === undefined) {
|
|
888
|
-
// console.log('no listing')
|
|
889
|
-
// return undefined
|
|
890
|
-
// }
|
|
891
|
-
// if (location.line !== undefined) {
|
|
892
|
-
// startLine = location.line.valueOf()
|
|
893
|
-
// endLine = startLine
|
|
894
|
-
// } else {
|
|
895
|
-
// return undefined
|
|
896
|
-
// }
|
|
897
386
|
}
|
|
898
387
|
if (definitionFile?.programListing !== undefined) {
|
|
899
|
-
// console.log(definitionFile.indexName, startLine, endLine)
|
|
900
388
|
programListing = new MemberProgramListingDataModel(definitionFile.programListing, startLine, endLine);
|
|
901
389
|
}
|
|
902
|
-
// console.log(programListing)
|
|
903
390
|
return programListing;
|
|
904
391
|
}
|
|
905
|
-
// --------------------------------------------------------------------------
|
|
906
|
-
/**
|
|
907
|
-
* Renders the member index entry to HTML table lines.
|
|
908
|
-
*
|
|
909
|
-
* @remarks
|
|
910
|
-
* Generates a formatted HTML table row for member index display, including
|
|
911
|
-
* member signature, type information, template parameters, and brief
|
|
912
|
-
* description. The format varies based on member kind (function, variable,
|
|
913
|
-
* enum, typedef, etc.) to provide appropriate representation.
|
|
914
|
-
*
|
|
915
|
-
* @returns Array of HTML lines representing the member index entry
|
|
916
|
-
*
|
|
917
|
-
* @public
|
|
918
|
-
*/
|
|
919
392
|
renderIndexToLines() {
|
|
920
|
-
// console.log(util.inspect(this, { compact: false, depth: 999 }))
|
|
921
393
|
const lines = [];
|
|
922
394
|
const workspace = this.section.compound.collection.workspace;
|
|
923
395
|
const permalink = workspace.getPermalink({
|
|
@@ -961,10 +433,6 @@ export class Member extends MemberBase {
|
|
|
961
433
|
break;
|
|
962
434
|
case 'function':
|
|
963
435
|
{
|
|
964
|
-
// WARNING: the rule to decide which type is trailing is not
|
|
965
|
-
// in the XMLs.
|
|
966
|
-
// https://github.com/doxygen/doxygen/discussions/11568
|
|
967
|
-
// TODO: improve.
|
|
968
436
|
const type = this.type ?? '';
|
|
969
437
|
if (this.isStatic) {
|
|
970
438
|
itemType += 'static ';
|
|
@@ -980,7 +448,6 @@ export class Member extends MemberBase {
|
|
|
980
448
|
if (!itemType.includes('auto')) {
|
|
981
449
|
itemType += 'auto ';
|
|
982
450
|
}
|
|
983
|
-
// WARNING: Doxygen shows this, but the resulting line is too long.
|
|
984
451
|
itemName += workspace.renderString(' -> ', 'html');
|
|
985
452
|
itemName += type;
|
|
986
453
|
}
|
|
@@ -988,7 +455,6 @@ export class Member extends MemberBase {
|
|
|
988
455
|
itemType += type;
|
|
989
456
|
}
|
|
990
457
|
if (this.initializerHtmlLines !== undefined) {
|
|
991
|
-
// Show only short initializers in the index.
|
|
992
458
|
itemName += ' ';
|
|
993
459
|
if (this.initializerHtmlLines.length === 1) {
|
|
994
460
|
itemName += this.initializerHtmlLines[0];
|
|
@@ -1018,7 +484,6 @@ export class Member extends MemberBase {
|
|
|
1018
484
|
itemName += this.argsstring;
|
|
1019
485
|
}
|
|
1020
486
|
if (this.initializerHtmlLines !== undefined) {
|
|
1021
|
-
// Show only short initializers in the index.
|
|
1022
487
|
itemName += ' ';
|
|
1023
488
|
if (this.initializerHtmlLines.length === 1) {
|
|
1024
489
|
itemName += this.initializerHtmlLines[0];
|
|
@@ -1029,7 +494,6 @@ export class Member extends MemberBase {
|
|
|
1029
494
|
}
|
|
1030
495
|
break;
|
|
1031
496
|
case 'enum':
|
|
1032
|
-
// console.log(this)
|
|
1033
497
|
itemType = '';
|
|
1034
498
|
if (this.name.length === 0) {
|
|
1035
499
|
itemType += 'anonymous ';
|
|
@@ -1047,11 +511,9 @@ export class Member extends MemberBase {
|
|
|
1047
511
|
itemName += workspace.renderString(' }', 'html');
|
|
1048
512
|
break;
|
|
1049
513
|
case 'friend':
|
|
1050
|
-
// console.log(this)
|
|
1051
514
|
itemType = this.type ?? 'class';
|
|
1052
515
|
break;
|
|
1053
516
|
case 'define':
|
|
1054
|
-
// console.log(this)
|
|
1055
517
|
itemType = '#define';
|
|
1056
518
|
if (this.parametersHtmlString !== undefined) {
|
|
1057
519
|
itemName += `(${this.parametersHtmlString})`;
|
|
@@ -1082,7 +544,7 @@ export class Member extends MemberBase {
|
|
|
1082
544
|
briefDescriptionString.length > 0) {
|
|
1083
545
|
childrenLines.push(this.section.compound.renderBriefDescriptionToHtmlString({
|
|
1084
546
|
briefDescriptionHtmlString: briefDescriptionString,
|
|
1085
|
-
morePermalink: permalink,
|
|
547
|
+
morePermalink: permalink,
|
|
1086
548
|
}));
|
|
1087
549
|
}
|
|
1088
550
|
lines.push(...workspace.renderMembersIndexItemToHtmlLines({
|
|
@@ -1093,20 +555,6 @@ export class Member extends MemberBase {
|
|
|
1093
555
|
}));
|
|
1094
556
|
return lines;
|
|
1095
557
|
}
|
|
1096
|
-
// --------------------------------------------------------------------------
|
|
1097
|
-
/**
|
|
1098
|
-
* Renders the complete member documentation to HTML lines.
|
|
1099
|
-
*
|
|
1100
|
-
* @remarks
|
|
1101
|
-
* Generates comprehensive member documentation including header, signature,
|
|
1102
|
-
* template parameters, descriptions, initialisers, and cross-references.
|
|
1103
|
-
* The output format varies based on member type to provide appropriate
|
|
1104
|
-
* documentation structure for functions, variables, enums, and other members.
|
|
1105
|
-
*
|
|
1106
|
-
* @returns Array of HTML lines representing the complete member documentation
|
|
1107
|
-
*
|
|
1108
|
-
* @public
|
|
1109
|
-
*/
|
|
1110
558
|
renderToLines() {
|
|
1111
559
|
const lines = [];
|
|
1112
560
|
const workspace = this.section.compound.collection.workspace;
|
|
@@ -1125,17 +573,13 @@ export class Member extends MemberBase {
|
|
|
1125
573
|
let prototype = undefined;
|
|
1126
574
|
const { labels } = this;
|
|
1127
575
|
const childrenLines = [];
|
|
1128
|
-
// console.log(memberDef.kind)
|
|
1129
576
|
switch (this.kind) {
|
|
1130
577
|
case 'function':
|
|
1131
578
|
case 'typedef':
|
|
1132
579
|
case 'variable':
|
|
1133
|
-
// WARNING: the rule to decide which type is trailing is not in XMLs.
|
|
1134
|
-
// TODO: improve.
|
|
1135
580
|
assert(this.definition !== undefined);
|
|
1136
581
|
prototype = workspace.renderString(this.definition, 'html');
|
|
1137
582
|
if (this.isStatic) {
|
|
1138
|
-
// The html pages show `static` only as a label; strip it.
|
|
1139
583
|
prototype = prototype.replace(/^static /, '');
|
|
1140
584
|
}
|
|
1141
585
|
if (this.kind === 'function') {
|
|
@@ -1173,8 +617,6 @@ export class Member extends MemberBase {
|
|
|
1173
617
|
for (const initializerLine of this.initializerHtmlLines.slice(1)) {
|
|
1174
618
|
if (initializerLine.trim().length > 0) {
|
|
1175
619
|
childrenLines.push(initializerLine);
|
|
1176
|
-
// } else {
|
|
1177
|
-
// childrenLines.push(' ')
|
|
1178
620
|
}
|
|
1179
621
|
}
|
|
1180
622
|
childrenLines.push('</div>');
|
|
@@ -1233,7 +675,6 @@ export class Member extends MemberBase {
|
|
|
1233
675
|
}
|
|
1234
676
|
break;
|
|
1235
677
|
case 'friend':
|
|
1236
|
-
// console.log(this)
|
|
1237
678
|
assert(this.type !== undefined);
|
|
1238
679
|
prototype = `friend ${this.type}`;
|
|
1239
680
|
if (this.parametersHtmlString !== undefined) {
|
|
@@ -1249,7 +690,6 @@ export class Member extends MemberBase {
|
|
|
1249
690
|
}
|
|
1250
691
|
break;
|
|
1251
692
|
case 'define':
|
|
1252
|
-
// console.log(this)
|
|
1253
693
|
prototype = `#define ${name}`;
|
|
1254
694
|
if (this.parametersHtmlString !== undefined) {
|
|
1255
695
|
prototype += `(${this.parametersHtmlString})`;
|
|
@@ -1282,8 +722,6 @@ export class Member extends MemberBase {
|
|
|
1282
722
|
for (const initializerLine of this.initializerHtmlLines.slice(1)) {
|
|
1283
723
|
if (initializerLine.trim().length > 0) {
|
|
1284
724
|
childrenLines.push(initializerLine);
|
|
1285
|
-
// } else {
|
|
1286
|
-
// childrenLines.push(' ')
|
|
1287
725
|
}
|
|
1288
726
|
}
|
|
1289
727
|
childrenLines.push('</div>');
|
|
@@ -1327,20 +765,6 @@ export class Member extends MemberBase {
|
|
|
1327
765
|
}
|
|
1328
766
|
return lines;
|
|
1329
767
|
}
|
|
1330
|
-
/**
|
|
1331
|
-
* Renders a member definition with prototype and documentation.
|
|
1332
|
-
*
|
|
1333
|
-
* @remarks
|
|
1334
|
-
* Generates the HTML structure for displaying member definitions including
|
|
1335
|
-
* template parameters, prototype signature, attribute labels, and detailed
|
|
1336
|
-
* documentation content. Uses Doxygen-compatible CSS classes for styling.
|
|
1337
|
-
*
|
|
1338
|
-
* @param options - Rendering options including template, prototype, labels,
|
|
1339
|
-
* and content
|
|
1340
|
-
* @returns Array of HTML lines representing the member definition
|
|
1341
|
-
*
|
|
1342
|
-
* @private
|
|
1343
|
-
*/
|
|
1344
768
|
renderMemberDefinitionToLines({ template, prototype, labels, childrenLines, }) {
|
|
1345
769
|
const lines = [];
|
|
1346
770
|
lines.push('<div class="doxyMemberItem">');
|
|
@@ -1370,26 +794,12 @@ export class Member extends MemberBase {
|
|
|
1370
794
|
lines.push('</table>');
|
|
1371
795
|
lines.push('</div>');
|
|
1372
796
|
lines.push('<div class="doxyMemberDoc">');
|
|
1373
|
-
lines.push('');
|
|
797
|
+
lines.push('');
|
|
1374
798
|
lines.push(...childrenLines);
|
|
1375
799
|
lines.push('</div>');
|
|
1376
800
|
lines.push('</div>');
|
|
1377
801
|
return lines;
|
|
1378
802
|
}
|
|
1379
|
-
// --------------------------------------------------------------------------
|
|
1380
|
-
/**
|
|
1381
|
-
* Renders enumeration values to HTML table lines.
|
|
1382
|
-
*
|
|
1383
|
-
* @remarks
|
|
1384
|
-
* Generates a formatted HTML table displaying all enumeration values with
|
|
1385
|
-
* their names, descriptions, and initialiser values. Each enum value
|
|
1386
|
-
* includes an anchor for direct linking and proper formatting for
|
|
1387
|
-
* documentation display.
|
|
1388
|
-
*
|
|
1389
|
-
* @returns Array of HTML lines representing the enumeration values table
|
|
1390
|
-
*
|
|
1391
|
-
* @private
|
|
1392
|
-
*/
|
|
1393
803
|
renderEnumToLines() {
|
|
1394
804
|
const lines = [];
|
|
1395
805
|
lines.push('');
|
|
@@ -1401,18 +811,14 @@ export class Member extends MemberBase {
|
|
|
1401
811
|
for (const enumValue of this.enumValues) {
|
|
1402
812
|
const anchor = getPermalinkAnchor(enumValue.id);
|
|
1403
813
|
let enumBriefDescriptionHtmlString = (enumValue.briefDescriptionHtmlString ?? '').replace(/[.]$/, '');
|
|
1404
|
-
// console.log(`|${enumBriefDescription}|`)
|
|
1405
814
|
const { initializerHtmlString: value } = enumValue;
|
|
1406
815
|
if (value !== undefined && value.length > 0) {
|
|
1407
816
|
enumBriefDescriptionHtmlString += ` (${value})`;
|
|
1408
817
|
}
|
|
1409
818
|
lines.push('');
|
|
1410
|
-
// lines.push(`<a id="${anchor}"></a>`)
|
|
1411
819
|
lines.push('<tr class="doxyEnumItem">');
|
|
1412
820
|
lines.push(`<td class="doxyEnumItemName">${enumValue.name}` +
|
|
1413
821
|
`<a id="${anchor}"></a></td>`);
|
|
1414
|
-
// lines.push(`<td class="doxyEnumItemDescription">`+
|
|
1415
|
-
// `<p>${enumBriefDescription}</p></td>`)
|
|
1416
822
|
if (!enumBriefDescriptionHtmlString.includes('\n')) {
|
|
1417
823
|
lines.push(`<td class="doxyEnumItemDescription">` +
|
|
1418
824
|
`${enumBriefDescriptionHtmlString}</td>`);
|
|
@@ -1432,109 +838,20 @@ export class Member extends MemberBase {
|
|
|
1432
838
|
return lines;
|
|
1433
839
|
}
|
|
1434
840
|
}
|
|
1435
|
-
// ----------------------------------------------------------------------------
|
|
1436
|
-
/**
|
|
1437
|
-
* Represents a reference to a member defined elsewhere.
|
|
1438
|
-
*
|
|
1439
|
-
* @remarks
|
|
1440
|
-
* Member references point to actual member definitions in other compounds,
|
|
1441
|
-
* allowing for cross-referencing and inclusion in multiple contexts without
|
|
1442
|
-
* duplicating the complete member definition data.
|
|
1443
|
-
*
|
|
1444
|
-
* @public
|
|
1445
|
-
*/
|
|
1446
841
|
export class MemberRef extends MemberBase {
|
|
1447
|
-
/**
|
|
1448
|
-
* Reference ID pointing to the actual member definition.
|
|
1449
|
-
*
|
|
1450
|
-
* @remarks
|
|
1451
|
-
* Unique identifier used to locate the referenced member definition
|
|
1452
|
-
* in the global members collection for rendering and cross-referencing.
|
|
1453
|
-
*/
|
|
1454
842
|
refid;
|
|
1455
|
-
/**
|
|
1456
|
-
* Initialises a new MemberRef instance from member reference data.
|
|
1457
|
-
*
|
|
1458
|
-
* @remarks
|
|
1459
|
-
* Creates a lightweight reference to a member defined elsewhere, storing
|
|
1460
|
-
* only the essential information needed for lookups and cross-references.
|
|
1461
|
-
*
|
|
1462
|
-
* @param section - The parent section containing this member reference
|
|
1463
|
-
* @param memberRef - The member reference data containing reference ID
|
|
1464
|
-
*
|
|
1465
|
-
* @public
|
|
1466
|
-
*/
|
|
1467
843
|
constructor(section, memberRef) {
|
|
1468
844
|
super(section, memberRef.name);
|
|
1469
|
-
// this.memberRef = memberRef
|
|
1470
845
|
const { refid } = memberRef;
|
|
1471
846
|
this.refid = refid;
|
|
1472
847
|
}
|
|
1473
848
|
}
|
|
1474
|
-
// ----------------------------------------------------------------------------
|
|
1475
|
-
/**
|
|
1476
|
-
* Represents an individual enumeration value with documentation.
|
|
1477
|
-
*
|
|
1478
|
-
* @remarks
|
|
1479
|
-
* Contains the name, description, and initialiser value for enumeration
|
|
1480
|
-
* entries, providing complete documentation support for enum constants
|
|
1481
|
-
* including cross-referencing and detailed descriptions.
|
|
1482
|
-
*
|
|
1483
|
-
* @public
|
|
1484
|
-
*/
|
|
1485
849
|
export class EnumValue {
|
|
1486
|
-
/**
|
|
1487
|
-
* The enumeration value name.
|
|
1488
|
-
*
|
|
1489
|
-
* @remarks
|
|
1490
|
-
* Identifier name of the enumeration constant as declared in the source code.
|
|
1491
|
-
*/
|
|
1492
850
|
name;
|
|
1493
|
-
/**
|
|
1494
|
-
* Unique identifier for this enumeration value.
|
|
1495
|
-
*
|
|
1496
|
-
* @remarks
|
|
1497
|
-
* Doxygen-generated unique ID used for cross-references and anchor
|
|
1498
|
-
* generation in the documentation.
|
|
1499
|
-
*/
|
|
1500
851
|
id;
|
|
1501
|
-
/**
|
|
1502
|
-
* Brief description in HTML format.
|
|
1503
|
-
*
|
|
1504
|
-
* @remarks
|
|
1505
|
-
* Optional description of the enumeration value, processed into HTML
|
|
1506
|
-
* for display in enumeration tables and documentation.
|
|
1507
|
-
*/
|
|
1508
852
|
briefDescriptionHtmlString;
|
|
1509
|
-
/**
|
|
1510
|
-
* Initialiser value in HTML format.
|
|
1511
|
-
*
|
|
1512
|
-
* @remarks
|
|
1513
|
-
* The assigned value for the enumeration constant, if explicitly specified,
|
|
1514
|
-
* formatted as HTML for documentation display.
|
|
1515
|
-
*/
|
|
1516
853
|
initializerHtmlString;
|
|
1517
|
-
/**
|
|
1518
|
-
* Reference to the parent enumeration member.
|
|
1519
|
-
*
|
|
1520
|
-
* @remarks
|
|
1521
|
-
* Back-reference to the Member instance that contains this enumeration
|
|
1522
|
-
* value, providing access to parent context and workspace information.
|
|
1523
|
-
*/
|
|
1524
854
|
member;
|
|
1525
|
-
/**
|
|
1526
|
-
* Initialises a new EnumValue instance from enumeration value data.
|
|
1527
|
-
*
|
|
1528
|
-
* @remarks
|
|
1529
|
-
* Processes the enumeration value metadata including name, description,
|
|
1530
|
-
* and initialiser value, converting them into appropriate HTML format
|
|
1531
|
-
* for documentation rendering.
|
|
1532
|
-
*
|
|
1533
|
-
* @param member - The parent enumeration member
|
|
1534
|
-
* @param enumValue - The enumeration value data from Doxygen
|
|
1535
|
-
*
|
|
1536
|
-
* @public
|
|
1537
|
-
*/
|
|
1538
855
|
constructor(member, enumValue) {
|
|
1539
856
|
this.member = member;
|
|
1540
857
|
this.name = enumValue.name.trim();
|
|
@@ -1558,8 +875,6 @@ export class EnumValue {
|
|
|
1558
875
|
if (enumValue.initializer !== undefined) {
|
|
1559
876
|
this.initializerHtmlString = workspace.renderElementToString(enumValue.initializer, 'html');
|
|
1560
877
|
}
|
|
1561
|
-
// console.log(this)
|
|
1562
878
|
}
|
|
1563
879
|
}
|
|
1564
|
-
// ----------------------------------------------------------------------------
|
|
1565
880
|
//# sourceMappingURL=members-vm.js.map
|