Skip to content

Local classes are recognized by lemmy-help but their methods aren't #66

@idanarye

Description

@idanarye

I've created this file:

$ cat my_module.lua 
---@mod my_module
local M = {}

---@class Foo
M.Foo = {}

function M.Foo:bar()
end

---@class Baz
local Baz = {}

function Baz:qux()
end

return M

The I ran lemmy-help version 0.10.0 on it:

$ lemmy-help my_module.lua 
================================================================================
                                                                     *my_module*

Foo                                                                        *Foo*


M.Foo()                                                                  *M.Foo*


Baz                                                                        *Baz*


vim:tw=78:ts=8:noet:ft=help:norl:

The Foo class was exported and its method bar was recognized by lemmy-help, but qux did not get an entry even though its class Baz did. Is it because Baz is declared local? But these classes' methods should still get into the docs because users can still get them via functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions