tree-sitter-stack-graphs-javascript 0.3.0

Stack graphs definition for JavaScript using tree-sitter-javascript
Documentation
// The core of JSX tests here verify the behavior of the following node types:
//   jsx_element
//   jsx_identifier
//   jsx_attribute
//   jsx_expression
//   jsx_opening_element
//   jsx_closing_element
// There is no real way to avoid testing all of these at once,
// and so we don't even try to.

let x = 1;

// Flow In

const el = <foo bar={x} />;
//                   ^ defined: 11

const el2 = <x />
//           ^ defined: 11

// Flow Out

const el = <foo bar={y = 1} />;

/**/ y;
//   ^ defined: 23

// Flow Across

const el = <foo bar={q = 1}
    baz={q} />;
//       ^ defined: 30

// Flow Around

/**/ x;
//   ^ defined: 11