analyses
Basic data flow analyses framework based on esprima
Installation
$ npm install analyses
Dependencies
analyses depends on a globally available Map
, which can either be provided by
running with --harmony
or by preloading a shim before using the library.
analyses itself explicitly does not depend on a shim itself, to be more forward
compatible and to give you more choice.
Since the collections, specifically Set
in --harmony
do not support any method to iterate over them,
analyses provides a minimal analyses.Set
shim with some useful set operations.
This will change once native --harmony
Sets are actually useful.
Usage
var cfg = ;var output = ;// the output is a `Map` from CFG nodes to a result set of type `analyses.Set`output
License
LGPLv3