summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-07 13:53:08 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-07 13:53:08 +0100
commit482c5d1ba237225720f02c358166291cbe9349ea (patch)
tree38da187bd016acbd9d6385efea1452bf987df41a /src/scripts
parentf596a97da66befa9fe893da062482821e35f7c5d (diff)
eolian: get rid of old APIs for typedecl retrieval
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/elua/apps/docgen/doctree.lua45
1 files changed, 15 insertions, 30 deletions
diff --git a/src/scripts/elua/apps/docgen/doctree.lua b/src/scripts/elua/apps/docgen/doctree.lua
index 73b456cafa..31f27b6c26 100644
--- a/src/scripts/elua/apps/docgen/doctree.lua
+++ b/src/scripts/elua/apps/docgen/doctree.lua
@@ -939,8 +939,7 @@ M.Typedecl = Node:clone {
939 939
940 all_aliases_get = function() 940 all_aliases_get = function()
941 local ret = {} 941 local ret = {}
942 -- FIXME: unit 942 for tp in eos:aliases_get() do
943 for tp in eolian.typedecl_all_aliases_get(eos:unit_get()) do
944 local tpo = M.Typedecl(tp) 943 local tpo = M.Typedecl(tp)
945 if matches_filter(tpo) then 944 if matches_filter(tpo) then
946 ret[#ret + 1] = tpo 945 ret[#ret + 1] = tpo
@@ -951,8 +950,7 @@ M.Typedecl = Node:clone {
951 950
952 all_structs_get = function() 951 all_structs_get = function()
953 local ret = {} 952 local ret = {}
954 -- FIXME: unit 953 for tp in eos:structs_get() do
955 for tp in eolian.typedecl_all_structs_get(eos:unit_get()) do
956 local tpo = M.Typedecl(tp) 954 local tpo = M.Typedecl(tp)
957 if matches_filter(tpo) then 955 if matches_filter(tpo) then
958 ret[#ret + 1] = tpo 956 ret[#ret + 1] = tpo
@@ -963,8 +961,7 @@ M.Typedecl = Node:clone {
963 961
964 all_enums_get = function() 962 all_enums_get = function()
965 local ret = {} 963 local ret = {}
966 -- FIXME: unit 964 for tp in eos:enums_get() do
967 for tp in eolian.typedecl_all_enums_get(eos:unit_get()) do
968 local tpo = M.Typedecl(tp) 965 local tpo = M.Typedecl(tp)
969 local tpn = tpo:nspaces_get() 966 local tpn = tpo:nspaces_get()
970 if matches_filter(tpo) then 967 if matches_filter(tpo) then
@@ -976,8 +973,7 @@ M.Typedecl = Node:clone {
976 973
977 aliases_by_file_get = function(fn) 974 aliases_by_file_get = function(fn)
978 local ret = {} 975 local ret = {}
979 -- FIXME: unit 976 for tp in eos:aliases_by_file_get(fn) do
980 for tp in eolian.typedecl_aliases_get_by_file(eos:unit_get(), fn) do
981 ret[#ret + 1] = M.Typedecl(tp) 977 ret[#ret + 1] = M.Typedecl(tp)
982 end 978 end
983 return ret 979 return ret
@@ -985,8 +981,7 @@ M.Typedecl = Node:clone {
985 981
986 structs_by_file_get = function(fn) 982 structs_by_file_get = function(fn)
987 local ret = {} 983 local ret = {}
988 -- FIXME: unit 984 for tp in eos:struts_by_file_get(fn) do
989 for tp in eolian.typedecl_structs_get_by_file(eos:unit_get(), fn) do
990 ret[#ret + 1] = M.Typedecl(tp) 985 ret[#ret + 1] = M.Typedecl(tp)
991 end 986 end
992 return ret 987 return ret
@@ -994,16 +989,14 @@ M.Typedecl = Node:clone {
994 989
995 enums_by_file_get = function(fn) 990 enums_by_file_get = function(fn)
996 local ret = {} 991 local ret = {}
997 -- FIXME: unit 992 for tp in eeos:enums_by_file_get(fn) do
998 for tp in eolian.typedecl_enums_get_by_file(eos:unit_get(), fn) do
999 ret[#ret + 1] = M.Typedecl(tp) 993 ret[#ret + 1] = M.Typedecl(tp)
1000 end 994 end
1001 return ret 995 return ret
1002 end, 996 end,
1003 997
1004 alias_by_name_get = function(tn) 998 alias_by_name_get = function(tn)
1005 -- FIXME: unit 999 local v = eos:alias_by_name_get(tn)
1006 local v = eolian.typedecl_alias_get_by_name(eos:unit_get(), tn)
1007 if not v then 1000 if not v then
1008 return nil 1001 return nil
1009 end 1002 end
@@ -1011,8 +1004,7 @@ M.Typedecl = Node:clone {
1011 end, 1004 end,
1012 1005
1013 struct_by_name_get = function(tn) 1006 struct_by_name_get = function(tn)
1014 -- FIXME: unit 1007 local v = eos:struct_by_name_get(tn)
1015 local v = eolian.typedecl_struct_get_by_name(eos:unit_get(), tn)
1016 if not v then 1008 if not v then
1017 return nil 1009 return nil
1018 end 1010 end
@@ -1020,8 +1012,7 @@ M.Typedecl = Node:clone {
1020 end, 1012 end,
1021 1013
1022 enum_by_name_get = function(tn) 1014 enum_by_name_get = function(tn)
1023 -- FIXME: unit 1015 local v = eos:enum_by_name_get(tn)
1024 local v = eolian.typedecl_enum_get_by_name(eos:unit_get(), tn)
1025 if not v then 1016 if not v then
1026 return nil 1017 return nil
1027 end 1018 end
@@ -1303,8 +1294,7 @@ M.Variable = Node:clone {
1303 1294
1304 all_globals_get = function() 1295 all_globals_get = function()
1305 local ret = {} 1296 local ret = {}
1306 -- FIXME: unit 1297 for v in eos:globals_get() do
1307 for v in eolian.variable_all_globals_get(eos:unit_get()) do
1308 ret[#ret + 1] = M.Variable(v) 1298 ret[#ret + 1] = M.Variable(v)
1309 end 1299 end
1310 return ret 1300 return ret
@@ -1312,8 +1302,7 @@ M.Variable = Node:clone {
1312 1302
1313 all_constants_get = function() 1303 all_constants_get = function()
1314 local ret = {} 1304 local ret = {}
1315 -- FIXME: unit 1305 for v in eos:constants_get() do
1316 for v in eolian.variable_all_constants_get(eos:unit_get()) do
1317 ret[#ret + 1] = M.Variable(v) 1306 ret[#ret + 1] = M.Variable(v)
1318 end 1307 end
1319 return ret 1308 return ret
@@ -1321,8 +1310,7 @@ M.Variable = Node:clone {
1321 1310
1322 globals_by_file_get = function(fn) 1311 globals_by_file_get = function(fn)
1323 local ret = {} 1312 local ret = {}
1324 -- FIXME: unit 1313 for v in eos:globals_by_file_get(fn) do
1325 for v in eolian.variable_globals_get_by_file(eos:unit_get(), fn) do
1326 ret[#ret + 1] = M.Variable(v) 1314 ret[#ret + 1] = M.Variable(v)
1327 end 1315 end
1328 return ret 1316 return ret
@@ -1330,16 +1318,14 @@ M.Variable = Node:clone {
1330 1318
1331 constants_by_file_get = function(fn) 1319 constants_by_file_get = function(fn)
1332 local ret = {} 1320 local ret = {}
1333 -- FIXME: unit 1321 for v in eos:constants_by_file_get(fn) do
1334 for v in eolian.variable_constants_get_by_file(eos:unit_get(), fn) do
1335 ret[#ret + 1] = M.Variable(v) 1322 ret[#ret + 1] = M.Variable(v)
1336 end 1323 end
1337 return ret 1324 return ret
1338 end, 1325 end,
1339 1326
1340 global_by_name_get = function(vn) 1327 global_by_name_get = function(vn)
1341 -- FIXME: unit 1328 local v = eos:global_by_name_get(vn)
1342 local v = eolian.variable_global_get_by_name(eos:unit_get(), vn)
1343 if not v then 1329 if not v then
1344 return nil 1330 return nil
1345 end 1331 end
@@ -1347,8 +1333,7 @@ M.Variable = Node:clone {
1347 end, 1333 end,
1348 1334
1349 constant_by_name_get = function(vn) 1335 constant_by_name_get = function(vn)
1350 -- FIXME: unit 1336 local v = eos:constant_by_name_get(vn)
1351 local v = eolian.variable_constant_get_by_name(eos:unit_get(), vn)
1352 if not v then 1337 if not v then
1353 return nil 1338 return nil
1354 end 1339 end