tree-sitter-stack-graphs-javascript 0.3.0

Stack graphs definition for JavaScript using tree-sitter-javascript
Documentation
let x = 1;

// Flow In

(class extends x {
    //         ^ defined: 1
    z = x;
    //  ^ defined: 1

    bar() {
        /**/ x;
        //   ^ defined: 1

        /**/ z;
        //   ^ defined:
        // z should not be defined here
    }
});

// Flow Out

(class {
    y = 1;
});

/**/ y;
//   ^ defined:
// y should not be defined here

// Flow Around

/**/ x;
//   ^ defined: 1