eolian: class members now inherit their class's since tag

This commit is contained in:
Daniel Kolesa 2015-08-11 10:31:42 +01:00
parent 5032cf0df3
commit 1701ba6a06
4 changed files with 14 additions and 0 deletions

View File

@ -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;
}

View File

@ -45,6 +45,8 @@ class Docs {
@Foo.field1
@Bar.foo
@Docs
@since 1.18
]]
methods {
meth {

View File

@ -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);
@ -113,6 +117,8 @@ EOAPI int docs_meth(int a, float *b, long *c);
EOAPI extern const Eo_Event_Description _DOCS_EVENT_CLICKED;
/** Event docs.
*
* @since 1.18
*
* @ingroup Docs
*/

View File

@ -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);