csharp: Skip beta interfaces from the list of interfaces.

Summary:
Interfaces were declaring Beta parent interfaces instead of skipping
them.

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9282
This commit is contained in:
Lauro Moura 2019-07-11 16:06:17 +02:00 committed by Xavi Artigas
parent 3798356819
commit 7e9eac9fb1
1 changed files with 3 additions and 0 deletions

View File

@ -115,6 +115,9 @@ struct klass
for(auto first = std::begin(cls.immediate_inherits)
, last = std::end(cls.immediate_inherits); first != last; ++first)
{
if (!context_find_tag<options_context>(iface_cxt).want_beta && first->is_beta)
continue;
if(first->type != attributes::class_type::regular && first->type != attributes::class_type::abstract_)
if(!as_generator("\n" << scope_tab << string << " ,").generate(sink, name_helpers::klass_full_interface_name(*first), iface_cxt))
return false;