Add comment mode for code generation of the statements
Clarification and motivation
The idea is that to analyse gas consumption of contract or to find further ways to improve code generation we need to analyse how much every statement/user defined function spend instructions/gas/bytes. To make this process easier we have to
generate Michelson code with comments around statements (if
, case
, while
, setting a variable, expression compilation, etc).
This process happens not so rare so I suggest generating comments automatically, if a flag passed.
This feature could be extended for user defined functions but we need somehow to get names of the functions, prolly the best option would be use TH or something but let's implement it as a separate issue.
Acceptance criteria
- Golden test is added to check this feature