summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-14 22:34:19 +0200
committermadmaxoft <github@xoft.cz>2013-09-14 22:34:19 +0200
commit24daabdbfc217a5ddf4eb409c52382ccc59ef41f (patch)
tree85ace87bfbeb54822f88cf1ad8fe0d2a8e034e3f /MCServer
parentAPIDump: Implemented creating the list of undocumented API objects. (diff)
downloadcuberite-24daabdbfc217a5ddf4eb409c52382ccc59ef41f.tar
cuberite-24daabdbfc217a5ddf4eb409c52382ccc59ef41f.tar.gz
cuberite-24daabdbfc217a5ddf4eb409c52382ccc59ef41f.tar.bz2
cuberite-24daabdbfc217a5ddf4eb409c52382ccc59ef41f.tar.lz
cuberite-24daabdbfc217a5ddf4eb409c52382ccc59ef41f.tar.xz
cuberite-24daabdbfc217a5ddf4eb409c52382ccc59ef41f.tar.zst
cuberite-24daabdbfc217a5ddf4eb409c52382ccc59ef41f.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/main.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index a38dad44d..280e3034c 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -257,6 +257,29 @@ function DumpAPIHtml()
f:close();
end
+ -- List the unexported documented API objects:
+ f = io.open("API/unexported-documented.txt", "w");
+ if (f ~= nil) then
+ for clsname, cls in pairs(g_APIDesc.Classes) do
+ if not(cls.IsExported) then
+ -- The whole class is not exported
+ f:write("class\t" .. clsname .. "\n");
+ else
+ for fnname, fnapi in pairs(cls.Functions) do
+ if not(fnapi.IsExported) then
+ f:write("func\t" .. clsname .. "." .. fnname .. "\n");
+ end
+ end -- for j, fn - cls.Functions[]
+ for cnname, cnapi in pairs(cls.Constants) do
+ if not(cnapi.IsExported) then
+ f:write("const\t" .. clsname .. "." .. cnname .. "\n");
+ end
+ end -- for j, fn - cls.Functions[]
+ end
+ end -- for i, cls - g_APIDesc.Classes[]
+ f:close();
+ end
+
LOG("API subfolder written");
end
@@ -316,6 +339,7 @@ function ReadDescriptions(a_API)
local APIDesc = g_APIDesc.Classes[cls.Name];
if (APIDesc ~= nil) then
+ APIDesc.IsExported = true;
cls.Desc = APIDesc.Desc;
cls.AdditionalInfo = APIDesc.AdditionalInfo;