IScopeAnalyzer.d.ts 397 B

1234567891011121314151617
  1. import * as eslintScope from 'eslint-scope';
  2. import * as ESTree from 'estree';
  3. import { IAnalyzer } from '../IAnalyzer';
  4. export interface IScopeAnalyzer extends IAnalyzer<void> {
  5. /**
  6. * @param {Program} astTree
  7. */
  8. analyze (astTree: ESTree.Node): void;
  9. /**
  10. * @param {Node} node
  11. * @returns {Scope}
  12. */
  13. acquireScope (node: ESTree.Node): eslintScope.Scope;
  14. }