if (fid->set_legacy) eina_stringshare_del(fid->set_legacy);
if (fid->get_description) eina_stringshare_del(fid->get_description);
if (fid->set_description) eina_stringshare_del(fid->set_description);
+ if (fid->common_description) eina_stringshare_del(fid->common_description);
if (fid->get_return_comment) eina_stringshare_del(fid->get_return_comment);
if (fid->set_return_comment) eina_stringshare_del(fid->set_return_comment);
free(fid);
EINA_SAFETY_ON_NULL_RETURN_VAL(fid, NULL);
switch (ftype)
{
- case EOLIAN_UNRESOLVED: case EOLIAN_METHOD: case EOLIAN_PROPERTY: case EOLIAN_PROP_GET: return fid->get_description; break;
+ case EOLIAN_PROP_GET: return fid->get_description; break;
case EOLIAN_PROP_SET: return fid->set_description; break;
- default: return NULL;
+ default: return fid->common_description;
}
}
check_next(ls, '{');
if (ls->t.token == TOK_COMMENT)
{
- /* just consume the comment for now */
+ prop->common_description = eina_stringshare_ref(ls->t.value.s);
eo_lexer_get(ls);
}
for (;;) switch (ls->t.kw)
check_next(ls, '{');
if (ls->t.token == TOK_COMMENT)
{
- meth->get_description = eina_stringshare_ref(ls->t.value.s);
+ meth->common_description = eina_stringshare_ref(ls->t.value.s);
eo_lexer_get(ls);
}
for (;;) switch (ls->t.kw)
Eolian_Implement *set_impl;
Eina_Stringshare *get_legacy;
Eina_Stringshare *set_legacy;
+ Eina_Stringshare *common_description;
Eina_Stringshare *get_description;
Eina_Stringshare *set_description;
Eina_Stringshare *get_return_comment;
data: Evas_Simple_Data;
properties {
a {
+ /*@ Common desc for a */
set {
/*@
comment a.set */
/* Property */
fail_if(!(fid = eolian_class_function_get_by_name(class, "a", EOLIAN_PROPERTY)));
fail_if(strcmp(eolian_function_name_get(fid), "a"));
+ string = eolian_function_description_get(fid, EOLIAN_PROPERTY);
+ fail_if(!string);
+ fail_if(strcmp(string, "Common desc for a"));
string = eolian_function_description_get(fid, EOLIAN_PROP_SET);
fail_if(!string);
fail_if(strcmp(string, "comment a.set"));