APIDump: Fixed dumping when APIDesc doesn't contain Constants section.
This commit is contained in:
parent
57414e45b6
commit
c3ad5bbf91
@ -265,17 +265,21 @@ function DumpAPIHtml()
|
|||||||
-- The whole class is not exported
|
-- The whole class is not exported
|
||||||
f:write("class\t" .. clsname .. "\n");
|
f:write("class\t" .. clsname .. "\n");
|
||||||
else
|
else
|
||||||
|
if (cls.Functions ~= nil) then
|
||||||
for fnname, fnapi in pairs(cls.Functions) do
|
for fnname, fnapi in pairs(cls.Functions) do
|
||||||
if not(fnapi.IsExported) then
|
if not(fnapi.IsExported) then
|
||||||
f:write("func\t" .. clsname .. "." .. fnname .. "\n");
|
f:write("func\t" .. clsname .. "." .. fnname .. "\n");
|
||||||
end
|
end
|
||||||
end -- for j, fn - cls.Functions[]
|
end -- for j, fn - cls.Functions[]
|
||||||
|
end
|
||||||
|
if (cls.Constants ~= nil) then
|
||||||
for cnname, cnapi in pairs(cls.Constants) do
|
for cnname, cnapi in pairs(cls.Constants) do
|
||||||
if not(cnapi.IsExported) then
|
if not(cnapi.IsExported) then
|
||||||
f:write("const\t" .. clsname .. "." .. cnname .. "\n");
|
f:write("const\t" .. clsname .. "." .. cnname .. "\n");
|
||||||
end
|
end
|
||||||
end -- for j, fn - cls.Functions[]
|
end -- for j, fn - cls.Functions[]
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end -- for i, cls - g_APIDesc.Classes[]
|
end -- for i, cls - g_APIDesc.Classes[]
|
||||||
f:close();
|
f:close();
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user