eolian: add dev warning for old style property implements

This commit is contained in:
Daniel Kolesa 2016-12-23 17:17:11 +01:00
parent df55f75ace
commit 2ebea22bc3
1 changed files with 10 additions and 0 deletions

View File

@ -1584,10 +1584,20 @@ fullclass:
eo_lexer_get(ls);
goto end;
case KW_get:
if (getenv("EOLIAN_WARN_PROP_IMPLEMENTS"))
{
printf("eolian:%s:%d: old style getter implement syntax\n",
ls->filename, ls->line_number);
}
impl->is_prop_get = EINA_TRUE;
eo_lexer_get(ls);
goto end;
case KW_set:
if (getenv("EOLIAN_WARN_PROP_IMPLEMENTS"))
{
printf("eolian:%s:%d: old style setter implement syntax\n",
ls->filename, ls->line_number);
}
impl->is_prop_set = EINA_TRUE;
eo_lexer_get(ls);
goto end;