1
0
Fork 0

APIDump: Ignoring the multi-inheritance members.

We may get to documenting them one day, but for now they are unused anyway, so there's no point in documenting them. They are a by-product of multiple inheritance, re-introduced due to #422.
This commit is contained in:
madmaxoft 2013-12-16 22:13:31 +01:00
parent daade8ddee
commit 5d4e1725d4
2 changed files with 20 additions and 2 deletions

View File

@ -2713,8 +2713,8 @@ end
"os",
"string",
"table",
"g_TrackedPages",
"g_Stats",
"g_TrackedPages",
},
IgnoreFunctions =
@ -2747,6 +2747,15 @@ end
"WriteStats",
},
IgnoreConstants =
{
"cChestEntity.__cBlockEntityWindowOwner__",
"cDropSpenserEntity.__cBlockEntityWindowOwner__",
"cFurnaceEntity.__cBlockEntityWindowOwner__",
"cHopperEntity.__cBlockEntityWindowOwner__",
"cLuaWindow.__cItemGrid__cListener__",
},
IgnoreVariables =
{
"__.*__", -- tolua exports multiple inheritance this way

View File

@ -700,6 +700,15 @@ function ReadDescriptions(a_API)
end
);
-- Remove ignored constants:
local NewConstants = {};
for j, cn in ipairs(cls.Constants) do
if (not(IsFunctionIgnored(cls.Name, cn.Name))) then
table.insert(NewConstants, cn);
end
end -- for j, cn
cls.Constants = NewConstants;
-- Sort the constants:
table.sort(cls.Constants,
function(c1, c2)
@ -707,7 +716,7 @@ function ReadDescriptions(a_API)
end
);
-- Remove ignored functions:
-- Remove ignored member variables:
local NewVariables = {};
for j, var in ipairs(cls.Variables) do
if (not(IsVariableIgnored(cls.Name .. "." .. var.Name))) then