eolian: disallow @owned on events

This is never used anywhere and it does not make sense with the
new type rules for events.
This commit is contained in:
Daniel Kolesa 2019-03-21 16:17:06 +01:00
parent 3f083b3ccb
commit cef2e337b8
1 changed files with 1 additions and 7 deletions

View File

@ -1687,8 +1687,7 @@ parse_event(Eo_Lexer *ls)
ev->base.name = eina_stringshare_add(eina_strbuf_string_get(buf)); ev->base.name = eina_stringshare_add(eina_strbuf_string_get(buf));
eo_lexer_dtor_pop(ls); eo_lexer_dtor_pop(ls);
Eina_Bool has_scope = EINA_FALSE, has_beta = EINA_FALSE, Eina_Bool has_scope = EINA_FALSE, has_beta = EINA_FALSE,
has_hot = EINA_FALSE, has_restart = EINA_FALSE, has_hot = EINA_FALSE, has_restart = EINA_FALSE;
has_owned = EINA_FALSE;
for (;;) switch (ls->t.kw) for (;;) switch (ls->t.kw)
{ {
case KW_at_private: case KW_at_private:
@ -1714,17 +1713,12 @@ parse_event(Eo_Lexer *ls)
ev->is_restart = EINA_TRUE; ev->is_restart = EINA_TRUE;
eo_lexer_get(ls); eo_lexer_get(ls);
break; break;
case KW_at_owned:
CASE_LOCK(ls, owned, "owned qualifier");
eo_lexer_get(ls);
break;
default: default:
goto end; goto end;
} }
end: end:
check_next(ls, ':'); check_next(ls, ':');
ev->type = eo_lexer_type_release(ls, parse_type_void(ls, EINA_TRUE)); ev->type = eo_lexer_type_release(ls, parse_type_void(ls, EINA_TRUE));
ev->type->owned = has_owned;
check(ls, ';'); check(ls, ';');
eo_lexer_get(ls); eo_lexer_get(ls);
FILL_DOC(ls, ev, doc); FILL_DOC(ls, ev, doc);