[TM-323] Add `cutLorentzNonDoc`
Description
Problem: sometimes we need a piece of code to inherit documentation of another piece of code, but semantics of the former is achieved in alternative way (e.g. comes from outer lambda).
Solution: contract code still seems to be the most natural building block for documentation, thus I just add a function to cut all instructions except for documentation-related ones.
Related issue(s)
https://issues.serokell.io/issue/TM-323
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Konstantin Ivanov