rdoc icon indicating copy to clipboard operation
rdoc copied to clipboard

Simplify switch statement in `parse_statements`.

Open p8 opened this issue 1 year ago • 0 comments

:on_nl, :on_ignored_nl, :on_comment, :on_embdoc are handled by a single when branch. In this branch there are multiple if branches handling :on_nl and :on_ignored_nl separately from :on_comment and :on_embdoc.

By having separate when branches for :on_nl/:on_ignored_nl and :on_comment/:on_embdoc we can remove the if statements.

p8 avatar Dec 28 '24 16:12 p8