Methods
-
analyze(tree, providedOptions) → {ScopeManager}
-
Main interface function. Takes an Esprima syntax tree and returns the analyzed scopes.
Parameters:
Name Type Description treeesprima.Tree providedOptionsObject Options that tailor the scope analysis Properties
Name Type Argument Default Description optimisticboolean <optional>
false the optimistic flag directiveboolean <optional>
false the directive flag ignoreEvalboolean <optional>
false whether to check 'eval()' calls sourceTypestring <optional>
'script' the source type of the script. one of 'script' and 'module' ecmaVersionnumber <optional>
5 which ECMAScript version is considered Returns:
- Type
- ScopeManager