return self.param:direction_get()
end,
+ direction_name_get = function(self)
+ local dir_to_str = {
+ [self.IN] = "in",
+ [self.OUT] = "out",
+ [self.INOUT] = "inout"
+ }
+ return dir_to_str[self:direction_get()]
+ end,
+
type_get = function(self)
return self.param:type_get()
end,
local M = {}
-M.pdir_to_str = {
- [dtree.Parameter.IN] = "(in)",
- [dtree.Parameter.OUT] = "(out)",
- [dtree.Parameter.INOUT] = "(inout)"
-}
-
-M.scope_to_str = {
- [dtree.Node.scope.PUBLIC] = "public",
- [dtree.Node.scope.PRIVATE] = "private",
- [dtree.Node.scope.PROTECTED] = "protected"
-}
-
local decl_to_nspace = function(decl)
local dt = eolian.declaration_type
local decltypes = {
buf:write_b(p:name_get())
if not nodir then
buf:write_raw(" ")
- buf:write_i(eomap.pdir_to_str[p:direction_get()])
+ buf:write_i("(", p:direction_name_get(), ")")
end
buf:write_raw(" - ", p:doc_get():full_get())
params[#params + 1] = buf:finish()