Skip to content

Allow @:inheritDoc var field to search for documentation in implemented interfaces #12270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

RblSb
Copy link
Member

@RblSb RblSb commented Jun 10, 2025

This PR allows @:inheritDoc (without arguments) to search parent interface field for documentation, if there is no parent class field doc.

@kLabz
Copy link
Contributor

kLabz commented Jun 10, 2025

Isn't that use case pretty niche? A build macro (or addGlobalMetadata) could do that job easily

@RblSb
Copy link
Member Author

RblSb commented Jun 11, 2025

I guess it can work, then there is only @:inheritDoc improvement to also check interfaces field and not only parent class field, should be useful

@RblSb RblSb changed the title Class meta to inherit doc for all class fields Allow @:inheritDoc var field to search for documentation in implemented interfaces Jun 11, 2025
@kLabz
Copy link
Contributor

kLabz commented Jun 11, 2025

I think this makes sense. A test would be nice, or at least a code example of what case it helps with (I could then help with writing the test if needed)

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.

2 participants