eolian: remove old property syntax support
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Thu, 7 May 2015 16:35:33 +0000 (17:35 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Thu, 7 May 2015 16:35:33 +0000 (17:35 +0100)
src/lib/eolian/eo_lexer.h
src/lib/eolian/eo_parser.c

index 3aee446..83638da 100644 (file)
@@ -28,8 +28,8 @@ enum Tokens
     KW(destructor), KW(eo), KW(eo_prefix), KW(events), KW(free), \
     KW(get), KW(implements), KW(interface), KW(keys), KW(legacy), \
     KW(legacy_prefix), KW(methods), KW(mixin), KW(own), KW(params), \
-    KW(properties), KW(set), KW(type), KW(values), KW(var), KWAT(auto), \
-    KWAT(beta), KWAT(c_only), KWAT(class), KWAT(const), KWAT(const_get), \
+    KW(set), KW(type), KW(values), KW(var), KWAT(auto), KWAT(beta), \
+    KWAT(c_only), KWAT(class), KWAT(const), KWAT(const_get), \
     KWAT(const_set), KWAT(empty), KWAT(extern), KWAT(free), KWAT(in), \
     KWAT(inout), KWAT(nonull), KWAT(nullable), KWAT(optional), KWAT(out), \
     KWAT(private), KWAT(property), KWAT(protected), KWAT(virtual), \
index 9ed3deb..4a19c00 100644 (file)
@@ -1643,18 +1643,6 @@ parse_methods(Eo_Lexer *ls)
 }
 
 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
 parse_implements(Eo_Lexer *ls, Eina_Bool iface)
 {
    int line, col;
@@ -1698,7 +1686,6 @@ parse_class_body(Eo_Lexer *ls, Eolian_Class_Type type)
    Eina_Bool has_legacy_prefix = EINA_FALSE,
              has_eo_prefix     = EINA_FALSE,
              has_data          = EINA_FALSE,
-             has_properties    = EINA_FALSE,
              has_methods       = EINA_FALSE,
              has_implements    = EINA_FALSE,
              has_constructors  = EINA_FALSE,
@@ -1742,10 +1729,6 @@ parse_class_body(Eo_Lexer *ls, Eolian_Class_Type type)
         eo_lexer_get(ls);
         check_next(ls, ';');
         break;
-      case KW_properties:
-        CASE_LOCK(ls, properties, "properties definition")
-        parse_properties(ls);
-        break;
       case KW_methods:
         CASE_LOCK(ls, methods, "methods definition")
         parse_methods(ls);