Global

Methods

analyze(tree, providedOptions) → {ScopeManager}

Main interface function. Takes an Esprima syntax tree and returns the analyzed scopes.
Parameters:
Name Type Description
tree esprima.Tree
providedOptions Object Options that tailor the scope analysis
Properties
Name Type Argument Default Description
optimistic boolean <optional>
false the optimistic flag
directive boolean <optional>
false the directive flag
ignoreEval boolean <optional>
false whether to check 'eval()' calls
sourceType string <optional>
'script' the source type of the script. one of 'script' and 'module'
ecmaVersion number <optional>
5 which ECMAScript version is considered
Source:
Returns:
Type
ScopeManager