Closed opeongo closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
b35aac4
) 74.24% compared to head (ddf0a0e
) 74.24%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Looks good
Need #732 merged before I can fix bshdoc.bsh. It also has a problem with method lookups, where the interpreter has trouble distinguishing bshdoc(String)
from bshdoc(String[])
.
Need #732 merged before I can fix bshdoc.bsh. It also has a problem with method lookups, where the interpreter has trouble distinguishing
bshdoc(String)
frombshdoc(String[])
.
Not sure how this relates to this issue, this PR is closed right?
The first version was a minimal fix that only worked with formal comments that had two *. Other formal comment styles (three or more or formal comments within statements) would be still be ignored or would cause parsing errors.
I have another version that fixes all the problems with parsing Java comments. In this new patch BeanShell properly parse comments the same way as Java. The consequence is dropping the BSHFormalComment node and adding a few accessor methods to obtain comments.
I updated bshdoc.bsh to use the new accessors, even though it is not being used in the build at the moment. At least this should show how to use the new accessors for working with comments in the parser.