Skip to content

Commit 5e879b1

Browse files
committed
fix(handlebars): records include protected base classes
1 parent ec8daa1 commit 5e879b1

File tree

14 files changed

+216
-0
lines changed

14 files changed

+216
-0
lines changed

share/mrdocs/addons/generator/adoc/partials/symbol.adoc.hbs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@
4141
{{/each}}
4242
|===
4343

44+
{{/if}}
45+
{{! Protected Base classes }}
46+
{{#if (any_of_by symbol.bases "isProtected")}}
47+
{{#> markup/dynamic-level-h }}Protected Base Classes{{/markup/dynamic-level-h}}
48+
[cols=2]
49+
|===
50+
| Name
51+
| Description
52+
{{#each (filter_by symbol.bases "isProtected")}}
53+
| {{#>markup/code}}{{> type/declarator type }}{{/markup/code}}
54+
| {{> javadoc/inline-brief symbol.doc.brief }}
55+
{{/each}}
56+
|===
57+
4458
{{/if}}
4559
{{! Members }}
4660
{{! Record interface }}

share/mrdocs/addons/generator/html/partials/symbol.html.hbs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,25 @@
5959
</table>
6060
</div>
6161
{{/if}}
62+
{{! Protected Base classes }}
63+
{{#if (any_of_by symbol.bases "isProtected")}}
64+
<div>
65+
{{#> markup/dynamic-level-h }}Protected Base Classes{{/markup/dynamic-level-h}}
66+
<table>
67+
<thead>
68+
<tr>
69+
<th>Name</th>
70+
<th>Description</th>
71+
</tr>
72+
</thead>
73+
<tbody>
74+
{{#each (filter_by symbol.bases "isProtected")}}
75+
<tr><td>{{#>markup/code}}{{> type/declarator type }}{{/markup/code}}</td><td>{{> javadoc/inline-brief symbol.doc.brief }}</td></tr>
76+
{{/each}}
77+
</tbody>
78+
</table>
79+
</div>
80+
{{/if}}
6281
{{! Members }}
6382
{{! Record interface }}
6483
{{#if (eq symbol.kind "record")}}

test-files/golden-tests/config/inherit-base-members/copy-dependencies.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,18 @@ class protected&lowbar;derived
510510
, protected excluded&lowbar;base
511511
----
512512

513+
=== Protected Base Classes
514+
515+
[cols=2]
516+
|===
517+
| Name
518+
| Description
519+
| `link:#base[base]`
520+
| A base class to test inheritance and shadowing
521+
| `excluded&lowbar;base`
522+
|
523+
|===
524+
513525
=== Member Functions
514526

515527
[cols=2]

test-files/golden-tests/config/inherit-base-members/copy-dependencies.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,21 @@ <h3>Synopsis</h3>
646646
</code>
647647
</pre>
648648
</div>
649+
<div>
650+
<h2>Protected Base Classes</h2>
651+
<table>
652+
<thead>
653+
<tr>
654+
<th>Name</th>
655+
<th>Description</th>
656+
</tr>
657+
</thead>
658+
<tbody>
659+
<tr><td><code><a href="#base">base</a></code></td><td><span>A base class to test inheritance and shadowing</span></td></tr>
660+
<tr><td><code>excluded_base</code></td><td><span></span></td></tr>
661+
</tbody>
662+
</table>
663+
</div>
649664
<h2>Member Functions</h2>
650665
<table style="table-layout: fixed; width: 100%;">
651666
<thead>

test-files/golden-tests/config/inherit-base-members/copy.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,18 @@ class protected&lowbar;derived
681681
, protected excluded&lowbar;base
682682
----
683683

684+
=== Protected Base Classes
685+
686+
[cols=2]
687+
|===
688+
| Name
689+
| Description
690+
| `link:#base[base]`
691+
| A base class to test inheritance and shadowing
692+
| `excluded&lowbar;base`
693+
|
694+
|===
695+
684696
=== Member Functions
685697

686698
[cols=2]

test-files/golden-tests/config/inherit-base-members/copy.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,21 @@ <h3>Synopsis</h3>
862862
</code>
863863
</pre>
864864
</div>
865+
<div>
866+
<h2>Protected Base Classes</h2>
867+
<table>
868+
<thead>
869+
<tr>
870+
<th>Name</th>
871+
<th>Description</th>
872+
</tr>
873+
</thead>
874+
<tbody>
875+
<tr><td><code><a href="#base">base</a></code></td><td><span>A base class to test inheritance and shadowing</span></td></tr>
876+
<tr><td><code>excluded_base</code></td><td><span></span></td></tr>
877+
</tbody>
878+
</table>
879+
</div>
865880
<h2>Member Functions</h2>
866881
<table style="table-layout: fixed; width: 100%;">
867882
<thead>

test-files/golden-tests/config/inherit-base-members/never.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,18 @@ class protected&lowbar;derived
433433
, protected excluded&lowbar;base
434434
----
435435

436+
=== Protected Base Classes
437+
438+
[cols=2]
439+
|===
440+
| Name
441+
| Description
442+
| `link:#base[base]`
443+
| A base class to test inheritance and shadowing
444+
| `excluded&lowbar;base`
445+
|
446+
|===
447+
436448
=== Member Functions
437449

438450
[cols=2]

test-files/golden-tests/config/inherit-base-members/never.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,21 @@ <h3>Synopsis</h3>
561561
</code>
562562
</pre>
563563
</div>
564+
<div>
565+
<h2>Protected Base Classes</h2>
566+
<table>
567+
<thead>
568+
<tr>
569+
<th>Name</th>
570+
<th>Description</th>
571+
</tr>
572+
</thead>
573+
<tbody>
574+
<tr><td><code><a href="#base">base</a></code></td><td><span>A base class to test inheritance and shadowing</span></td></tr>
575+
<tr><td><code>excluded_base</code></td><td><span></span></td></tr>
576+
</tbody>
577+
</table>
578+
</div>
564579
<h2>Member Functions</h2>
565580
<table style="table-layout: fixed; width: 100%;">
566581
<thead>

test-files/golden-tests/config/inherit-base-members/reference.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,18 @@ class protected&lowbar;derived
459459
, protected excluded&lowbar;base
460460
----
461461

462+
=== Protected Base Classes
463+
464+
[cols=2]
465+
|===
466+
| Name
467+
| Description
468+
| `link:#base[base]`
469+
| A base class to test inheritance and shadowing
470+
| `excluded&lowbar;base`
471+
|
472+
|===
473+
462474
=== Member Functions
463475

464476
[cols=2]

test-files/golden-tests/config/inherit-base-members/reference.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,21 @@ <h3>Synopsis</h3>
583583
</code>
584584
</pre>
585585
</div>
586+
<div>
587+
<h2>Protected Base Classes</h2>
588+
<table>
589+
<thead>
590+
<tr>
591+
<th>Name</th>
592+
<th>Description</th>
593+
</tr>
594+
</thead>
595+
<tbody>
596+
<tr><td><code><a href="#base">base</a></code></td><td><span>A base class to test inheritance and shadowing</span></td></tr>
597+
<tr><td><code>excluded_base</code></td><td><span></span></td></tr>
598+
</tbody>
599+
</table>
600+
</div>
586601
<h2>Member Functions</h2>
587602
<table style="table-layout: fixed; width: 100%;">
588603
<thead>

0 commit comments

Comments
 (0)