vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
1.ref
(464B)
1 public class Foo
2 {
3 private double var1;
4 private double var2;
5
6 public Foo(double val)
7 {
8 init(val);
9 doSomething();
10 }
11
12 private void init(double val)
13 {
14 var1 = val;
15 }
16
17 private void doSomething()
18 {
19 var2 = Math.sqrt(var1);
20 }
21
22 public double getResult()
23 {
24 return var2;
25 }
26 }