forked from enlightenment/efl
docgen: only parse the necessary class when generating only one
This commit is contained in:
parent
7ef2e4dfd4
commit
bfeddb8e09
|
@ -1480,12 +1480,18 @@ M.scan_directory = function(dir)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
M.parse = function()
|
M.parse = function(st)
|
||||||
if not eolian.all_eot_files_parse() then
|
if not eolian.all_eot_files_parse() then
|
||||||
error("failed parsing eo type files")
|
error("failed parsing eo type files")
|
||||||
end
|
end
|
||||||
if not eolian.all_eo_files_parse() then
|
if st and st:match("%.") then
|
||||||
error("failed parsing eo files")
|
if not eolian.file_parse(st:gsub("%.", "_"):lower() .. ".eo") then
|
||||||
|
error("failed parsing eo file")
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if not eolian.all_eo_files_parse() then
|
||||||
|
error("failed parsing eo files")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
-- build reverse inheritance hierarchy
|
-- build reverse inheritance hierarchy
|
||||||
for cl in eolian.all_classes_get() do
|
for cl in eolian.all_classes_get() do
|
||||||
|
|
|
@ -1561,7 +1561,7 @@ getopt.parse {
|
||||||
|
|
||||||
local st = opts["pass"]
|
local st = opts["pass"]
|
||||||
|
|
||||||
dtree.parse()
|
dtree.parse(st)
|
||||||
|
|
||||||
if st == "clist" then
|
if st == "clist" then
|
||||||
for i, cl in ipairs(dtree.Class.all_get()) do
|
for i, cl in ipairs(dtree.Class.all_get()) do
|
||||||
|
|
Loading…
Reference in New Issue