More generic approach with a table of names hierarchy

This commit is contained in:
Alexis BRENON 2016-10-26 09:47:26 +02:00
parent 8d9d8e84a2
commit 94dbff2861
1 changed files with 5 additions and 4 deletions

View File

@ -362,9 +362,7 @@ function File:finish()
end
end
-- Whether to use '.' or the language's version of ':' (e.g. \ for Moonscript)
item.local_name = item.name
item.fully_qualified_name = class..(not static and this_mod.file.lang.method_call or '.')..item.name
item.name = item.fully_qualified_name
item.name = class..(not static and this_mod.file.lang.method_call or '.')..item.name
end
if stype == 'factory' then
if item.tags.private then to_be_removed = true
@ -411,6 +409,10 @@ function File:finish()
-- must be a free-standing function (sometimes a problem...)
end
end
item.names_hierarchy = require('pl.utils').split(
item.name,
'[.:]'
)
end
end
@ -1357,4 +1359,3 @@ function doc.filter_objects_through_function(filter, module_list)
end
return doc