Skip to content
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

Fix extracting docstring from constructors #2586

Merged
merged 1 commit into from
Mar 21, 2018
Merged

Conversation

mfelsche
Copy link
Contributor

@mfelsche mfelsche commented Mar 8, 2018

from classes or actors with initialized fields

by executing sugar_docstring on the constructors before adding the initializers. This will actually execute sugar_docstring twice on such constructors, but as it is idempotent, there is no danger here.

The docstrings have been inlined into the constructor body before.

Now they will show up correctly in the generated docs.

Fixes #2582

from classes or actors with initialized fields
@mfelsche mfelsche added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Mar 8, 2018
@jemc jemc merged commit a8251ab into master Mar 21, 2018
@jemc jemc deleted the constructor-docstrings branch March 21, 2018 16:55
ponylang-main added a commit that referenced this pull request Mar 21, 2018
dipinhora pushed a commit to dipinhora/ponyc that referenced this pull request Jun 5, 2018
from classes or actors with initialized fields
dipinhora pushed a commit to dipinhora/ponyc that referenced this pull request Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants