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:
parent
daade8ddee
commit
5d4e1725d4
@ -2713,8 +2713,8 @@ end
|
|||||||
"os",
|
"os",
|
||||||
"string",
|
"string",
|
||||||
"table",
|
"table",
|
||||||
"g_TrackedPages",
|
|
||||||
"g_Stats",
|
"g_Stats",
|
||||||
|
"g_TrackedPages",
|
||||||
},
|
},
|
||||||
|
|
||||||
IgnoreFunctions =
|
IgnoreFunctions =
|
||||||
@ -2747,6 +2747,15 @@ end
|
|||||||
"WriteStats",
|
"WriteStats",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
IgnoreConstants =
|
||||||
|
{
|
||||||
|
"cChestEntity.__cBlockEntityWindowOwner__",
|
||||||
|
"cDropSpenserEntity.__cBlockEntityWindowOwner__",
|
||||||
|
"cFurnaceEntity.__cBlockEntityWindowOwner__",
|
||||||
|
"cHopperEntity.__cBlockEntityWindowOwner__",
|
||||||
|
"cLuaWindow.__cItemGrid__cListener__",
|
||||||
|
},
|
||||||
|
|
||||||
IgnoreVariables =
|
IgnoreVariables =
|
||||||
{
|
{
|
||||||
"__.*__", -- tolua exports multiple inheritance this way
|
"__.*__", -- tolua exports multiple inheritance this way
|
||||||
|
@ -700,6 +700,15 @@ function ReadDescriptions(a_API)
|
|||||||
end
|
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:
|
-- Sort the constants:
|
||||||
table.sort(cls.Constants,
|
table.sort(cls.Constants,
|
||||||
function(c1, c2)
|
function(c1, c2)
|
||||||
@ -707,7 +716,7 @@ function ReadDescriptions(a_API)
|
|||||||
end
|
end
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Remove ignored functions:
|
-- Remove ignored member variables:
|
||||||
local NewVariables = {};
|
local NewVariables = {};
|
||||||
for j, var in ipairs(cls.Variables) do
|
for j, var in ipairs(cls.Variables) do
|
||||||
if (not(IsVariableIgnored(cls.Name .. "." .. var.Name))) then
|
if (not(IsVariableIgnored(cls.Name .. "." .. var.Name))) then
|
||||||
|
Loading…
Reference in New Issue
Block a user