APIDump: Added creating the list of unexported-documented API objects.
This commit is contained in:
parent
66aee0ec68
commit
24daabdbfc
@ -257,6 +257,29 @@ function DumpAPIHtml()
|
|||||||
f:close();
|
f:close();
|
||||||
end
|
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");
|
LOG("API subfolder written");
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -316,6 +339,7 @@ function ReadDescriptions(a_API)
|
|||||||
|
|
||||||
local APIDesc = g_APIDesc.Classes[cls.Name];
|
local APIDesc = g_APIDesc.Classes[cls.Name];
|
||||||
if (APIDesc ~= nil) then
|
if (APIDesc ~= nil) then
|
||||||
|
APIDesc.IsExported = true;
|
||||||
cls.Desc = APIDesc.Desc;
|
cls.Desc = APIDesc.Desc;
|
||||||
cls.AdditionalInfo = APIDesc.AdditionalInfo;
|
cls.AdditionalInfo = APIDesc.AdditionalInfo;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user