File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
share/mrdocs/addons/generator/common/partials/symbol/signature Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 24
24
final;` is ill-formed (`final` can't be used on a non-defining
25
25
declaration). Similarly, don't show a semicolon if there are base
26
26
classes. --}}
27
- {{ ~#unless ( or isSeeBelow isFinal bases ) }} ; {{ /unless ~}}
28
- {{ ~# isSeeBelow}} { /* see-below */ } ;{{ /isSeeBelow ~ }}
27
+ {{ ~#isSeeBelow }} { /* see-below */ } {{ /isSeeBelow ~}}
28
+ {{ #if ( or isSeeBelow ( and ( not isFinal ) ( isEmpty bases ))) }} ;{{ /if }}
Original file line number Diff line number Diff line change @@ -3793,6 +3793,16 @@ block_helper_missing_fn(
3793
3793
return {};
3794
3794
}
3795
3795
3796
+ Expected<dom::Value>
3797
+ is_empty_fn (dom::Array const & arguments)
3798
+ {
3799
+ if (arguments.size () != 2 ) {
3800
+ return Unexpected (Error (" isEmpty requires exactly one argument" ));
3801
+ }
3802
+
3803
+ return dom::Value (isEmpty (arguments.get (0 )));
3804
+ }
3805
+
3796
3806
void
3797
3807
registerBuiltinHelpers (Handlebars& hbs)
3798
3808
{
@@ -3804,6 +3814,7 @@ registerBuiltinHelpers(Handlebars& hbs)
3804
3814
hbs.registerHelper (" log" , dom::makeVariadicInvocable (log_fn));
3805
3815
hbs.registerHelper (" helperMissing" , dom::makeVariadicInvocable (helper_missing_fn));
3806
3816
hbs.registerHelper (" blockHelperMissing" , dom::makeInvocable (block_helper_missing_fn));
3817
+ hbs.registerHelper (" isEmpty" , dom::makeVariadicInvocable (is_empty_fn));
3807
3818
}
3808
3819
3809
3820
void
You can’t perform that action at this time.
0 commit comments