Skip to content

fix(doc_cli): keep @field function signatures authoritative - #1510

Open
ligurio wants to merge 1 commit into
EmmyLuaLs:mainfrom
ligurio:ligurio/gh-1504-doc_cli-renders-parent
Open

ligurio wants to merge 1 commit into
EmmyLuaLs:mainfrom
ligurio:ligurio/gh-1504-doc_cli-renders-parent

Conversation

@ligurio

@ligurio ligurio commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

A ---@field name fun(...) member reused a same-named declaration's signature, so a child class overriding a parent method rendered the parent's parameters and returns.

Build the signature from the field's own DocFunction and only reuse descriptions from the fallback signature when parameter/return names and types match.

Fixes: 87cc203 ("fix(doc_cli): render params/returns of module functions in HTML and JSON"),

Fixes #1504

A `---@field name fun(...)` member reused a same-named
declaration's signature, so a child class overriding a parent
method rendered the parent's parameters and returns.

Build the signature from the field's own DocFunction and only
reuse descriptions from the fallback signature when
parameter/return names and types match.

Fixes: 87cc203 ("fix(doc_cli): render params/returns of module
functions in HTML and JSON"),

Fixes EmmyLuaLs#1504
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[regression] doc_cli renders a parent function signature/docs for a member overridden by a child ---@field

1 participant