q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1701ba6a06b253a12c9f0e1db96b33c30ab58761

commit 1701ba6a06b253a12c9f0e1db96b33c30ab58761
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Tue Aug 11 10:31:42 2015 +0100

    eolian: class members now inherit their class's since tag
---
 src/lib/eolian/eo_lexer.c               | 2 ++
 src/tests/eolian/data/docs.eo           | 2 ++
 src/tests/eolian/data/docs_ref.h        | 6 ++++++
 src/tests/eolian/data/docs_ref_legacy.h | 4 ++++
 4 files changed, 14 insertions(+)

diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c
index 6d8559c..be15ee0 100644
--- a/src/lib/eolian/eo_lexer.c
+++ b/src/lib/eolian/eo_lexer.c
@@ -438,6 +438,8 @@ read_doc(Eo_Lexer *ls, Eo_Token *tok, int line, int column)
      doc->description = eina_stringshare_add(eina_strbuf_string_get(rbuf));
    if (!doc->summary)
      doc->summary = eina_stringshare_add("No description supplied.");
+   if (!doc->since && ls->tmp.kls && ls->tmp.kls->doc)
+     doc->since = eina_stringshare_ref(ls->tmp.kls->doc->since);
    eina_strbuf_free(rbuf);
    tok->value.doc = doc;
 }
diff --git a/src/tests/eolian/data/docs.eo b/src/tests/eolian/data/docs.eo
index 90b016c..087597f 100644
--- a/src/tests/eolian/data/docs.eo
+++ b/src/tests/eolian/data/docs.eo
@@ -45,6 +45,8 @@ class Docs {
       @Foo.field1
       @Bar.foo
       @Docs
+
+      @since 1.18
     ]]
     methods {
         meth {
diff --git a/src/tests/eolian/data/docs_ref.h b/src/tests/eolian/data/docs_ref.h
index 44ea78f..1924aff 100644
--- a/src/tests/eolian/data/docs_ref.h
+++ b/src/tests/eolian/data/docs_ref.h
@@ -66,6 +66,8 @@ typedef struct _Opaque Opaque;
  * @ref pants @ref docs_meth @ref docs_prop_get @ref docs_prop_get
  * @ref docs_prop_set @ref Foo.field1 @ref Bar.BAR_FOO @ref Docs
  *
+ * @since 1.18
+ *
  * @ingroup Docs
  */
 #define DOCS_CLASS docs_class_get()
@@ -106,6 +108,8 @@ EOAPI int  docs_prop_get(void);
  *
  * @return Return documentation.
  *
+ * @since 1.18
+ *
  * @ingroup Docs
  */
 EOAPI int  docs_meth(int a, float *b, long *c);
@@ -114,6 +118,8 @@ EOAPI extern const Eo_Event_Description _DOCS_EVENT_CLICKED;
 
 /** Event docs.
  *
+ * @since 1.18
+ *
  * @ingroup Docs
  */
 #define DOCS_EVENT_CLICKED (&(_DOCS_EVENT_CLICKED))
diff --git a/src/tests/eolian/data/docs_ref_legacy.h 
b/src/tests/eolian/data/docs_ref_legacy.h
index eeddd9f..621f763 100644
--- a/src/tests/eolian/data/docs_ref_legacy.h
+++ b/src/tests/eolian/data/docs_ref_legacy.h
@@ -66,6 +66,8 @@ typedef struct _Opaque Opaque;
  * @ref pants @ref docs_meth @ref docs_prop_get @ref docs_prop_get
  * @ref docs_prop_set @ref Foo.field1 @ref Bar.BAR_FOO @ref Docs
  *
+ * @since 1.18
+ *
  * @ingroup Docs
  */
 
@@ -103,6 +105,8 @@ EAPI int docs_prop_get(const Docs *obj);
  *
  * @return Return documentation.
  *
+ * @since 1.18
+ *
  * @ingroup Docs
  */
 EAPI int docs_meth(Docs *obj, int a, float *b, long *c);

-- 


Reply via email to