q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=00049bd79800b49afd0676861809ab179d37b44e
commit 00049bd79800b49afd0676861809ab179d37b44e Author: Daniel Kolesa <d.kol...@osg.samsung.com> Date: Fri Aug 12 14:22:14 2016 +0100 docs: use more abstracted doctree APIs --- src/scripts/elua/apps/docgen/mappings.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/scripts/elua/apps/docgen/mappings.lua b/src/scripts/elua/apps/docgen/mappings.lua index 03449be..8fff16d 100644 --- a/src/scripts/elua/apps/docgen/mappings.lua +++ b/src/scripts/elua/apps/docgen/mappings.lua @@ -82,7 +82,7 @@ M.gen_nsp_ref = function(str, root) local ftp = eolian.function_type - local cl = eolian.class_get_by_name(bstr) + local cl = dtree.Class.by_name_get(bstr) local fn local ftype = ftp.UNRESOLVED if not cl then @@ -98,7 +98,7 @@ M.gen_nsp_ref = function(str, root) error("invalid reference '" .. str .. "'") end bstr = bstr:match("(.+)%.[^.]+") - cl = eolian.class_get_by_name(bstr) + cl = dtree.Class.by_name_get(bstr) if cl then fn = cl:function_get_by_name(mname, ftype) end @@ -108,10 +108,6 @@ M.gen_nsp_ref = function(str, root) if fn then ftype = fn:type_get() end end - if fn then - fn = dtree.Function(fn) - end - if not fn or not fn:type_str_get() then error("invalid reference '" .. str .. "'") end --