summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-20 10:33:40 +0200
committermadmaxoft <github@xoft.cz>2013-10-20 10:33:40 +0200
commit4f40eb7f55e580675f85086709986c971f4872a9 (patch)
tree218a2a7a7359887f9a9e95505071aed302f6a0de /MCServer
parentFixed loading allowed mobs in world. (diff)
downloadcuberite-4f40eb7f55e580675f85086709986c971f4872a9.tar
cuberite-4f40eb7f55e580675f85086709986c971f4872a9.tar.gz
cuberite-4f40eb7f55e580675f85086709986c971f4872a9.tar.bz2
cuberite-4f40eb7f55e580675f85086709986c971f4872a9.tar.lz
cuberite-4f40eb7f55e580675f85086709986c971f4872a9.tar.xz
cuberite-4f40eb7f55e580675f85086709986c971f4872a9.tar.zst
cuberite-4f40eb7f55e580675f85086709986c971f4872a9.zip
Diffstat (limited to 'MCServer')
-rw-r--r--MCServer/Plugins/APIDump/main.lua32
1 files changed, 27 insertions, 5 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 75fc15965..f47d9c25a 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -89,7 +89,9 @@ function CreateAPITables()
{Name = "IsInside"}
},
Constants = {
- }
+ },
+ Variables = {
+ },
Descendants = {}, -- Will be filled by ReadDescriptions(), array of class APIs (references to other member in the tree)
}},
{
@@ -98,12 +100,14 @@ function CreateAPITables()
{Name = "Clear"},
{Name = "CopyFrom"},
...
- }
+ },
Constants = {
{Name = "baTypes", Value = 0},
{Name = "baMetas", Value = 1},
...
- }
+ },
+ Variables = {
+ },
...
}}
};
@@ -464,6 +468,12 @@ function ReadDescriptions(a_API)
-- Replace functions with their described and overload-expanded versions:
cls.Functions = DoxyFunctions;
+ else -- if (APIDesc.Functions ~= nil)
+ for j, func in ipairs(cls.Functions) do
+ if not(IsFunctionIgnored(cls.Name .. "." .. FnName)) then
+ table.insert(cls.UndocumentedFunctions, FnName);
+ end
+ end
end -- if (APIDesc.Functions ~= nil)
if (APIDesc.Constants ~= nil) then
@@ -480,7 +490,13 @@ function ReadDescriptions(a_API)
CnDesc.IsExported = true;
end
end -- for j, cons
- end -- if (APIDesc.Constants ~= nil)
+ else -- if (APIDesc.Constants ~= nil)
+ for j, cons in ipairs(cls.Constants) do
+ if not(IsConstantIgnored(cls.Name .. "." .. cons.Name)) then
+ table.insert(cls.UndocumentedConstants, cons.Name);
+ end
+ end
+ end -- else if (APIDesc.Constants ~= nil)
-- Assign member variables' descriptions:
if (APIDesc.Variables ~= nil) then
@@ -498,7 +514,13 @@ function ReadDescriptions(a_API)
end
end
end -- for j, var
- end -- if (APIDesc.Variables ~= nil)
+ else -- if (APIDesc.Variables ~= nil)
+ for j, var in ipairs(cls.Variables) do
+ if not(IsVariableIgnored(cls.Name .. "." .. var.Name)) then
+ table.insert(cls.UndocumentedVariables, var.Name);
+ end
+ end
+ end -- else if (APIDesc.Variables ~= nil)
else -- if (APIDesc ~= nil)