forked from enlightenment/efl
Eolian parser: Allow tagging properties with @constructor.
Thanks to Quaker for the exact directions.
This commit is contained in:
parent
d3aedb5506
commit
a0c419aa4a
|
@ -1009,7 +1009,8 @@ parse_property(Eo_Lexer *ls)
|
|||
Eo_Property_Def *prop = NULL;
|
||||
Eina_Bool has_get = EINA_FALSE, has_set = EINA_FALSE,
|
||||
has_keys = EINA_FALSE, has_values = EINA_FALSE,
|
||||
has_protected = EINA_FALSE, has_class = EINA_FALSE;
|
||||
has_protected = EINA_FALSE, has_class = EINA_FALSE,
|
||||
has_constructor = EINA_FALSE;
|
||||
prop = calloc(1, sizeof(Eo_Property_Def));
|
||||
prop->base.line = ls->line_number;
|
||||
prop->base.column = ls->column;
|
||||
|
@ -1029,6 +1030,11 @@ parse_property(Eo_Lexer *ls)
|
|||
prop->is_class = EINA_TRUE;
|
||||
eo_lexer_get(ls);
|
||||
break;
|
||||
case KW_at_constructor:
|
||||
CASE_LOCK(ls, constructor, "constructor qualifier");
|
||||
eo_lexer_get(ls);
|
||||
break;
|
||||
|
||||
default:
|
||||
goto body;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue