Debian Codegraph @

tests/indent/tact.tact

raw
1 contract Counter {
2 value: Int;
3
4 fun add(x: Int) {
5 if (x > 0) {
6 self.value = self.value + x;
7 } else {
8 self.value = 0;
9 }
10 }
11 }