This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch eolian/improvements
in repository efl.

View the commit online.

commit 2ef90c12eb31692e0adbc591d2a5c13e8da5f3b9
Author: [email protected] <[email protected]>
AuthorDate: Fri Nov 6 00:51:29 2026 -0600

    eolian: @deferred requires @notify
    
    @deferred only qualifies how the notified properties are announced, so
    on an event without @notify it means nothing. Refuse it in the parser
    instead of silently accepting dead grammar.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/lib/eolian/eo_parser.c                     |  2 ++
 src/tests/eolian/data/notify_deferred_alone.eo | 13 +++++++++++++
 src/tests/eolian/eolian_parsing.c              |  1 +
 3 files changed, 16 insertions(+)

diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 17964a8d3a..81cf67ee37 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -1997,6 +1997,8 @@ parse_event(Eo_Lexer *ls)
         goto end;
      }
 end:
+   if (ev->is_deferred && !has_notify)
+     eo_lexer_syntax_error(ls, "@deferred requires @notify");
    check_next(ls, ':');
    ev->type = eo_lexer_type_release(ls, parse_type_void(ls, EINA_TRUE, EINA_TRUE));
    /* @nullable describes the payload, so it follows the type the way it does on
diff --git a/src/tests/eolian/data/notify_deferred_alone.eo b/src/tests/eolian/data/notify_deferred_alone.eo
new file mode 100644
index 0000000000..c3b3950bd8
--- /dev/null
+++ b/src/tests/eolian/data/notify_deferred_alone.eo
@@ -0,0 +1,13 @@
+class Notify_Deferred_Alone {
+   [[Docs for Notify_Deferred_Alone. @since 1.66]]
+   methods {
+      @property value {
+         [[Docs. @since 1.66]]
+         get {}
+         values { v: int; }
+      }
+   }
+   events {
+      bad @deferred: void;
+   }
+}
diff --git a/src/tests/eolian/eolian_parsing.c b/src/tests/eolian/eolian_parsing.c
index caa73f1e7a..bcec14ed8b 100644
--- a/src/tests/eolian/eolian_parsing.c
+++ b/src/tests/eolian/eolian_parsing.c
@@ -1707,6 +1707,7 @@ EFL_START_TEST(eolian_event_notify)
       { "notify_empty.eo", "" },
       { "notify_bad_class.eo", "no property 'Nope.value'" },
       { "notify_keys.eo", "property 'keyed' has keys" },
+      { "notify_deferred_alone.eo", "@deferred requires @notify" },
    };
    const Eolian_Class *class;
    const Eolian_Event *ev;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to