tree-sitter-stack-graphs-javascript 0.3.0

Stack graphs definition for JavaScript using tree-sitter-javascript
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let x = 0;

if (true) {
  var y = x;
  //      ^ defined: 1
} else if (true) {
  var y = x+1;
  //      ^ defined: 1
} else {
  var y = x-2;
}

const z = y;
//        ^ defined: 1, 4, 7, 10