Skip to content

[#146] Add ability to add comments to Michelson code

Ilya Peresadin requested to merge pva/code-comments into master

Description

Problem: it's not possible to add comment and get it printed among with code.

Solution: implement this feature.

The only issue I've came across: if a function ends with fail (usually it's getters with view, which usually ends with fail), commendAround theFunction function doesn't print the last comment "something: finished".

Related issue(s)

Resolves #146 (closed)

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

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Ilya Peresadin

Merge request reports