To make it more efficient, change it to following code is better.
```js
var scopeManager = escope.analyze(ast);
scopeManager.attach();
estravere.traverse(ast, { enter: function(n) {
  ...
  ...
}});
scopeManager.detach();
```