docs: use more abstracted doctree APIs
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Fri, 12 Aug 2016 13:22:14 +0000 (14:22 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Fri, 12 Aug 2016 13:22:14 +0000 (14:22 +0100)
src/scripts/elua/apps/docgen/mappings.lua

index 03449be..8fff16d 100644 (file)
@@ -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