[TM-259] Update annotation printing
Description
Problem: We explicitly print empty annotations when there are two of them with the same type (basically field or variable) within a single instruction. Such approach increases contract size, which is pretty sad.
Solution: Explicitly print empty annotations only when they are coming along with non-empty annotation of the same type.
Related issue(s)
https://issues.serokell.io/issue/TM-259
✅ 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 Roman Melnikov