You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The parser seems to mistakenly lose the docstring for a function if the preceding function has do if as the body of the function. This means that tools (like chpldoc and CLS) which use the parser output are missing the comment and treat the function as not having a docstring.
Is this issue currently blocking your progress?
no, rewriting the function to not use do works around this
Steps to Reproduce
The following code demonstrates the issue. Compiled with chpldoc foo.chpl. The output is missing doc bar
Summary of Problem
Description:
The parser seems to mistakenly lose the docstring for a function if the preceding function has
do if
as the body of the function. This means that tools (like chpldoc and CLS) which use the parser output are missing the comment and treat the function as not having a docstring.Is this issue currently blocking your progress?
no, rewriting the function to not use
do
works around thisSteps to Reproduce
The following code demonstrates the issue. Compiled with
chpldoc foo.chpl
. The output is missingdoc bar
Note that
doc bar
is missing.The following variations do correctly get
doc bar
in the output. This indicates to me that to problem is specifically withdo if
without anelse
.The text was updated successfully, but these errors were encountered: