q66 pushed a commit to branch master.

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

commit d70cbecc3a90e1e467583c313473cfbeffba5aae
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Tue Jul 12 11:13:15 2016 +0100

    docs: generate more info about events
---
 src/scripts/elua/apps/docgen/gendoc.lua | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/src/scripts/elua/apps/docgen/gendoc.lua 
b/src/scripts/elua/apps/docgen/gendoc.lua
index 2943aaa..48974d2 100644
--- a/src/scripts/elua/apps/docgen/gendoc.lua
+++ b/src/scripts/elua/apps/docgen/gendoc.lua
@@ -1528,6 +1528,12 @@ local build_igraph = function(cl)
     return graph
 end
 
+local scope_to_str = {
+    [eolian.object_scope.PUBLIC] = "public",
+    [eolian.object_scope.PRIVATE] = "private",
+    [eolian.object_scope.PROTECTED] = "protected"
+}
+
 local build_class = function(cl)
     local f = Writer(gen_nsp_class(cl))
     check_class(cl)
@@ -1561,6 +1567,26 @@ local build_class = function(cl)
                 f:write_nl(2)
             end
             f:write_h(ev:name_get(), 4)
+            f:write_i("**Scope:** ", scope_to_str[ev:scope_get()])
+            local tagstrs = {}
+            if ev:is_beta() then tagstrs[#tagstrs + 1] = "@beta" end
+            if ev:is_hot() then tagstrs[#tagstrs + 1] = "@hot" end
+            if ev:is_restart() then tagstrs[#tagstrs + 1] = "@restart" end
+            f:write_br(true)
+            if #tagstrs > 0 then
+                f:write_i("**Tags:** ", unpack(tagstrs))
+                f:write_br(true)
+            end
+            local tp = ev:type_get()
+            if tp then
+                f:write_i("**Type:** ")
+                f:write_m(get_type_str(tp))
+                f:write_br(true)
+                f:write_i("**Type:** ")
+                f:write_m(tp:c_type_get())
+                f:write_br(true)
+            end
+            f:write_nl()
             write_full_doc(f, ev:documentation_get())
             first = false
         end

-- 


Reply via email to