summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-02-24 16:24:36 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-02-24 16:24:36 +0100
commit9124f1f8c6ddd82a9fe14a42ecadff01b3fb1e18 (patch)
tree7e8675f107bf3552fba0f83074d0fa6e4c2ec03b
parent5cf08ef1a988ec5201374ff64170b4bc86030394 (diff)
docgen: disregard override info for displaying property get/set
-rw-r--r--src/scripts/elua/apps/gendoc.lua14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/scripts/elua/apps/gendoc.lua b/src/scripts/elua/apps/gendoc.lua
index 1e961a73ed..45d0467338 100644
--- a/src/scripts/elua/apps/gendoc.lua
+++ b/src/scripts/elua/apps/gendoc.lua
@@ -712,16 +712,7 @@ local build_functable = function(f, title, tcl, tbl, newm)
712 llbuf:write_link(func:nspaces_get(cl, true), func:name_get()) 712 llbuf:write_link(func:nspaces_get(cl, true), func:name_get())
713 lbuf:write_b(llbuf:finish()) 713 lbuf:write_b(llbuf:finish())
714 714
715 local ft = dtree.Function.METHOD 715 local pt = propt_to_type[func:type_get()]
716 if impl:is_prop_get() and impl:is_prop_set() then
717 ft = dtree.Function.PROPERTY
718 elseif impl:is_prop_get() then
719 ft = dtree.Function.PROP_GET
720 elseif impl:is_prop_set() then
721 ft = dtree.Function.PROP_SET
722 end
723
724 local pt = propt_to_type[ft]
725 if pt then 716 if pt then
726 lbuf:write_raw(" ") 717 lbuf:write_raw(" ")
727 local llbuf = writer.Buffer() 718 local llbuf = writer.Buffer()
@@ -734,6 +725,9 @@ local build_functable = function(f, title, tcl, tbl, newm)
734 wt[#wt + 1] = lbuf:finish() 725 wt[#wt + 1] = lbuf:finish()
735 726
736 if over then 727 if over then
728 -- TODO: possibly also mention which part of a property was
729 -- overridden and where, get/set override point might differ!
730 -- but we get latest doc every time so it's ok for now
737 lbuf:write_raw(" ") 731 lbuf:write_raw(" ")
738 local llbuf = writer.Buffer() 732 local llbuf = writer.Buffer()
739 llbuf:write_raw("[Overridden") 733 llbuf:write_raw("[Overridden")