-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix #13491 #17279 runnableExamples now don't get lost in translation #17282
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 #13491 #17279 runnableExamples now don't get lost in translation #17282
Conversation
db05adc to
704ba68
Compare
| rdoccmd = n1.strVal | ||
|
|
||
| var docComment = newTree(nkCommentStmt) | ||
| let useRenderModule = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So ... there is a bunch of dead code here regarding useRenderModule. Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would snowball into making renderModule itself deadcode, which opens another can of worms.
How about i defer to another PR removing this deadcode, and decide there whether to also remove renderModule or add some test for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, ok.
… in translation (nim-lang#17282) * fix nim-lang#13491 runnableExamples rendering * fix a runnableExamples thanks to this bugfix
… in translation (nim-lang#17282) * fix nim-lang#13491 runnableExamples rendering * fix a runnableExamples thanks to this bugfix
do: => :and(expr) => expr, producing invalid code #13491This PR fixes all such issues with runnableExamples by avoiding the bugs of
renderModule, but underlying problem inrenderModule(and repr) remains and will need to be fixed; at least it won't affect runnableExamples anymore; these are tracked in #17292.future work
useRenderModuledead code