forked from enlightenment/efl
eolian: remove old property syntax support
This commit is contained in:
parent
ed0988a22d
commit
b5a7a9b556
|
@ -28,8 +28,8 @@ enum Tokens
|
||||||
KW(destructor), KW(eo), KW(eo_prefix), KW(events), KW(free), \
|
KW(destructor), KW(eo), KW(eo_prefix), KW(events), KW(free), \
|
||||||
KW(get), KW(implements), KW(interface), KW(keys), KW(legacy), \
|
KW(get), KW(implements), KW(interface), KW(keys), KW(legacy), \
|
||||||
KW(legacy_prefix), KW(methods), KW(mixin), KW(own), KW(params), \
|
KW(legacy_prefix), KW(methods), KW(mixin), KW(own), KW(params), \
|
||||||
KW(properties), KW(set), KW(type), KW(values), KW(var), KWAT(auto), \
|
KW(set), KW(type), KW(values), KW(var), KWAT(auto), KWAT(beta), \
|
||||||
KWAT(beta), KWAT(c_only), KWAT(class), KWAT(const), KWAT(const_get), \
|
KWAT(c_only), KWAT(class), KWAT(const), KWAT(const_get), \
|
||||||
KWAT(const_set), KWAT(empty), KWAT(extern), KWAT(free), KWAT(in), \
|
KWAT(const_set), KWAT(empty), KWAT(extern), KWAT(free), KWAT(in), \
|
||||||
KWAT(inout), KWAT(nonull), KWAT(nullable), KWAT(optional), KWAT(out), \
|
KWAT(inout), KWAT(nonull), KWAT(nullable), KWAT(optional), KWAT(out), \
|
||||||
KWAT(private), KWAT(property), KWAT(protected), KWAT(virtual), \
|
KWAT(private), KWAT(property), KWAT(protected), KWAT(virtual), \
|
||||||
|
|
|
@ -1642,18 +1642,6 @@ parse_methods(Eo_Lexer *ls)
|
||||||
check_match(ls, '}', '{', line, col);
|
check_match(ls, '}', '{', line, col);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
parse_properties(Eo_Lexer *ls)
|
|
||||||
{
|
|
||||||
int line, col;
|
|
||||||
eo_lexer_get(ls);
|
|
||||||
line = ls->line_number, col = ls->column;
|
|
||||||
check_next(ls, '{');
|
|
||||||
while (ls->t.token != '}')
|
|
||||||
parse_property(ls);
|
|
||||||
check_match(ls, '}', '{', line, col);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
parse_implements(Eo_Lexer *ls, Eina_Bool iface)
|
parse_implements(Eo_Lexer *ls, Eina_Bool iface)
|
||||||
{
|
{
|
||||||
|
@ -1698,7 +1686,6 @@ parse_class_body(Eo_Lexer *ls, Eolian_Class_Type type)
|
||||||
Eina_Bool has_legacy_prefix = EINA_FALSE,
|
Eina_Bool has_legacy_prefix = EINA_FALSE,
|
||||||
has_eo_prefix = EINA_FALSE,
|
has_eo_prefix = EINA_FALSE,
|
||||||
has_data = EINA_FALSE,
|
has_data = EINA_FALSE,
|
||||||
has_properties = EINA_FALSE,
|
|
||||||
has_methods = EINA_FALSE,
|
has_methods = EINA_FALSE,
|
||||||
has_implements = EINA_FALSE,
|
has_implements = EINA_FALSE,
|
||||||
has_constructors = EINA_FALSE,
|
has_constructors = EINA_FALSE,
|
||||||
|
@ -1742,10 +1729,6 @@ parse_class_body(Eo_Lexer *ls, Eolian_Class_Type type)
|
||||||
eo_lexer_get(ls);
|
eo_lexer_get(ls);
|
||||||
check_next(ls, ';');
|
check_next(ls, ';');
|
||||||
break;
|
break;
|
||||||
case KW_properties:
|
|
||||||
CASE_LOCK(ls, properties, "properties definition")
|
|
||||||
parse_properties(ls);
|
|
||||||
break;
|
|
||||||
case KW_methods:
|
case KW_methods:
|
||||||
CASE_LOCK(ls, methods, "methods definition")
|
CASE_LOCK(ls, methods, "methods definition")
|
||||||
parse_methods(ls);
|
parse_methods(ls);
|
||||||
|
|
Loading…
Reference in New Issue